View file incfiles/header.php

File size: 1.91Kb
<?php
if ($user['ban']==2)
{
    # Перенаправляем на бан-страницу
    header('Location: /banned.php');   
}
$ontimeo = time();
$ontimet="120";
$ontimes = $ontimeo + $ontimet;
$mail_new_mess = mysql_result(mysql_query("SELECT COUNT(*) FROM `mail` WHERE `pol` = '".$user['login']."' && `read` = 'NO'"), 0);
$damst=time();
$damstr="100000";
$dams= $damst-$damstr;
$new_users = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `date_reg` >= '".$dams."' "), 0);
$new_files = mysql_result(mysql_query("SELECT COUNT(*) FROM `loads` WHERE `time` >= '".$dams."' "), 0);
mysql_query("UPDATE `users` SET `last`='". input($ontimes) ."' WHERE `id` = '".$user['id']."' ");
echo '<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">

<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<meta name="description" content="'.$Core_Description.'" />
<meta name="keywords" content="'.$Core_Keywords.'" />
<link rel="shortcut icon" href="'. URL .'/design/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="'. URL .'/design/style.css" type="text/css"/>
<title>'. output($Core_Browsers_Name) .'</title>
</head>

<body>

<div class="top"><a href="/"><img src="'. URL .'/design/images/logo.png" alt="" /></a></div>

<div class="footer">'.output($Core_Opis).'</div>';
if ($mail_new_mess>0){echo '<div class="footer"><a href="/mail/?act=vx">Почта + '.output($mail_new_mess).'</a></div>';}

echo '<div class="auth"><a href="/user/cabinet.php">'. (isset($user)?$user['login']:'</a><a href="/user/entry.php">Авторизация</a>') .' | '. (isset($user)?'<a href="/user/exit.php">Выход</a>':'<a href="/user/registration.php">Регистрация</a>') .'</div>';

adsv();

?>