Файл: system/count.php
Строк: 27
<?
$us = mysql_result(mysql_query("SELECT COUNT(*) FROM user"),0);//счетчик юзеров
$adm = mysql_result(mysql_query("SELECT COUNT(*) FROM user WHERE admin > '0'"),0);//счетчик администрации
$m = mysql_result(mysql_query("SELECT COUNT(*) FROM user WHERE sex = '1'"),0);//счетчик парней
$g = mysql_result(mysql_query("SELECT COUNT(*) FROM user WHERE sex = '2'"),0);//счетчик девушек
$uson = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE datelast > '" .(time()- 600). "'"),0);//Пользователи онлайн
//$gosti = mysql_result(mysql_query("SELECT COUNT(*) FROM `usersno` WHERE date_last_entry > '".(time()-600)."'"),0);//Гости онлайн
$stena = mysql_result(mysql_query("SELECT COUNT(id) FROM stena"),0);//счетчик гостевой
$nstena = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `stena` WHERE `time` > '".(time()-86400)."'"),0);
if($nstena > 0)$ns = ' <font color="green">+ '.$nstena.' </font>';
$cst = '['.$stena.']'.$ns.'';
$forumr = mysql_result(mysql_query("SELECT COUNT(*) FROM forumr"),0);//кол-во разделов в форуме
$forums = mysql_result(mysql_query("SELECT COUNT(*) FROM forums"),0);//кол-во форумов
$them = mysql_result(mysql_query("SELECT COUNT(*) FROM forumt"),0);//кол-во тем в форуме
$post = mysql_result(mysql_query("SELECT COUNT(*) FROM forump"),0);//кол-во постов в форуме
$newstime = mysql_result(mysql_query("SELECT COUNT(id) FROM newstime"),0);//счетчик главного журнала
$cnews = mysql_result(mysql_query("SELECT COUNT(*) FROM news"),0);//счетчик новстей
$nc = mysql_result(mysql_query("SELECT COUNT(*) FROM news_comm"),0);//счетчик новстей
?>