Размер файла: 1.14Kb
<?PHP
$called = 1;
$tfiles = 0;
$file_all_size=0;
$ufolder = "".$direct."";
$papka = opendir ("$ufolder");
while ($file = readdir ($papka))
{ if ($file!="index.php" && $file!=".." && $file!="." && $file!="count.php" && $file!="comm.php" && $file!="loadfile.php" && $file!=".htaccess" && $file!="preview" && $file!="config.php")
{
$dh = opendir( "".$ufolder."".$file."/" ) or die("Could not open directory");
while ( ! ( ( $file1 = readdir( $dh ) ) === false ) ) {
if ( is_file( "".$ufolder."".$file."/".$file1."" ) and (!in_array($file,$not_include)) )
{ $f=filesize("".$ufolder."".$file."/".$file1."");
if ($file1!="index.php")
{ $realt=time();
$srav=filectime("".$ufolder."".$file."/".$file1."")+$ts;
if ($realt<$srav)
{ $today=$today+1; }
$file_all_size=$file_all_size+$f;
$tfiles=$tfiles+1;
}
}
}
}
}
if (!empty($today))
{
$messagetoday=" <span style='text-decoration:blink; color:red;'>+".$today." сегодня!</span>";
}
print " (".$tfiles." / ".round($file_all_size/1024/1024, 2)." MB)".$messagetoday."";
$messagetoday="";
$today="";
?>