Location: PHPKode > projects > KML share > kmlshare/region.php
<?php
header("Expires: Sat, 01 Jan 2000 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: post-check=0, pre-check=0",false);
session_cache_limiter();
if (!isset($_REQUEST['layer'])) {
  die("Bad query");
}
$layer = $_REQUEST['layer'];
$region = isset($_REQUEST['region'])?$_REQUEST['region']:"ALL";
@readfile($layer ."/".$region .".kml") or die("Uknown region");
?>
Return current item: KML share