diff options
author | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-23 14:53:50 +0100 |
---|---|---|
committer | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-23 14:53:50 +0100 |
commit | 168a25af3cbea41def2a6ef628e1fed8ab10411a (patch) | |
tree | 0e78888a8fad5618d9b3ba0bd245e993f42bd99a | |
parent | 7d0db278bcbdb754d9d2b596629552f62152ac39 (diff) |
Test
-rw-r--r-- | kml/data.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kml/data.php b/kml/data.php index 066a446..24fc554 100644 --- a/kml/data.php +++ b/kml/data.php @@ -1,17 +1,21 @@ <?php -//author mtmayr@mtmayr.com, changed from data.php +//author mtmayr@mtmayr.com, copy&changed from /data.php //session_start(); error_reporting(0); require_once("../db.class.php"); require_once("../ipmatch.php"); require_once("../config.php"); -header("Content-Type: application/vnd.google-earth.kml+xml"); +#header("Content-Type: application/vnd.google-earth.kml+xml"); +header("Content-Type: text/plain"); header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); $db = new DB($conf['db']['user'], $conf['db']['password'], $conf['db']['host'], $conf['db']['database']); $conf['acl']['auth'] = match_network($conf['acl']['range'],$_SERVER["REMOTE_ADDR"]); +echo $db +exit; + $handle = fopen ($conf['router']['file'],"r"); while ( ($data = fgetcsv ($handle, 1000, ",")) !== FALSE ) { // Daten werden aus der Datei $routerhash[$data[0]]=$data; @@ -315,7 +319,6 @@ foreach ($lines as $num => $line) } echo "<?xml version='1.0' encoding='UTF-8'?>\n"; - ?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> |