# Released under the terms of the GNU General Public License # _ _ # | |_ ___ _____ ___ _ _ _ ___ ___| |_ # | | . | | ._| | | | . | _| . / # |_|_|___|_|_|_|___|_____|___|_| |_|_\ # http://homework.nwsnet.de/ # reads the current directory's content and displays it as html # useful if file listing is denied from server-side # installation: # - put in any directory you like on your php-capable webspace # - rename to 'index.php' if you like it to get called if no file # is specified in the url (i.e. www.example.com/files/) # - fit the design to your needs just using html and css # configuration $show_path = 0; # show local path $show_dotdirs = 0; # show and '..' $HEADING = "Humanist List Archive 5/87-5/88"; $path = getcwd(); # $path = substr($SCRIPT_FILENAME, 0, strrpos($SCRIPT_FILENAME, "/")+1); ?> directory listing


read()) { if ($entry != "." && substr($entry, -4) != ".php") { if (is_dir($entry)) { if ($entry != ".." || $show_dotdirs){ $dirs[] = $entry; } } else { $files[] = $entry; } } } $dir->close(); sort($dirs); foreach ($dirs as $dir) { echo '< >
\n"; } sort($files); foreach ($files as $file) { if (substr($file, 0, 1) != '.') { echo '
' . $file . "
\n"; } } ?>