Changeset 532 for trunk/Common/Page.php
- Timestamp:
- Apr 24, 2013, 9:09:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Page.php
r529 r532 16 16 function __construct($System) 17 17 { 18 global $Config;19 20 18 parent::__construct($System); 21 19 22 $this->FormatHTML = $ Config['Web']['FormatHTML'];23 $this->ShowRuntimeInfo = $ Config['Web']['ShowRuntimeInfo'];20 $this->FormatHTML = $this->System->Config['Web']['FormatHTML']; 21 $this->ShowRuntimeInfo = $this->System->Config['Web']['ShowRuntimeInfo']; 24 22 } 25 23 … … 76 74 else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>'; 77 75 } else $Output .= ' '; 78 // <a href="'.$this->System-> Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>';76 // <a href="'.$this->System->Link('/?Action=UserOptions').'">Nastavení</a>'; 79 77 $Output .= '</div></div>'; 80 78 } … … 91 89 $Output .= '<div id="Footer"> 92 90 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |'; 93 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 |'; 91 if($this->ShowRuntimeInfo == true) $Output .= ' Doba generování: '.$Time.' s / '.ini_get('max_execution_time'). 92 ' s | Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B |'; 94 93 $Output .= '</i></div>'; 95 94 } … … 99 98 100 99 function GetOutput() 101 { 102 $Output = $this->Show(); 100 { 101 try { 102 $Output = $this->Show(); 103 } catch (Exception $E) { 104 $Output = 'Chyba: '.$E->getMessage(); 105 } 103 106 if($this->ClearPage == false) 104 107 { … … 119 122 } 120 123 121 // Funkce formatovani vystupu124 // XML formating function 122 125 function FormatOutput($s) 123 126 {
Note:
See TracChangeset
for help on using the changeset viewer.