\nEeeek! I can't find those photos... they were probably removed or something.\n

\n\n"; } else { // Does the requested photos series exist? If it does, do all the following // For links, do we show or hide the list? put that in $url_list if ( "$list" == "off" ) { $url_list = "&list=off"; } // Here we gather all the existing pictures that are available $fileNum = 0; $open_dir = opendir("$photos"); while ( $file = readdir( $open_dir ) ) { if ( ( !is_dir($file) ) and ( !empty($file) ) ) { if ( eregi(".\.jpg$", $file) ) { $images[$fileNum] = $file; $fileNum++; } } } closedir( $open_dir ); $total_images = count( $images ); echo "\n
\n"; // Now the real stuff if ( $images[$photo] && file_exists("$photos/$images[$photo]") ) { // Here we show the chosen image if there is one $comment = getField( $images[$photo] ); $image_file = "$photos/$images[$photo]"; $size = GetImageSize("$image_file"); $width = $size[0]; $height = $size[1]; echo "\"$comment\"\n
\n"; echo "\n \n \n \n
"; // Show previous and next buttons if it is relevant if ( $images[$photo-1] ) { $previous = $photo-1; echo "
<< previous
"; } if ( "$list" == "off" ) { $middle = "(show list below)"; } else { $middle = "(hide list below)"; } echo "
$middle
"; if ( $images[$photo+1] ) { $next = $photo+1; echo "
next >>
"; } echo "
\n\n"; echo "

\n$comment\n"; if ( "$list" == "off" ) { $i = $photo + 1; echo "
\n

(", $photo + 1, " out of $total_images)
\n"; } echo "

\n"; // For the list, do we need to underline a photo? $displayed = 1; } if ( "$list" != "off" && $total_images != 0 ) { // Display the title and the picture list echo "$title - $total_images photos\n"; echo "
\n\n"; } elseif ( $total_images == 0 ) { echo "Sorry, there are no photos for '$title' (yet?)"; } } // End of the main check echo "\n\n

\n

\nBack to my main page\n
\n\n"; pageBas( "$footer", "" ); ?>