Changeset 561 for trunk/includes
- Timestamp:
- Aug 13, 2013, 11:31:34 PM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Page.php
r560 r561 156 156 '<script type="text/javascript" src="'.$System->Link('/style/global.js').'"></script>'. 157 157 '<link rel="shortcut icon" href="'.$System->Link('/images/favicon.ico').'" />'; 158 if(isset($RSSChannels)) 159 foreach($RSSChannels as $Channel) 158 foreach($System->RSSChannels as $Channel) 160 159 { 161 160 $Output .= ' <link rel="alternate" title="'.$Channel['Title'].'" href="'. … … 180 179 global $System, $ScriptStartTime, $User, $Revision, $ReleaseTime; 181 180 182 183 184 185 186 187 188 189 190 191 192 193 194 195 if($System->Config['Web']['ShowRuntimeInfo'] == true)196 197 198 199 200 201 return($Output);181 $ScriptGenerateDuration = round(GetMicrotime() - $ScriptStartTime, 2); 182 183 $Output = '</td>'. 184 '<td class="menu2">'; 185 $Output .= ShowTranslatedMenu(); 186 $Output .= '</td>'. 187 '</tr><tr>'. 188 '<td colspan="4" class="page-bottom">Verze: '.$Revision.' ('.HumanDate($ReleaseTime).')'. 189 ' <a href="http://svn.zdechov.net/trac/wowpreklad/browser/trunk">Zdrojové soubory</a> '. 190 '<a href="http://svn.zdechov.net/trac/wowpreklad/log/trunk?verbose=on">Novinky</a> '. 191 $System->Config['Web']['WebCounter']; 192 193 $Output .= '</td></tr>'; 194 if($System->Config['Web']['ShowRuntimeInfo'] == true) 195 $Output .= '<tr><td colspan="3" style="text-align: center;">Doba generování: '.$ScriptGenerateDuration.' s / '.ini_get('max_execution_time').' s Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B <a href="http://validator.w3.org/check?uri='.htmlentities('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'?'.$_SERVER['QUERY_STRING']).'">HTML validator</a></td></tr>'; 196 $Output .= '</table>'. 197 '</body>'. 198 '</html>'; 199 $User->Store(); 200 return($Output); 202 201 } 203 202 -
trunk/includes/Version.php
r560 r561 1 1 <?php 2 2 3 $Revision = 56 0; // Subversion revision3 $Revision = 561; // Subversion revision 4 4 $DatabaseRevision = 543; // Database structure revision 5 5 $ReleaseTime = '2013-08-13'; -
trunk/includes/global.php
r558 r561 24 24 include_once(dirname(__FILE__).'/../Modules/Server/Server.php'); 25 25 include_once(dirname(__FILE__).'/../Modules/ClientVersion/ClientVersion.php'); 26 include_once(dirname(__FILE__).'/../Modules/ShoutBox/ShoutBox.php'); 26 27 include_once(dirname(__FILE__).'/../Modules/FrontPage/FrontPage.php'); 27 28 … … 71 72 $System->ModuleManager->RegisterModule(new ModuleReferrer($System)); 72 73 $System->ModuleManager->Modules['Referrer']->Excluded[] = $System->Config['Web']['Host']; 73 $System->ModuleManager->RegisterModule(new ModuleFrontPage($System));74 74 $System->ModuleManager->RegisterModule(new ModuleTeam($System)); 75 75 $System->ModuleManager->RegisterModule(new ModuleDictionary($System)); … … 79 79 $System->ModuleManager->RegisterModule(new ModuleServer($System)); 80 80 $System->ModuleManager->RegisterModule(new ModuleClientVersion($System)); 81 $System->ModuleManager->RegisterModule(new ModuleShoutBox($System)); 82 $System->ModuleManager->RegisterModule(new ModuleFrontPage($System)); 81 83 $System->ModuleManager->StartAll(); 82 84 } 83 85 84 $RSSChannels = array( 85 array('Title' => 'Změny systému', 'Channel' => 'news'), 86 array('Title' => 'Poslední překlady', 'Channel' => 'translation'), 87 array('Title' => 'Kecátko', 'Channel' => 'shoutbox'), 88 ); 86 $System->RegisterRSS(array('Title' => 'Změny systému', 'Channel' => 'news')); 89 87 90 88 function GetMicrotime() -
trunk/includes/system.php
r558 r561 23 23 var $ModuleManager; 24 24 var $PathItems; 25 var $Menu; 26 var $RSSChannels; 25 27 26 28 function __construct() 27 29 { 28 30 $this->Config = array(); 31 $this->Menu = array(); 32 $this->RSSChannels = array(); 29 33 } 30 34 … … 133 137 } 134 138 139 function RegisterRSS($Channel, $Pos = NULL) 140 { 141 if(is_null($Pos)) $this->RSSChannels[] = $Channel; 142 else { 143 array_splice($this->RSSChannels, $Pos, 0, array($Channel)); 144 } 145 } 146 135 147 function SearchPage($PathItems, $Pages) 136 148 {
Note:
See TracChangeset
for help on using the changeset viewer.