]> dev.renevier.net Git - syp.git/blobdiff - items.php
fixes notices
[syp.git] / items.php
index a2a04464e398110e1cd1e2bc71f66b3d87a9e3c8..37f089d023bf7b040a07603a9f73c4f80c737f49 100644 (file)
--- 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);