$d
"; } } else { $files = array(); foreach (scandir($dir) as $f) if (strncmp($f, "thumb_", 6) != 0 && $f[0] != '.' && strcasecmp(substr($f, strlen($f) - 4), ".jpg") == 0) $files[] = $f; } function thumbnails() { global $files, $image_width, $dir, $thumb_pfx; echo "\n\n
⊕" . " | \n";
}
echo "
Click image to locate it on map, or click map marker to see image. Click ⊕ symbol for enlarged image.
"; } function sexagesimal_to_float($x) { eval('$f = ' . $x[0] . "+" . $x[1] . " / 60 + " . $x[2] . " / 3600;"); return $f; } function map() { echo "
"; } function photomap_start($title = "Google Photo Map", $tsize = 120, $gpxfile = NULL) { global $files, $dir, $thumbsize, $thumb_pfx; $thumbsize = $tsize; $thumb_pfx = build_thumbs($files, $dir) ? "thumb_" : ""; if ($thumb_pfx == "") $image_width = " width=$thumbsize "; else $image_width = ""; mapit($files, $dir, $title, $gpxfile); echo "
";
}
function photomap_end() {
echo <<