« | ";
echo "UP | ";
echo "- | ";
echo "- | \n";
}
$directory=opendir($dir);
while($akt=readdir($directory))
{
if(ereg("^\.",$akt)) continue;
if(is_dir("$dir/$akt"))
{
echo "» | ";
echo "$akt | ";
echo "- | ";
echo "" . date("d.m.Y",filectime("$dir/$akt")) . " |
\n";
}
}
closedir($directory);
$directory=opendir($dir);
while($akt=readdir($directory))
{
if(ereg("^\.",$akt)) continue;
if(ereg($akt,$PHP_SELF) && $dir == ".") continue;
if(is_file("$dir/$akt"))
{
$size=round(intval(filesize("$dir/$akt"))/1024);
if ($size == "0") { $size="1"; }
echo "- | ";
echo "$akt | ";
echo "" . $size . " kB | ";
echo "" . date("d.m.Y",filectime("$dir/$akt")) . " |
\n";
}
}
closedir($directory);
?>