session_start();
$Scolor = $_SESSION['Scolor'];
require('../functions.php');
//if (isset($dir)) $PRE_LOAD_STATEMENT = "onLoad='var myWindow=\"\";myWindow=window.open(\"frame.php?dir=$dir\",\"win\",\"width=740,height=600,location=no,toolbar=no,menubar=no,alwaysRaised=yes\")'";
include('../header');
?>
print "
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 "
|
$e[0] - $e[1] ($e[2]) |
";
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 " | $pf |
";
}
}
}
}
}
closedir($handle);
print "
Back";
}
?>