Файл: core/header.php
Строк: 44
<?php
ob_start();
$t = microtime(1);
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head><meta name="keywords" content="'.$set['keywords'].'"><meta name="description" content="'.$set['description'].'">
<link rel="stylesheet" media="all" type="text/css" href="/style/style.css" />
<title>'.$set['title'].' / '.$title.'</title></head><body>';
if(isset($user['id'])){
if ($_SERVER['PHP_SELF'] != '/exit.php') {
$banned = core::$dbs->query("SELECT * FROM `bann` WHERE `user_id` = ? LIMIT 1",array($user['id']));
if($banned->rowCount()>0){
$bann = $banned->fetch();
echo '<div class="ot4">Банн</div>';
echo '<div class="block"><b><font color="red">Вы забанен'.(user_inf($bann['user_id'],'sex')==2 ? 'a':NULL).'!<br />Причина: '.$bann['why'].'<br />Дата освобождения: '.date('d.m.y - H:i', $bann['time_bann']).'</font></b></div>';
echo '<div class="vib"><a href="/exit.php?ok">Выход</a></div>';
require_once(root.'core/footer.php');
die();
}
}
$mess = core::$dbs->querySingle("SELECT COUNT(id) from `mail` WHERE `user_id` = ? AND `read` = ?",array($user['id'],1));
if($mess>0) echo '<div class="vib"><a href="/mail.html">Сообщение</a> ('.$mess.')</div>';
}
?>