2 ) { /* The 2 accounts for . and .. */
echo "
";
// All dirs
foreach( $files as $file ) {
if( file_exists($root_directory . $_POST['dir'] . $file) && $file != '.' && $file != '..' && $file[0] != '.' && is_dir($root_directory . $_POST['dir'] . $file) ) { // crmv@193430
echo "- " . htmlentities($file) . "
";
}
}
// All files
foreach( $files as $file ) {
if( file_exists($root_directory . $_POST['dir'] . $file) && $file != '.' && $file != '..' && $file[0] != '.' && !is_dir($root_directory . $_POST['dir'] . $file) ) { // crmv@193430
$ext = preg_replace('/^.*\./', '', $file);
echo "- " . htmlentities($file) . "
";
}
}
echo "
";
}
}
?>