Размер файла: 1.31Kb
<?php
defined('_CMEX_') or die('Error. You don`t have permision to access.');
class Show {
public function start() {
echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"><head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon.png">
<link rel="shortcut icon" href="img/apple-touch-icon.png">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Гостевая</title>
</head>
<body>';
}
public function end() {
$page_size = ob_get_length();
ob_end_flush();
$_SESSION['traf'] += $page_size;
echo '<div class="end">
'. COPY .'<br />
Трафик: '. round($_SESSION['traf'] / 1024, 2) .' Кб | Вес: '. round($page_size / 1024, 2) .' Кб<br />
'. round(microtime(1) - MT, 4) .' сек.</div>
</body>
</html>';
exit();
}
public function recall() {
echo '<a class="recall" href="/index.php"><img src="/design/4.png" alt="-" /> Назад</a>';
}
public function err($var) {
echo '<div class="err">'. $var .'</div>';
}
public function msg($var) {
echo '<div class="msg">'. $var .'</div>';
}
}
?>