/**
*
* @package Lib3rty.com: download script
* @versiune 1.00 2008/02/03 04:22:72
* @copyright (c) Lib3rty.com
* @licenta NU
*
*/
function dskspace ($dir)
{
$s = stat ($dir);
$space = $s ["blocks"]* 512;
if (is_dir ($dir))
{
$dh = opendir ($dir);
while (($file = readdir ($dh)) !==false)
if ($file != "." and $file != "..")
$space += dskspace ($dir . "/" . $file);
closedir ($dh);
}
return $space;
}
?>