Art Galleries - Listing" .$dir . "

\n"; } else { echo "

Art Galleries - " .$dir . "

\n"; } // Check to see if there's any dots in the directory -- if there are there's a problem! if (ereg("\.", $_GET['dir'])){ die("There has a problem with your request. Please email the Webmaster if the problem persists. ");} if ($_GET['show'] != "" && $_GET['dir'] != "") { //show the current image if any echo "\n"; } else { if ($_GET['dir'] == ""){ // Otherwise, if directory is blank $handle=opendir("."); $count=0; echo "\n"; while (false!==($dir = readdir($handle))) { if ($dir != "_vti_cnf") { if ($dir != "Thumbs.db") { #if (is_dir($dir) && !preg_match("/^\.[\..]*?/",$dir)) { if (is_dir($dir) && !preg_match("/^\.[\..]*?/",$dir)) { if (!preg_match("/.small./",$file)) { $dirurl = urlencode($dir); #echo "

$dir

\n"; echo "\n"; $count+=1; #echo "hi"; if($count==$break) { echo "\n"; echo "\n"; $count=0; } } } } } } echo "

$dir

\n"; } else { // If a directory was specified: $handle=opendir("./{$_GET['dir']}"); $count=0; echo "\n"; while ($file = readdir($handle)) { # if(!is_dir($file)) # { if ($file != "_vti_cnf") { if ($file != "Thumbs.db") { #if (!preg_match("/^\.[\..]*?/",$file)) { if (!preg_match("/^\.[\..]*?/",$file)) { if (!preg_match("/.small./",$file)) { list($filename,$extension)=split("[/.]",$file); $filename=ucfirst(strtolower($filename)); #echo "$file\n "; echo "\n "; $count+=1; #echo "$filename"; # echo "extension:". $extension; if($count==$break) { echo "\n"; echo "\n"; #echo "
\n"; $count=0; } #} } } } } } echo "

$file

\n"; #echo "HTTP SERVER VARS: " .$HTTP_SERVER_VARS['HTTP_REFERRER']; echo "
Back to Gallery Listing  Back to Art Web  Back to Previous Page "; } closedir($handle); } ?>