Name |
Size |
Permissions |
Options |
';
foreach ($scandir as $dir) {
if (!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
echo "
$dir |
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 " |
|
";
}
?>
| | | | ';
foreach ($scandir 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 "
$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 " |
|
";
?>
';
}
echo
'