Просмотр файла up/count.php

Размер файла: 493B
<?php

include "moduls/config.php";
include "moduls/connect.php";

$tots = "";
$tot_new = "";
$currtime = time();

$tots = mysql_fetch_row(mysql_query("SELECT count(*) FROM `".$preff."_files` WHERE `format` <> ''"));
$tot_new = mysql_fetch_row(mysql_query("SELECT count(*) FROM `".$preff."_files` WHERE `format` <> '' AND `timeupload` > '".($currtime-(3600*24*$new_f))."'"));

echo ' ('.$tots[0];
if ($tot_new[0]>0){echo '/+'.$tot_new[0].')';}else { echo ')';}
echo '<br>';

?>