VÖCS directories of pictures


"; if ($handle=opendir('./IMAGES/')) { while (false!== ($folder=readdir($handle))) { if ($folder != "." && $folder != ".." && is_dir("./IMAGES/".$folder)) { if ($e = preg_split('/_/',$folder)) print " "; if (isset($dir) and $dir==$folder) { $files = array(); if ($dh = opendir("./IMAGES/$dir")) { while (($file = readdir($dh)) !== false) if ($file != '.' and $file != '..') array_push($files,"$file"); closedir($dh); } else die(); sort($files); foreach ($files as $f) { if ($f != '.' and $f != '..') { $pf = preg_replace('/_/',' ',$f); $pf = preg_replace('/.jpg/i','',$pf); $pf = preg_replace('/.jpeg/i','',$pf); $pf = preg_replace('/.gif/i','',$pf); $pf = preg_replace('/.png/i','',$pf); print ""; } } } } } closedir($handle); print "
$e[0] - $e[1] ($e[2])
$pf

Back"; } ?>