=0xC0) && ($seginfo["code"]<0xC4)){ // Segments that contain size info $length = 5; $header = fread($stream, $length); $sizeinfo = unpack("Cfoo/nheight/nwidth", $header); $size[0] = $sizeinfo["width"]; $size[1] = $sizeinfo["height"]; $size[2] = 2; break; } else { // Dummy read to skip over data $length = $seginfo["length"] - 2; fseek($stream, $length, SEEK_CUR); } } } return array($size[0], $size[1], $size[2],"width=\"$size[0]\" height=\"$size[1]\""); } ?> 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.
\n"; print "\n"; { $output = `find *.* | grep -i .mov`.`find *.* | grep -i .avi`.`find *.* |grep -i .mpg`; $tempFileNames = split("[\n]+",$output); natcasesort($tempFileNames); reset($tempFileNames); $fileNames = $tempFileNames; $i = 0; while (list ($key, $val) = each ($tempFileNames)) { if(strlen($val) > 0) { $fileNames[$i] = $val; $i++; }; }; $numFiles = $i; } if($numFiles) { $title = $numFiles." movies in the \"".$dirName."\" directory"; print "\n

\n"; 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
\n"; print "\n"; print "\n"; print "\n "; print "\n "; print "\n"; print "\n
"; for($i = 0; $i < ($numFiles/2); $i++) { print "\n
$fileNames[$i]"; }; print "\n
"; for(; $i < $numFiles; $i++) { print "\n
$fileNames[$i]"; }; print "\n
"; } ?>