Файл: minichat/count.php
Строк: 19
<?
$kk_p=mysql_result(mysql_query("SELECT COUNT(*) FROM `minichat`",$db), 0);
$kk_n= mysql_result(mysql_query("SELECT COUNT(*) FROM `minichat` WHERE `time` > '".(time()-86400)."'",$db), 0);
if ($kk_n==0)$kk_n=NULL;
else $kk_n="/<font color='red'>+$kk_n</font>";
echo "$kk_p$kk_n";
$om=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-200)."' AND `url` like '/minichat/%'"), 0);
$oi=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `date_last` > '".(time()-200)."' AND `url` like '/index.php%'"), 0);
$k_o=$om+$oi;
echo " / <a href='/minichat/online.php'><font color='red'>on: $k_o</font></a>";
?>