function listimgfiles($dir)
{
$images=array();
if ($handle = opendir(dirname(__FILE__).'/'.$dir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." ) {
if (strripos($file,'.jpg')!==FALSE) {
$images[strtoupper($file{0}).substr($file,1,-4)]=$dir.'/'.$file;
}
if (strripos($file,'.gif')!==FALSE) {
$images[strtoupper($file{0}).substr($file,1,-4)]=$dir.'/'.$file;
}
if (strripos($file,'.png')!==FALSE) {
$images[strtoupper($file{0}).substr($file,1,-4)]=$dir.'/'.$file;
}
}
}
}
closedir($handle);
ksort($images);
return $images;
}
$PAGE_TITLE='Maps and Charts';
$PAGE_INFO="Www.ltradio.org’s various charts and maps of Israel, end time timelines, feast timelines and other interesting visual information.";
$hideadd=1;
require_once('../common/init.php');
require_once('../common/header.php');
?>
Chart View Gestures
Tap/click on chart to show/hide controls.
Double tap/click on chart to toggle zoom.
Drag to move chart when zoomed.
$filearray=array();
$listdir=dirname(__FILE__).'/';
if ($handle = opendir($listdir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != "fancybox" ) {
if (is_dir($file)) {
$filearray[$file]=$listdir.$file;
}
}
}
}
closedir($handle);
ksort($filearray);
foreach ($filearray as $dir => $dirfull):
?>
echo $dir ?>
if (file_exists($dirfull."/header.txt")) {
echo "
".file_get_contents($dirfull."/header.txt")."
"; } ?>
$images=listimgfiles($dir);
foreach ($images as $imgfile => $imgfullfile): ?>