Файл: forum/inc/count.tpl
Строк: 11
<?
$f_u = mysql_result(mysql_query("SELECT COUNT(*) FROM
`forum-u`"), 0);
$f_u_n = mysql_result(mysql_query("SELECT
COUNT(*) FROM `forum-u` WHERE `date` >
'".(time()-86400)."'"), 0);
$f_m =
mysql_result(mysql_query("SELECT COUNT(*) FROM `forum-m`"),
0);
$f_m_n = mysql_result(mysql_query("SELECT COUNT(*) FROM `forum-m`
WHERE `date` > '".(time()-86400)."'"), 0);
echo
'<time>'.$f_u.'';
if ($f_u_n!=0)echo
'<new>+'.$f_u_n.'</new>';
echo '/'.$f_m.'';
if ($f_m_n!=0)echo
'<new>+'.$f_m_n.'</new>';
echo '</time>';
?>