function upload()
{
global $realtime;
$old = $realtime - (3 * 24 * 3600);
$count_new = @mysql_result(mysql_query("SELECT COUNT(*) FROM `upload` WHERE `time` > '" . $old . "' and `type` = 'file';"), 0);
$count = @mysql_result(mysql_query("SELECT COUNT(`id`) FROM `upload` WHERE `type`='file';"), 0);
if ($count_new > 0){$out = $count . " / <span class='red'><a href='upload/?act=new'>+" . $count_new . "</a></span>";}else{
$out = $count;
}
return $out;
}Вот вам счётчик полностью рабочий.
Вставлять в func.php предварительно удалить старый