Размер файла: 3.02Kb
<?php
$tfiles="0";
$ts="64800";
$direct="erotika/";
$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;
$srav="0";
}
}
} }
}
$direct="videoerotika/";
$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;
$srav=0;
}
}
} }
}
$direct="erogames/";
$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;
$srav=0;
}
}
} }
}
if (!empty($today))
{
$messagetoday=" <span style='text-decoration:blink; color:red;'>+".$today." сегодня!</span>";
}
echo "($tfiles / ".round($file_all_size/1024/1024, 2)." MB)".$messagetoday."";
$tfiles=0;
$file_all_size=0;
$messagetoday="";
$today="";
?>