\n"; if ($at_topdir) { echo " \n"; } else { echo "..\n"; } echo " | \n"; # List directories if present echo "\n";
if ($dirs) {
foreach($dirs as $name) {
# List child directory
if ($name!="..") {
echo "$name \n"; } } } else { print " \n"; } echo " | \n";
# List files if present
echo "\n";
if ($files) {
foreach($files as $name) {
# Form relative path to file by removing leading /.
echo "$name \n"; } } else { print " \n"; } echo " | \n";
# Finish table
echo "