Changeset 163 for www/page.php
- Timestamp:
- Feb 20, 2009, 9:53:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/page.php
r148 r163 109 109 function ShowHeader($Title, $Path, $BodyParam = '') 110 110 { 111 $this->Time_Start = GetMicrotime(); // Zjisti počáteční čas112 111 $ScriptName = $_SERVER['SCRIPT_NAME']; 113 112 while(strpos($ScriptName, '//') !== false) … … 141 140 $Output = '<?xml version="1.0" encoding="'.$this->System->Config['Web']['Charset'].'"?>'."\n". 142 141 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 143 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang=" en" lang="en">'.142 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'. 144 143 '<head><link rel="stylesheet" href="'.$this->System->Config['Web']['RootFolder'].'/style.css" type="text/css" media="all" />'. 145 '<meta http-equiv="content-type" content=" text/html; charset='.$this->System->Config['Web']['Charset'].'" />'.144 '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->System->Config['Web']['Charset'].'" />'. 146 145 '<script type="text/javascript" src="'.$this->System->Config['Web']['RootFolder'].'/global.js"></script>'. 147 146 '<title>'.$this->System->Config['Web']['Title'].' - '.$Path.'</title> … … 162 161 function ShowFooter() 163 162 { 164 $Time = floor((GetMicrotime() - $this->Time_Start) * 100) / 100; 163 global $ScriptTimeStart; 164 $Time = round(GetMicrotime() - $ScriptTimeStart, 2); 165 165 $Output = '<div id="Footer"> 166 <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>'; 166 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |'; 167 if($this->System->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 |'; 168 $Output .= '</i></div></body></html>'; 167 169 return($Output); 168 170 }
Note:
See TracChangeset
for help on using the changeset viewer.