Changeset 529 for trunk/Common/Page.php
- Timestamp:
- Apr 23, 2013, 7:12:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Page.php
r525 r529 9 9 var $ShowRuntimeInfo = false; 10 10 var $ClearPage = false; 11 var $BasicHTML = false; 11 12 var $ParentClass = ''; 12 13 var $ShortTitle; … … 64 65 '<script type="text/javascript" src="'.$this->System->Link('/style/').$this->System->Config['Web']['Style'].'/global.js"></script>'. 65 66 '<title>'.$this->System->Config['Web']['Title'].' - '.$Path.'</title> 66 </head><body'.$BodyParam.'> 67 <div id="Title">'.$Title.'</div> 68 <div class="Navigation"><span class="MenuItem"><strong>Navigace :: </strong> '.$Navigation.'</span><div class="MenuItem2">'; 69 if($this->System->Config['Web']['UserSupport'] == 1) 67 </head><body'.$BodyParam.'>'; 68 if($this->BasicHTML == false) 70 69 { 71 if($this->System->User->User['Id'] == null) 72 $Output .= '<a href="'.$this->System->Link('/?Action=LoginForm').'">Přihlášení</a> <a href="'.$this->System->Link('/?Action=UserRegister').'">Registrace</a>'; 73 else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>'; 74 } else $Output .= ' '; 75 // <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>'; 76 $Output .= '</div></div>'; 70 $Output .= '<div id="Title">'.$Title.'</div> 71 <div class="Navigation"><span class="MenuItem"><strong>Navigace :: </strong> '.$Navigation.'</span><div class="MenuItem2">'; 72 if($this->System->Config['Web']['UserSupport'] == 1) 73 { 74 if($this->System->User->User['Id'] == null) 75 $Output .= '<a href="'.$this->System->Link('/?Action=LoginForm').'">Přihlášení</a> <a href="'.$this->System->Link('/?Action=UserRegister').'">Registrace</a>'; 76 else $Output .= $this->System->User->User['Name'].' <a href="'.$this->System->Link('/?Action=Logout').'">Odhlásit</a>'; 77 } else $Output .= ' '; 78 // <a href="'.$this->System->Config['Web']['RootFolder'].'/?Action=UserOptions">Nastavení</a>'; 79 $Output .= '</div></div>'; 80 } 77 81 return($Output); 78 82 } … … 82 86 global $ScriptTimeStart; 83 87 $Time = round(GetMicrotime() - $ScriptTimeStart, 2); 84 $Output = '<div id="Footer"> 85 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |'; 86 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 |'; 87 $Output .= '</i></div></body></html>'; 88 $Output = ''; 89 if($this->BasicHTML == false) 90 { 91 $Output .= '<div id="Footer"> 92 <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 |'; 94 $Output .= '</i></div>'; 95 } 96 $Output .= '</body></html>'; 88 97 return($Output); 89 98 }
Note:
See TracChangeset
for help on using the changeset viewer.