Changeset 251 for trunk/page.php
- Timestamp:
- Oct 2, 2009, 7:12:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/page.php
r210 r251 133 133 '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'. 134 134 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'. 135 '<head><link rel="stylesheet" href="'.$this->System->Config['Web']['RootFolder'].'/style .css" type="text/css" media="all" />'.136 137 '<script type="text/javascript" src="'.$this->System->Config['Web']['RootFolder'].'/ global.js"></script>'.135 '<head><link rel="stylesheet" href="'.$this->System->Config['Web']['RootFolder'].'/style/'.$this->System->Config['Web']['Style'].'/style.css" type="text/css" media="all" />'. 136 '<meta http-equiv="content-type" content="application/xhtml+xml; charset='.$this->System->Config['Web']['Charset'].'" />'. 137 '<script type="text/javascript" src="'.$this->System->Config['Web']['RootFolder'].'/style/'.$this->System->Config['Web']['Style'].'/global.js"></script>'. 138 138 '<title>'.$this->System->Config['Web']['Title'].' - '.$Path.'</title> 139 139 </head><body'.$BodyParam.'> … … 153 153 function ShowFooter() 154 154 { 155 155 global $ScriptTimeStart; 156 156 $Time = round(GetMicrotime() - $ScriptTimeStart, 2); 157 157 $Output = '<div id="Footer"> 158 158 <i>| Správa webu: '.$this->System->Config['Web']['Admin'].' | e-mail: '.$this->System->Config['Web']['AdminEmail'].' |'; 159 159 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 |'; 160 160 $Output .= '</i></div></body></html>'; 161 161 return($Output); 162 162 } … … 182 182 { 183 183 $start = strpos($s, '<'); 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 184 $end = strpos($s, '>'); 185 if($start != 0) 186 { 187 $end = $start - 1; 188 $start = 0; 189 } 190 $line = trim(substr($s, $start, $end + 1)); 191 if(strlen($line) > 0) 192 if($line[0] == '<') 193 { 194 if($s[$start + 1] == '/') 195 { 196 $n = $n - 2; 197 $nn = $n; 198 } else 199 { 200 if(strpos($line, ' ')) $cmd = substr($line, 1, strpos($line, ' ') - 1); 201 else $cmd = substr($line, 1, strlen($line) - 2); 202 202 //echo('['.$cmd.']'); 203 204 205 203 if(strpos($s, '</'.$cmd.'>')) $n = $n + 2; 204 } 205 }// else $line = '['.$line.']'; 206 206 //if($line != '') echo(htmlspecialchars(str_repeat(' ',$nn).$line."\n")); 207 208 209 207 if($line != '') $out .= (str_repeat(' ', $nn).$line."\n"); 208 $s = substr($s, $end + 1, strlen($s)); 209 $nn = $n; 210 210 } 211 211 return($out);
Note:
See TracChangeset
for help on using the changeset viewer.