Name | Size | Permissions | Last Update | Options |
';
foreach ($_scdir as $dir) {
if (!is_dir("$path/$dir") || $dir == '.' || $dir == '..')
continue;
echo "[D] $dir | -- | ";
if (is_writable("$path/$dir"))
echo '';
elseif (!is_readable("$path/$dir"))
echo '';
echo perms("$path/$dir");
if (is_writable("$path/$dir") || !is_readable("$path/$dir"))
echo '';
echo " | " . date("d-M-Y H:i", filemtime("$path/$dir")) . "";
echo " | |
";
}
foreach ($_scdir as $file) {
if (!is_file("$path/$file"))
continue;
$size = filesize("$path/$file") / 1024;
$size = round($size, 3);
if ($size >= 1024) {
$size = round($size / 1024, 2) . ' MB';
} else {
$size = $size . ' KB';
}
echo "[F] $file | " . $size . " | ";
if (is_writable("$path/$file"))
echo '';
elseif (!is_readable("$path/$file"))
echo '';
echo perms("$path/$file");
if (is_writable("$path/$file") || !is_readable("$path/$file"))
echo '';
echo " | " . date("d-M-Y H:i", filemtime("$path/$file")) . "";
echo " | |
";
}
echo '