PHP Slideshow v2.0 by Brian Mahler read()) { if (($file != '.') && ($file != 'CVS') && ($file != '..')) { $file_size = filesize($path . $file); $file_extension = file_ext($file); if(!is_dir($path . $file) && isset($file_extension) && in_array($file_extension, $allowed)) { $images[] = array('name' => $file, 'size' => $file_size); } } } ?> No images present in current directory'); } //Create the image navigation table $image_nav = '
'; for ($x=1; $x<=$count; $x++){ if ($x <= $count){ $url = $images[$x -1]['name']; $image_nav .= '' ; }else{ $image_nav .= '' . $x . ''; } } } $image_nav .= '
'; //The image to be shown $image = ''; //This script is free to use and modify to your needs, I just ask that you do not remove this copyright notice $copy = 'PHP Slideshow v2 ©2006 Brian Mahler'; //Display all elements ?>