Файл: system/classes/Tmp.php
Строк: 43
<?
Class Tmp {
public function header($title)
{
global $db, $gens;
$gens = microtime(1);
?>
<!DOCTYPE html>
<html lang="ru">
<head>
<title><?php echo Language::config($title);?></title>
<link rel="stylesheet" href="/design/<?php echo Core::config('theme')?>/style.css" />
<meta name="viewport" content="width=device-width">
</head>
<body>
<?
}
public function footer()
{
?></div><?
global $gens, $count_z, $db;
$o=$db->fass("SELECT COUNT(id) as count FROM `users` WHERE `date_last_entry` > '".(time() - 360)."'");
if($_SERVER['REQUEST_URI'] !== '/')
{
self::div('footer', '<a href="/">'.Language::config('home').'</a>', 1);
self::div('footer', ''. Language::config('online').':'.$o['count']. '</br><a href="http://upstats.su/cclick43"><img src="http://upstats.su/simage43" alt="UpStats.Su"/></a>');
}
else
{
self::div('footer', ''. Language::config('online').':'.$o['count']. '</br><a href="http://upstats.su/cclick43"><img src="http://upstats.su/bimage43" alt="UpStats.Su"/></a>');
}
echo' </div>
</td></tr></table>
</body></html>';
}
public function div($name, $content)
{
echo '<div class="'.$name.'">'.$content.'</div>';
}
public function img($file)
{
echo '<img src="/design/images/'.$file.'"/>';
}
}
?>