Файл: system/classes/Tpl.php
Строк: 25
<?php
class Tpl extends Smarty
{
public function header ($title)
{
global $config, $show, $db, $user;
if ($show != 'ban' && $db->query("SELECT `id` FROM `users_block` WHERE `id_profile` = '" . $user['id'] . "' AND `time_ban` > '" . time() . "'")->rowCount() != 0)
{
Core::go('/pages/blocked');
}
$this->assign([
'title' => Lang::word($title != null ? $title : $config['title']),
'copyright' => $config['copyright'],
'keywords' => $config['keywords'],
'description' => $config['description']
]);
$this->display('header.tpl');
}
public function footer ()
{
global $PGen, $navbar;
$this->assign([
'PGen' => round(microtime(1) - $PGen, 3)
]);
$this->display('footer.tpl');
exit;
}
}