File size: 2.69Kb
<?php
$mt=microtime();
require('db.php');
require('nast.php');
require('shapka.php');
@session_start();
$s=htmlspecialchars(session_id());
$ontime=time()-350;
print $beginpage;
if(!@$_SESSION['enter'])
{
print "Авторизация не удалась.<br />
Возможно вы ввели неверные логин или пароль, либо истекло время жизни сессии<br />
<a href=\"index.php?str=$str\">Повторить ввод</a><br />";
}
else
{
$time=time();
$info=mysql_fetch_assoc(mysql_query("SELECT * from `user` WHERE `uid`='$_SESSION[uid]' limit 1"));
mysql_query("UPDATE `user` SET `ldate`='$time' WHERE `uid`='$_SESSION[uid]'");
print "$vydel статистика<br />$vydel1";
$ontime=time()-350;
$count=mysql_fetch_row(mysql_query("SELECT count(*) from `user`"));
$count1=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `ldate`>$ontime"));
print "Сейчас в городки <a href=\"online.php?str=$str&ses=$s\">$count1[0]</a> жителей<br/>";
print 'Всего жителей: '.$count[0].'<br />';
$j=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `pol`=1"));
print "Девушек: $j[0]<br />";
$p=$count[0]-$j[0];
print "Парней: $p<br />";
$time1=mktime(0,0,0,date('m'),date('d'),date('y'));
$new=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `dreg`>$time1"));
print "Сегодня новеньких: <a href=\"todaynew.php?str=$str&ses=$s\">$new[0]</a><br />";
$vip=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `status`=3"));
print "Vip: <a href=\"lookst.php?str=$str&ses=$s&st=3\">$vip[0]</a><br />";
$vip=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `status`=4"));
print "Киллеры: <a href=\"lookst.php?str=$str&ses=$s&st=4\">$vip[0]</a><br />";
$vip=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `status`=5"));
print "Модеры: <a href=\"lookst.php?str=$str&ses=$s&st=5\">$vip[0]</a><br />";
$vip=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `status`=6"));
print "Старшие модеры: <a href=\"lookst.php?str=$str&ses=$s&st=6\">$vip[0]</a><br />";
$vip=mysql_fetch_row(mysql_query("SELECT count(*) from `user` WHERE `status`=7"));
print "Админы: <a href=\"lookst.php?str=$str&ses=$s&st=7\">$vip[0]</a><br />";
//Кол-во анекдотов:
$shutcount=mysql_fetch_row(mysql_query("SELECT count(*) from `shut`"));
print "Шутник знает $shutcount[0] анекдотов<br />";
print("$razd<a href=\"enter.php?str=$str&ses=$s\">Прихожая</a><br/>");
}
print $endpage;
?>