. . . section below to alter the appearance. */ $title=str_replace("-"," ",$folder); $curScript = basename(__FILE__); $fileh = opendir("$folder"); while (false !== ($filename = readdir($fileh))) { $filenames[] = $filename; } sort($filenames); $choice = $_GET['f']; if ($choice == "") { $choice = "index"; } ?> <?php print($title . ": " . $choice) ?> $title
\n"); $arraysize = sizeof($filenames) - 1; for ($i = 2; $i <= $arraysize; $i++) { $fileName = $filenames[$i]; $fileDesc = str_replace("-", " ", $fileName); print("$fileDesc\n"); } } else { print("index page\n"); print("download text file
\n"); print("
\n");
            include($folder . "/" . $choice);
            print("
\n"); } ?>