Changeset 323 for trunk/page.php
- Timestamp:
- Nov 28, 2011, 8:50:09 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/page.php
r256 r323 4 4 { 5 5 var $TimeStart; 6 var $FormatHTML = false; 7 var $ShowRuntimeInfo = false; 6 8 var $PathTree = array('Rozcestník', 7 9 'index.php' => '', … … 88 90 'mapa.php' => 'Mapa webu', 89 91 ); 92 93 function __construct() 94 { 95 global $Config; 96 97 $this->FormatHTML = $Config['Web']['FormatHTML']; 98 $this->ShowRuntimeInfo = $Config['Web']['ShowRuntimeInfo']; 99 } 90 100 91 101 function SystemMessage($Title, $Text) … … 157 167 $Output = '<div id="Footer"> 158 168 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |'; 159 if($this->S ystem->Config['Web']['ShowRuntimeInfo']== true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |';169 if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time').' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |'; 160 170 $Output .= '</i></div></body></html>'; 161 171 return($Output); … … 164 174 function GetOutput() 165 175 { 166 global $Config;167 168 176 $Output = $this->Show(); 169 177 $Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle).$Output; 170 178 $Output .= $this->ShowFooter(); 171 if($ Config['Web']['FormatHTML']== true) echo($this->FormatOutput($Output));179 if($this->FormatHTML == true) echo($this->FormatOutput($Output)); 172 180 else echo($Output); 173 181 }
Note:
See TracChangeset
for help on using the changeset viewer.