Файл: backup/core/header.php
Строк: 52
<?
ob_start();
echo '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>'.$title.'</title>
<link rel="shortcut icon" href="/favicon.ico"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">';
echo '<link rel="stylesheet" type="text/css" href="/template/default/style.css"></head><body>';
if(!empty($_COOKIE['cookie_id'])){
if($_SERVER['PHP_SELF'] != '/pages/minichat.php'){
$ba = core::$dbs->query("SELECT * FROM `bann` WHERE `user_id` = ? AND `time_off` > ? LIMIT 1",array($user['id'],time()));
$ban = $ba->fetch();
if($ban>0){
echo '<div class="wizart">Баня!</div>';
func::head_menu();
echo '<div class="main"><font color="red"><b>Вы заблокированы!<br/>Причина: '.$ban['komm'].'<br/>Дата освобождения: '.date('d.m.y - H:i', $ban['time_off']).'</b></font><br/>На время бана, Вы можете посетить наш Мини-Чат</div>';
echo '<a class="l1" href="/pages/minichat.php">Перейти в чат</a>';
func::footer_menu_index();
require_once(root.'core/footer.php');
exit;
}
}
}
if(isset($user['id'])){
$files = core::$dbs->querySingle("SELECT COUNT(id) from `down` where `type` = ?",array(0));
if($level>=2){
if($files>0)echo '<a class="l1" href="/admin/zc.php?do=mod">Файл +'.$files.'</a>';
}
$access = core::$dbs->querySingle("SELECT COUNT(id) from `users` where `reg` = ?",array(1));
if($level>=2){
if($access>0)echo '<a class="l1" href="/admin/us_mod.php">Недопущенные +'.$access.'</a>';
}
}
if(isset($user['id'])){
if($user['reg']==1){
$title = 'Модерация';
echo '<div class="wizart">'.$title.'</div>';
func::head_menu_index();
echo '<div class="main">Ваша регистрация рассматривается Модератором! Ожидайте...</div>';
func::footer_menu_index();
require_once(root.'core/footer.php');
exit;
}
if($user['reg']==2){
$title = 'Регистрация отклонена';
echo '<div class="wizart">'.$title.'</div>';
func::head_menu_index();
echo '<div class="main">Ваша регистрация отклонена!</div>';
func::footer_menu_index();
require_once(root.'core/footer.php');
exit;
}
}
?>