Legend:
- Unmodified
- Added
- Removed
-
page.php
r15 r19 7 7 'index.php' => '', 8 8 ); 9 10 function __construct() 11 { 12 $this->TimeStart = GetMicrotime(); // Get script start time 13 } 9 14 10 15 function SystemMessage($Title, $Text) … … 17 22 function ShowHeader($Title, $Path, $BodyParam = '') 18 23 { 19 $this->Time_Start = GetMicrotime(); // Get script start time20 24 $ScriptName = $_SERVER['SCRIPT_NAME']; 21 25 while(strpos($ScriptName, '//') !== false) … … 28 32 array_shift($ScriptNameParts); 29 33 foreach($ScriptNameParts as $ScriptNamePart) 30 { 34 { 31 35 //echo($ScriptNamePart.'<br>'); 32 36 if(array_key_exists($ScriptNamePart, $PathTreeItem)) … … 59 63 function ShowFooter() 60 64 { 61 $Time = floor((GetMicrotime() - $this->Time _Start) * 100) / 100;65 $Time = floor((GetMicrotime() - $this->TimeStart) * 100) / 100; 62 66 $Output = '<div id="Footer"> 63 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' | Vygenerováno za '.$Time.' s | Verze: 1.1 | Úprava skriptu: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i></div></body></html>';67 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' | Vygenerováno za '.$Time.' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' |</i></div></body></html>'; 64 68 return($Output); 65 69 } … … 69 73 $Output = $this->Show(); 70 74 $Output = $this->ShowHeader($this->FullTitle, $this->ShortTitle).$Output; 71 //$Output .= $this->ShowFooter();75 $Output .= $this->ShowFooter(); 72 76 //$Output = $this->FormatOutput($Output); 73 77 echo($Output);
Note:
See TracChangeset
for help on using the changeset viewer.