Changeset 738
- Timestamp:
- 10/03/2007 06:48:41 AM (3 years ago)
- Location:
- trunk/handlers
- Files:
-
- 17 modified
-
acls/acls.php (modified) (1 diff)
-
clone/clone.php (modified) (9 diffs)
-
delete_referrer/delete_referrer.php (modified) (3 diffs)
-
diff/diff.php (modified) (4 diffs)
-
edit/edit.php (modified) (2 diffs)
-
files.xml/files.xml.php (modified) (4 diffs)
-
mindmap.mm/mindmap.mm.php (modified) (2 diffs)
-
mindmap_fullscreen/mindmap_fullscreen.php (modified) (4 diffs)
-
processcomment/processcomment.php (modified) (4 diffs)
-
raw/raw.php (modified) (1 diff)
-
recentchanges.xml.mm/recentchanges.xml.mm.php (modified) (5 diffs)
-
recentchanges.xml/recentchanges.xml.php (modified) (4 diffs)
-
recentchanges_simple.xml.mm/recentchanges_simple.xml.mm.php (modified) (5 diffs)
-
referrers/referrers.php (modified) (3 diffs)
-
referrers_sites/referrers_sites.php (modified) (2 diffs)
-
revisions.xml/revisions.xml.php (modified) (2 diffs)
-
revisions/revisions.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/handlers/acls/acls.php
r652 r738 49 49 50 50 $page = $this->LoadSingle(" 51 SELECT * 51 SELECT * 52 52 FROM ".$this->GetConfigValue('table_prefix')."acls 53 53 WHERE page_tag = '".mysql_real_escape_string($this->GetPageTag())."' -
trunk/handlers/clone/clone.php
r694 r738 4 4 * 5 5 * Usage: append /clone to the URL of the page you want to clone 6 * 7 * This handler checks the existence of the source page, the validity of the 8 * name of the target page to be created, the user's read-access to the source 6 * 7 * This handler checks the existence of the source page, the validity of the 8 * name of the target page to be created, the user's read-access to the source 9 9 * page and write-access to the target page. 10 10 * If the "Edit after creation" option is selected, the user is redirected to the … … 13 13 * page, otherwise default ACL are applied to the new page. 14 14 * 15 * @package Handlers16 * @subpackage Page17 * @version $Id:clone.php 407 2007-03-13 05:59:51Z DarTar $18 * @since Wikka 1.1.6.019 * @licens ehttp://www.gnu.org/copyleft/gpl.html GNU General Public License15 * @package Handlers 16 * @subpackage Page 17 * @version $Id:clone.php 407 2007-03-13 05:59:51Z DarTar $ 18 * @since Wikka 1.1.6.0 19 * @licens http://www.gnu.org/copyleft/gpl.html GNU General Public License 20 20 * @filesource 21 21 * … … 23 23 * @author {@link http://wikkawiki.org/DarTar Dario Taraborelli} - bugs fixed, code improved, removed popup alerts. 24 24 * @author {@link http://wikkawiki.org/BrianKoontz Brian Koontz} - clone ACL option 25 * 25 * 26 26 * 27 27 * @uses Wakka::ExistsPage() 28 * @uses Wakka::Format() 29 * @uses Wakka::FormClose() 30 * @uses Wakka::FormOpen() 31 * @uses Wakka::HasAccess() 32 * @uses Wakka::LoadPage() 33 * @uses Wakka::Href() 34 * @uses Wakka::Redirect() 28 * @uses Wakka::Format() 29 * @uses Wakka::FormClose() 30 * @uses Wakka::FormOpen() 31 * @uses Wakka::HasAccess() 32 * @uses Wakka::LoadPage() 33 * @uses Wakka::Href() 34 * @uses Wakka::Redirect() 35 35 * @uses Wakka::SavePage() 36 * 36 * 37 37 * @input string $to required: the page to be created 38 38 * must be a non-existing page and current user must have privs to create it 39 * default is source page name 39 * default is source page name 40 40 * @input string $note optional: the note to be added to the page when created 41 41 * default is "Cloned from " followed by the name of the source page 42 42 * @input boolean $editoption optional: if true, the new page will be opened for edition on creation 43 default is FALSE (to allow multiple cloning of the same source)43 default is FALSE (to allow multiple cloning of the same source) 44 44 * @input boolean $cloneaclsoption optional: if true, ACLs are copied from the source page to the new page 45 45 * default is FALSE … … 63 63 $to = $this->tag; 64 64 $note = sprintf(CLONED_FROM, $from); 65 $editoption = ''; 65 $editoption = ''; 66 66 $cloneaclsoption = ''; 67 67 $box = '<em>'.CLONE_VALID_TARGET.'</em>'; … … 72 72 // source page does not exist! 73 73 $box = sprintf(WIKKA_ERROR_PAGE_NOT_EXIST, $from); 74 } else 74 } else 75 75 { 76 76 // 2. page exists - now check user's read-access to the source page … … 90 90 $editoption = (isset($_POST['editoption'])) ? ' checked="checked"' : ''; 91 91 $cloneaclsoption = (isset($_POST['cloneaclsoption'])) ? ' checked="checked"' : ''; 92 92 93 93 // 3. check target pagename validity 94 94 if (!preg_match(VALID_PAGENAME_PATTERN, $to)) //TODO use central regex library … … 100 100 { 101 101 // 4. target page name is valid - now check user's write-access 102 if (!$this->HasAccess('write', $to)) 102 if (!$this->HasAccess('write', $to)) 103 103 { 104 104 $box = '<em class="error">'.sprintf(ERROR_ACL_WRITE, $to).'</em>'; … … 108 108 // 5. check target page existence 109 109 if ($this->ExistsPage($to)) 110 { 110 { 111 111 // page already exists! 112 112 $box = '<em class="error">'.WIKKA_ERROR_PAGE_ALREADY_EXIST.'</em>'; … … 118 118 if ($thepage) 119 119 { 120 $pagecontent = $thepage['body']; 120 $pagecontent = $thepage['body']; 121 121 } 122 122 $this->SavePage($to, $pagecontent, $note); -
trunk/handlers/delete_referrer/delete_referrer.php
r654 r738 8 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 * 10 * 11 11 * @uses Wakka::Href() 12 12 * @uses Wakka::Query() … … 16 16 if (isset($_GET['spam_link'])) // coming from referrers handler #312 17 17 { 18 $parsed_url = parse_url($_GET['spam_link']); # 31218 $parsed_url = parse_url($_GET['spam_link']); # #312 19 19 $spammer = isset($parsed_url['host']) ? $parsed_url['host'] : ''; 20 20 } 21 21 elseif (isset($_GET['spam_site'])) // coming from referrers_sites handler #312 22 22 { 23 $spammer = $_GET['spam_site']; # 31223 $spammer = $_GET['spam_site']; # #312 24 24 } 25 25 … … 34 34 35 35 // Redirect back to original page/handler 36 $redirect = isset($_GET['redirect']) ? $_GET['redirect'] : ''; # 31236 $redirect = isset($_GET['redirect']) ? $_GET['redirect'] : ''; # #312 37 37 $this->Redirect($this->Href($redirect)); 38 38 -
trunk/handlers/diff/diff.php
r706 r738 27 27 * 28 28 * @todo This is a really cheap way to do it. I think it may be more intelligent to write the two pages to temporary files and run /usr/bin/diff over them. Then again, maybe not. 29 * JW: that may be nice but won't work on a Windows system ;) 29 * JW: that may be nice but won't work on a Windows system ;) 30 30 */ 31 31 32 // If javascript is disabled, user may get here after pressing button Next... on the /revisions handler. 32 // If javascript is disabled, user may get here after pressing button Next... on the /revisions handler. 33 33 if ((isset($_GET['more_revisions'])) && (isset($_GET['a'])) && (isset($_GET['start']))) 34 34 { … … 58 58 59 59 // load pages 60 $pageA = (isset($_GET['a'])) ? $this->LoadPageById($_GET['a']) : ''; # 31261 $pageB = (isset($_GET['b'])) ? $this->LoadPageById($_GET['b']) : ''; # 31260 $pageA = (isset($_GET['a'])) ? $this->LoadPageById($_GET['a']) : ''; # #312 61 $pageB = (isset($_GET['b'])) ? $this->LoadPageById($_GET['b']) : ''; # #312 62 62 if ('' == $pageA || '' == $pageB) 63 63 { … … 72 72 $linkPageB = '<a href="'.$this->Href('', '', 'time='.urlencode($pageB['time'])).'">'.$pageB['time'].'</a>'; 73 73 74 // If asked, call original diff 75 if (isset($_GET['fastdiff']) && $_GET['fastdiff']) # 31274 // If asked, call original diff 75 if (isset($_GET['fastdiff']) && $_GET['fastdiff']) # #312 76 76 { 77 77 … … 155 155 break; 156 156 } 157 if ($sideO->decode_directive_line()) 157 if ($sideO->decode_directive_line()) 158 158 { 159 159 $argument=$sideO->getargument(); -
trunk/handlers/edit/edit.php
r720 r738 186 186 // hence hsc_secure() instead of htmlspecialchars_ent() which UNescapes entities! 187 187 // JW/2007-02-20: why is this? wouldn't it be easier for the person editing to show actual characters instead of entities? 188 '<input type="hidden" name="body" value="'.$this->hsc_secure($body).'" />'."\n"; # 427188 '<input type="hidden" name="body" value="'.$this->hsc_secure($body).'" />'."\n"; # #427 189 189 $preview_form .= $preview_buttons."\n"; 190 190 $preview_form .= $this->FormClose()."\n"; … … 245 245 // hence hsc_secure() instead of htmlspecialchars_ent() which UNescapes entities! 246 246 // JW/2007-02-20: why is this? wouldn't it be easier for the person editing to show actual characters instead of entities? 247 '<textarea id="body" name="body">'.$this->hsc_secure($body).'</textarea>'."\n"; # 427247 '<textarea id="body" name="body">'.$this->hsc_secure($body).'</textarea>'."\n"; # #427 248 248 if ($buttons_position == 'bottom') 249 249 { -
trunk/handlers/files.xml/files.xml.php
r694 r738 16 16 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 17 17 * @filesource 18 * 18 * 19 19 * @uses Wakka::GetConfigValue() 20 20 * @uses Wakka::GetPageTag() … … 32 32 $this->SetConfigValue('upload_path','files'); 33 33 } 34 $upload_path = $this->GetConfigValue('upload_path').DIRECTORY_SEPARATOR.$this->GetPageTag(); # 8934 $upload_path = $this->GetConfigValue('upload_path').DIRECTORY_SEPARATOR.$this->GetPageTag(); # #89 35 35 if (!is_dir($upload_path)) 36 36 { … … 39 39 40 40 // do the action 41 switch ($_GET['action']) # 31241 switch ($_GET['action']) # #312 42 42 { 43 43 // @@@ shared download code 44 44 case 'download': 45 45 header('Accept-Ranges: bytes'); 46 $_GET['file'] = basename($_GET['file']); # 31247 $path = $upload_path.DIRECTORY_SEPARATOR.$_GET['file']; # 89, #31246 $_GET['file'] = basename($_GET['file']); # #312 47 $path = $upload_path.DIRECTORY_SEPARATOR.$_GET['file']; # #89, #312 48 48 $filename = basename($path); 49 49 header("Content-Type: application/x-download"); 50 50 header("Content-Disposition: attachment; filename=\"".urldecode($filename)."\""); 51 if ($this->HasAccess('read')) 51 if ($this->HasAccess('read')) 52 52 { 53 53 if (isset($_SERVER['HTTP_RANGE']) && … … 81 81 } 82 82 case 'delete': 83 if ($this->IsAdmin()) 83 if ($this->IsAdmin()) 84 84 { 85 @unlink($upload_path.DIRECTORY_SEPARATOR.$_GET['file']); # 89, #312 // TODO if this is admin-only, why hide any errors?85 @unlink($upload_path.DIRECTORY_SEPARATOR.$_GET['file']); # #89, #312 // TODO if this is admin-only, why hide any errors? 86 86 } 87 87 print $this->redirect($this->Href()); -
trunk/handlers/mindmap.mm/mindmap.mm.php
r407 r738 1 1 <?php 2 2 /** 3 * Display a mindmap as XML. 4 * 3 * Display a mindmap as XML. 4 * 5 5 * @package Handlers 6 6 * @subpackage Mindmaps … … 8 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 * 10 * 11 11 * @uses Wakka::HasAccess() 12 12 */ -
trunk/handlers/mindmap_fullscreen/mindmap_fullscreen.php
r677 r738 2 2 /** 3 3 * Open a fullscreen window with an embedded Freemind map 4 * 4 * 5 5 * @package 3rdParty 6 6 * @subpackage Freemind … … 10 10 * @version $Id$ 11 11 * @filesource 12 * 12 * 13 13 * @uses Wakka::hsc_secure() 14 14 * @uses Wakka::StaticHref() 15 15 * @uses Config::$default_lang 16 * @todo check if we should (copy and) use Wakka::GetSafeVar() and 17 * Wakka::Wakka::cleanUrl() to secure our input parameters 16 * @todo check if we should (copy and) use Wakka::GetSafeVar() and 17 * Wakka::Wakka::cleanUrl() to secure our input parameters 18 18 * (cf. mindmap action!) 19 19 * @todo since this produces a whole page, turn into a normal handler … … 82 82 83 83 <?php 84 $mindmap_url = $this->hsc_secure(preg_replace('/&/','&',(trim($_GET['url'])))); # 312 // duplicates Wakka::cleanUrl()85 if (isset($_GET['height'])) $height = $this->hsc_secure(trim($_GET['height'])); # 312 // more or less equivalent to Wakka::GetSafeVar()84 $mindmap_url = $this->hsc_secure(preg_replace('/&/','&',(trim($_GET['url'])))); # #312 // duplicates Wakka::cleanUrl() 85 if (isset($_GET['height'])) $height = $this->hsc_secure(trim($_GET['height'])); # #312 // more or less equivalent to Wakka::GetSafeVar() 86 86 87 if ($mindmap_url) 87 if ($mindmap_url) 88 88 { 89 89 // set up template variables … … 93 93 $jre_download_link = '<a href="'.WIKKA_JRE_DOWNLOAD_URL.'">'.WIKKA_JRE_LINK_DESC.'</a>'; 94 94 $jre_install_req = sprintf(MM_JRE_INSTALL_REQ, $jre_download_link); 95 $jre_install_req_js = str_replace(array('\\', '\'', "\r", "\n") ,array('\\\\', '\\\'', '', '\\n'), $jre_install_req); // escape slashes for JavaScript 96 $jre_install_req_sub = $jre_install_req; 95 $jre_install_req_js = str_replace(array('\\', '\'', "\r", "\n") ,array('\\\\', '\\\'', '', '\\n'), $jre_install_req); // escape slashes for JavaScript 96 $jre_install_req_sub = $jre_install_req; 97 97 $jre_install_req_sub[0] = strtolower($jre_install_req_sub[0]); // lower case first char for use in subphrase 98 98 $freemind_link = '<a href="'.FREEMIND_PROJECT_URL.'">Freemind</a>'; -
trunk/handlers/processcomment/processcomment.php
r716 r738 2 2 /** 3 3 * Process a comment. 4 * 5 * @package Handlers4 * 5 * @package Handlers 6 6 * @subpackage Comments 7 * @version $Id: processcomment.php,v 1.3.1.3 2007/02/11 11:39:16 brian Exp brian $8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License7 * @version $Id: processcomment.php,v 1.3.1.3 2007/02/11 11:39:16 brian Exp brian $ 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 * 10 * 11 11 * @author {http://wikkawiki.org/BrianKoontz Brian Koontz} 12 * 12 * 13 13 * @uses Wakka::GetUserName() 14 14 * @uses Wakka::Href() … … 19 19 * @uses Wakka::UserIsOwner() 20 20 * @uses Wakka::htmlspecialchars_ent() 21 * 21 * 22 22 * @todo move main <div> to templating class 23 23 */ … … 64 64 <?php } else { ?> 65 65 <label for="commentbox"><?php echo NEW_COMMENT_LABEL; ?></label><br /> 66 <?php } ?> 66 <?php } ?> 67 67 <textarea id="commentbox" name="body" rows="6" cols="78"></textarea><br /> 68 68 <input type="submit" name="submit" value="<?php echo COMMENT_ADD_BUTTON; ?>" accesskey="s" /> … … 89 89 $this->SaveComment($this->tag, $body, $parent_id); 90 90 } 91 91 92 92 // redirect to page 93 93 $this->redirect($this->Href(), $redirectmessage); -
trunk/handlers/raw/raw.php
r407 r738 2 2 /** 3 3 * Display the raw version of a wiki page, i.e. the source with no formatting. 4 * 4 * 5 5 * @package Handlers 6 6 * @subpackage Page 7 7 * @version $Id$ 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 * 10 * 11 11 * @uses Wakka::HasAccess() 12 12 */ -
trunk/handlers/recentchanges.xml.mm/recentchanges.xml.mm.php
r701 r738 2 2 /** 3 3 * Show a mindmap of the recent changes in the wiki as an XML File. 4 * 4 * 5 5 * @package Handlers 6 6 * @subpackage Mindmaps … … 8 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 * 10 * 11 11 * @uses Wakka::Href() 12 12 * @uses Wakka::htmlspecialchars_ent() 13 13 * @uses Wakka::LoadRecentlyChanged() 14 * 14 * 15 15 * @todo i18n 16 16 * @todo replace numbers by constants: no "magic numbers"!) … … 34 34 // $max = 50; 35 35 //} 36 36 37 37 $c = 0; 38 38 foreach ($pages as $page) … … 58 58 $xml .= '<node LINK="'.$pagelink.'" TEXT="'.$pagetag.'" FOLDED="true">'."\n"; 59 59 $timeformatted = date('H:i T', strtotime($page['time'])); 60 $xml .= '<node LINK="'.$pagelink.'/revisions" TEXT="Revision time: '.$timeformatted.'"/>'."\n"; # i18n60 $xml .= '<node LINK="'.$pagelink.'/revisions" TEXT="Revision time: '.$timeformatted.'"/>'."\n"; # i18n 61 61 if ($pagenote = $this->htmlspecialchars_ent($page['note'],ENT_COMPAT,'XML')) 62 62 { … … 68 68 } 69 69 70 $xml .= '<node LINK="'.$pagelink.'/history" TEXT="View History"/>'."\n"; # i18n70 $xml .= '<node LINK="'.$pagelink.'/history" TEXT="View History"/>'."\n"; # i18n 71 71 $xml .= "</node>\n"; 72 72 // $xml .= "<arrowlink ENDARROW=\"Default\" DESTINATION=\"Freemind_Link_".$page["user"]."\" STARTARROW=\"None\"/>\n"; -
trunk/handlers/recentchanges.xml/recentchanges.xml.php
r726 r738 52 52 */ 53 53 if (!defined('FEED_VALID_FORMATS')) define('FEED_VALID_FORMATS', 'RSS0.91,RSS1.0,RSS2.0,ATOM1.0'); // no whitespace around commas! 54 if (!defined('FEED_DESCRIPTION_TRUNCATE_SIZE')) define('FEED_DESCRIPTION_TRUNCATE_SIZE', 200); #character limit to truncate description // expects integer55 if (!defined('FEED_DESCRIPTION_HTML')) define('FEED_DESCRIPTION_HTML', TRUE); #Indicates whether the description field should be rendered in HTML // expects boolean56 if (!defined('FEED_DEFAULT_OUTPUT_FORMAT')) define('FEED_DEFAULT_OUTPUT_FORMAT','RSS2.0'); #any of the valid formats specified in VALID_FORMATS54 if (!defined('FEED_DESCRIPTION_TRUNCATE_SIZE')) define('FEED_DESCRIPTION_TRUNCATE_SIZE', 200); // character limit to truncate description // expects integer 55 if (!defined('FEED_DESCRIPTION_HTML')) define('FEED_DESCRIPTION_HTML', TRUE); // Indicates whether the description field should be rendered in HTML // expects boolean 56 if (!defined('FEED_DEFAULT_OUTPUT_FORMAT')) define('FEED_DEFAULT_OUTPUT_FORMAT','RSS2.0'); //any of the valid formats specified in VALID_FORMATS 57 57 //if (!defined('FEED_DEFAULT_OWNER_FILTER')) define('FEED_DEFAULT_OWNER_FILTER', ''); #empty, modifications of pages owned by any user 58 58 //if (!defined('FEED_DEFAULT_USER_FILTER')) define('FEED_DEFAULT_USER_FILTER', ''); #empty, modifications by any user … … 108 108 //initialize feed (general settings) 109 109 $rss->useCached(); //TODO: make this configurable 110 $rss->title = sprintf(FEED_TITLE_RECENT_CHANGES, $this->GetConfigValue('wakka_name')); 111 $rss->description = sprintf(FEED_DESCRIPTION_RECENT_CHANGES, $this->GetConfigValue('wakka_name')); 110 $rss->title = sprintf(FEED_TITLE_RECENT_CHANGES, $this->GetConfigValue('wakka_name')); 111 $rss->description = sprintf(FEED_DESCRIPTION_RECENT_CHANGES, $this->GetConfigValue('wakka_name')); 112 112 $rss->cssStyleSheet = $this->StaticHref('css/'.FEED_CSS); 113 113 $rss->descriptionTruncSize = FEED_DESCRIPTION_TRUNCATE_SIZE; 114 114 $rss->descriptionHtmlSyndicated = FEED_DESCRIPTION_HTML; 115 115 $rss->link = $this->Href('', $this->GetConfigValue('root_page')); 116 $rss->syndicationURL = $this->Href($this->handler,'','f='.$f); 116 $rss->syndicationURL = $this->Href($this->handler,'','f='.$f); 117 117 118 118 //create feed image … … 140 140 $item = instantiate('FeedItem'); 141 141 $item->title = $page['tag']; 142 #$item->link = $this->Href('show', $page['tag'], 'time='.urlencode($page['time'])); 142 #$item->link = $this->Href('show', $page['tag'], 'time='.urlencode($page['time'])); 143 143 $item->link = $this->Href('', $page['tag'], 'time='.urlencode($page['time'])); 144 144 // @@@ ^ uses &amp; in all formats - this is FC escaping the & that Href() outputs … … 159 159 Identifier: Source 160 160 Definition: A Reference to a resource from which the present resource 161 is derived.161 is derived. 162 162 Comment: The present resource may be derived from the Source resource 163 in whole or in part. Recommended best practice is to reference 164 the resource by means of a string or number conforming to a 165 formal identification system.163 in whole or in part. Recommended best practice is to reference 164 the resource by means of a string or number conforming to a 165 formal identification system. 166 166 */ 167 167 if ('RSS1.0' == $f) // dc:source used only here -
trunk/handlers/recentchanges_simple.xml.mm/recentchanges_simple.xml.mm.php
r701 r738 2 2 /** 3 3 * Show a simple mindmap of recent changes in the wiki as an XML File. 4 * 4 * 5 5 * Only the date and the page of the change are shown. 6 * 6 * 7 7 * @package Handlers 8 8 * @subpackage Mindmaps … … 10 10 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 11 11 * @filesource 12 * 12 * 13 13 * @uses in_iarray() 14 14 * @uses Wakka::Href() … … 23 23 /** 24 24 * Checks if an item is contained in an array (case insensitive). 25 * 25 * 26 26 * @name in_iarray() 27 27 * @return TRUE or FALSE 28 28 */ 29 function in_iarray($item, $array) 29 function in_iarray($item, $array) 30 30 { 31 31 $item = &strtoupper($item); 32 foreach ($array as $element) 32 foreach ($array as $element) 33 33 { 34 if ($item == strtoupper($element)) 34 if ($item == strtoupper($element)) 35 35 { 36 36 return TRUE; … … 55 55 // $max = 50; 56 56 //} 57 57 58 58 $c = 0; 59 59 foreach ($pages as $page) … … 75 75 // $xml .= "<arrowlink ENDARROW=\"Default\" DESTINATION=\"Freemind_Link_".$page["user"]."\" STARTARROW=\"None\"/>\n"; 76 76 $xml .= "</node>\n"; 77 if (isset($users[$page['user']]) && (is_array($users[$page['user']]))) 77 if (isset($users[$page['user']]) && (is_array($users[$page['user']]))) 78 78 { 79 79 $u_count = count($users[$page['user']]); -
trunk/handlers/referrers/referrers.php
r701 r738 6 6 * @subpackage Referrers 7 7 * @version $Id:referrers.php 407 2007-03-13 05:59:51Z DarTar $ 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 10 * … … 35 35 $ref_urls_to_page_url = $this->Href('referrers'); 36 36 $ref_blacklist_url = $this->Href('review_blacklist'); 37 if (isset($_GET["global"])) # 31237 if (isset($_GET["global"])) # #312 38 38 { 39 39 // referrers to this wiki 40 40 // prepare UI 41 $global = $_GET["global"]; # 31241 $global = $_GET["global"]; # #312 42 42 $referrers_domains_link = '<a href="'.$ref_domains_to_wiki_url.'">'.REFERRERS_DOMAINS_LINK_DESC.'</a>'; 43 43 $heading = sprintf(REFERRERS_URLS_TO_WIKI, $referrers_domains_link); … … 54 54 switch ((int) $this->GetConfigValue('referrers_purge_time')) 55 55 { 56 case 0: 56 case 0: 57 57 $referrers_purge_time = ''; 58 58 break; -
trunk/handlers/referrers_sites/referrers_sites.php
r701 r738 33 33 $ref_urls_to_page_url = $this->Href('referrers'); 34 34 $ref_blacklist_url = $this->Href('review_blacklist'); 35 if (isset($_GET["global"])) # 31235 if (isset($_GET["global"])) # #312 36 36 { 37 37 // referrers to this wiki 38 38 // prepare UI 39 $global = $_GET["global"]; # 31239 $global = $_GET["global"]; # #312 40 40 $referrers_urls_link = '<a href="'.$ref_urls_to_wiki_url.'">'.REFERRERS_URLS_LINK_DESC.'</a>'; 41 41 $heading = sprintf(REFERRERS_DOMAINS_TO_WIKI, $referrers_urls_link); … … 52 52 switch ((int) $this->GetConfigValue('referrers_purge_time')) 53 53 { 54 case 0: 54 case 0: 55 55 $referrers_purge_time = ''; 56 56 break; -
trunk/handlers/revisions.xml/revisions.xml.php
r680 r738 2 2 /** 3 3 * Generate a RSS 2.0 feed of the revisions of the current page. 4 * 4 * 5 5 * @package Handlers 6 6 * @subpackage XML … … 8 8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 9 9 * @filesource 10 * 10 * 11 11 * @uses Config::$wakka_name 12 12 * @uses Wakka::GetConfigValue() -
trunk/handlers/revisions/revisions.php
r707 r738 9 9 * page at that revision.</p> 10 10 * <p>The user can also pick two revisions from the list and compare them by passing their id's to the 11 * {@link diff.php diff handler}. Two kinds of diffs are proposed: the normal diff and the simple 11 * {@link diff.php diff handler}. Two kinds of diffs are proposed: the normal diff and the simple 12 12 * diff. This is done by choosing revisions using the checkboxes and by clicking the button <kbd> 13 13 * Show Differences</kbd>. 14 14 * The maximum number of revisions shown is configured through the user preference or at the 15 15 * wikka configuration. See {@link Wakka::LoadRevisions()}. If the page has more revisions than this 16 * configured value, a button <kbd>Next ...</kbd> will appear to allow viewing more revisions. The 16 * configured value, a button <kbd>Next ...</kbd> will appear to allow viewing more revisions. The 17 17 * revision marked at the left column will appear at the top of the next page, this will let the user 18 18 * compare any revision of the current page with another revision on the next (or later) page.</p> … … 39 39 $start = 0; 40 40 41 if ($this->HasAccess('read')) 41 if ($this->HasAccess('read')) 42 42 { 43 43 if (isset($_GET['start'])) … … 60 60 $output = $this->FormOpen('diff', '', 'get'); 61 61 $output .= "<fieldset>\n"; 62 $output .= "<legend>".sprintf(REVISIONS_CAPTION, $this->Link($this->tag))."</legend>"."\n"; 62 $output .= "<legend>".sprintf(REVISIONS_CAPTION, $this->Link($this->tag))."</legend>"."\n"; 63 63 $output .= '<table border="0" cellspacing="0" cellpadding="1">'."\n"; 64 64 $output .= "<tr>\n"; … … 108 108 echo $output; 109 109 echo '</div>'."\n"; 110 } 111 else 110 } 111 else 112 112 { 113 113 echo '<div class="page">'."\n";