Файл: mob-lave.ru/moduls/forum/count.php
Строк: 22
<?
$them = mysql_result(mysql_query("SELECT COUNT(*) FROM `$system[perfix]_forum_them`"), 0);
$komm = mysql_result(mysql_query("SELECT COUNT(*) FROM `$system[perfix]_forum_komm`"), 0);
$new_them = mysql_result(mysql_query("SELECT COUNT(*) FROM `$system[perfix]_forum_them` WHERE `time` > '".$ftime."'"), 0);
$new_komm = mysql_result(mysql_query("SELECT COUNT(*) FROM `$system[perfix]_forum_komm` WHERE `time` > '".$ftime."'"), 0);
if ($new_them == 0)$new_them = NULL;
else $new_them = '+'.$new_them;
if ($new_komm == 0)$new_komm = NULL;
else $new_komm = '+'.$new_komm;
echo "<span class='count'>$them/$komm <smile><sup><font color='red'>$new_them</font>";
if($new_them != 0 && $new_komm != 0) echo '/';
echo "<font color=red>$new_komm</font></sup></smile></span>";
?>