View file waplend/games/count.php

File size: 844B
<?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")
	{
		$file_all_size=$file_all_size+$f;
		$tfiles=$tfiles+1;
	}
	}
}

    	}
    	
    }

print " (".$tfiles." / ".round($file_all_size/1024/1024, 2)." MB)";
?>