require("../include/template.php");
$section='call-of-pripyat';
$subsection='screenshots';
showHeader($section,$subsection);
showMainMenu($section);
showSubMenu($section,$subsection);
showContentHeader();
?>
h1('Screenshots'); ?>
h2('Absolute Nature 4'); ?>
$areas=array('Zaton', 'Jupiter', 'Pripyat');
foreach ($areas as $area) {
$images=array();
if ($handle = opendir('../images/'.$section.'/nature4/thumbs')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && substr($file,-3)=='jpg' && strpos($file,strtolower($area))!==false) {
$images[]= $file;
}
}
closedir($handle);
}
sort($images);
foreach ($images as $image) {
$col++;
list($area, $style, $number) =explode('_',substr($image,0,strpos($image,'.')));
?>
}
}
?>
h2('Absolute Nature 3'); ?>
$areas=array('Zaton', 'Jupiter', 'Pripyat');
foreach ($areas as $area) {
$images=array();
if ($handle = opendir('../images/'.$section.'/nature3/thumbs')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && substr($file,-3)=='jpg' && strpos($file,strtolower($area))!==false) {
$images[]= $file;
}
}
closedir($handle);
}
sort($images);
foreach ($images as $image) {
$col++;
list($number, $area, $style) =explode('_',substr($image,0,strpos($image,'.')));
?>
}
}
?>
h2('Absolute Nature 2'); ?>
$images=array();
if ($handle = opendir('../images/'.$section.'/nature/thumbs')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && substr($file,-3)=='jpg') {
$images[]= "$file";
}
}
closedir($handle);
}
sort($images);
//echo '';
$col=0;
$areas=array('zaton'=>'Zaton', 'jupiter'=>'Jupiter', 'pripyat'=>'Pripyat');
foreach ($images as $image) {
$col++;
list($number, $area, $style) =explode('_',substr($image,0,strpos($image,'.')));
?>
}
?>
h2('Absolute Structures'); ?>
$images=array();
if ($handle = opendir('../images/'.$section.'/structures/thumbs')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && substr($file,-3)=='jpg') {
$images[]= "$file";
}
}
closedir($handle);
}
sort($images);
//echo '';
$col=0;
$areas=array('zaton'=>'Zaton', 'jupiter'=>'Jupiter', 'pripyat'=>'Pripyat');
foreach ($images as $image) {
$col++;
list($number, $area, $style) =explode('_',substr($image,0,strpos($image,'.')));
?>
}
?>
showContentFooter();
showFooter();
?>