'; //echo "REQUEST_URI is " . $_SERVER['REQUEST_URI'] . '
'; //echo "PHP_SELF is " . $_SERVER['PHP_SELF'] . '
'; //echo "sbFLDR is " . $sbFLDR . '
'; //echo "folder_to_process is " . $folder_to_process . '
'; // Get list of pictures to display from a file in the directory $imageListFile = 'dir2sb.txt'; if ( !file_exists($folder_to_process.$imageListFile)) { // no image list file, so stop echo "No picture file specified. Script stopped.
"; exit; } else { $filelist=file($folder_to_process.$imageListFile); } // output page title echo '

Photos from Building on a Dream 2004 (Harvard 2004):
' . $pgTTL . '

'; echo '

(Click small image to see full size)

'; // Loop thru the filenames foreach ($filelist as $filename) { $filename = trim($filename); if ( !file_exists($folder_to_process.$filename)) { echo 'File missing: ' . $folder_to_process . $filename . '
'; } else { // skip directories and thumbnails if (!is_dir($folder_to_process.$filename && substr($filename,0,5) != '$tmb$') ) { // output the link statement echo ''. ' '. ''; } } } ?>