X-Git-Url: https://dev.renevier.net/?p=syp.git;a=blobdiff_plain;f=items.php;h=37f089d023bf7b040a07603a9f73c4f80c737f49;hp=a2a04464e398110e1cd1e2bc71f66b3d87a9e3c8;hb=HEAD;hpb=b6cae6a5698c5d0655d921f78f0ccab470bf034c diff --git a/items.php b/items.php index a2a0446..37f089d 100644 --- a/items.php +++ b/items.php @@ -11,7 +11,8 @@ function headers_callback ($output) { } 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; @@ -77,7 +78,7 @@ if (!@include_once ("./inc/settings.php")) { 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);