}
header ("Content-type: application/vnd.google-earth.kml+xml");
- header ("Cache-control: must-revalidate");
+ // no-cache is needed otherwise IE does not try to get new version.
+ header ("Cache-control: no-cache, must-revalidate");
header (sprintf ("ETag: %s", $etag));
return $output;
exit ("server error");
}
require_once ("./inc/utils.php");
-require_once ("./inc/db/mysql.php");
+require_once ("./inc/db/" . (defined ("DBTYPE")? DBTYPE: "mysql") . ".php");
try {
$connection->connect (DBHOST, DBUSER, DBPWD, DBNAME, DBPREFIX);