tempFileNames[$key] = $val"; if(strlen($val) > 0) { $fileNames[$i] = $val; $i++; }; }; $numFiles = $i; $output = `pwd`; $dirName = chop(substr(strrchr($output, "/"), 1)); //0 will be the /, so just return everything from 1 on //$numFiles = 0; //while(strlen($fileNames[$numFiles]) != 0) //{ // $numFiles++; //}; $title = $numFiles." pictures in the \"".$dirName."\" directory"; print "\n
";
   print "+-";
   for($i = 0; $i < strlen($title); $i++)
      print "-";
   print "-+\n| $title |\n+-";
   for($i = 0; $i < strlen($title); $i++)
      print "-";
   print "-+";
   print "\n
"; print "\n"; print "\n"; print "\n "; print "\n "; print "\n"; print "\n
"; for($i = 0; $i < ($numFiles/2); $i++) { print "\n
[PIC] $fileNames[$i]"; }; print "\n
"; for(; $i < $numFiles; $i++) { print "\n
[PIC] $fileNames[$i]"; }; print "\n
"; print "\n
Select [PIC] to view only that single picture. Otherwise, you will open the slideshow.
"; print "\n"; ?>