<?
if (isset($user))mysql_query("DELETE FROM `chat_who` WHERE `id_user` = '$user[id]'");
mysql_query("DELETE FROM `chat_who` WHERE `time` < '".($time-120)."'");
echo '('.mysql_result(mysql_query("SELECT COUNT(*) FROM `chat_post`"),0).')';
$k_n=mysql_result(mysql_query("SELECT COUNT(*) FROM `chat_post` WHERE `time` > '".(time()-192800)."'",$db), 0);
if ($k_n==0)$k_n=NULL;
else $k_n='+'.$k_n;
echo "<font color='red'>$k_n</font>";
?>