diff options
-rw-r--r-- | kml/data.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kml/data.php b/kml/data.php index ef4bdeb..f5360d0 100644 --- a/kml/data.php +++ b/kml/data.php @@ -6,15 +6,12 @@ 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: text/plain"); +header("Content-Type: application/vnd.google-earth.kml+xml"); 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"]); - - $handle = fopen ('../'.$conf['router']['file'],"r"); while ( ($data = fgetcsv ($handle, 1000, ",")) !== FALSE ) { // Daten werden aus der Datei $routerhash[$data[0]]=$data; @@ -439,8 +436,6 @@ foreach ($locations as $location) { foreach ($links as $link) { $data1 = $locations[$locids[$link->ipfromLoc]]; $data2 = $locations[$locids[$link->iptoLoc]]; - //B$count[$data1->locid]=true; - //$count[$data2->locid]=true; //printf("\t" . '<link fromid="%s" from="%s" latfrom="%s" lngfrom="%s" toid="%s" to="%s" latto="%s" lngto="%s" value="%s" channel="%s" defaultroute="%s" frequency="%s" dnsfrom="%s" dnsto="%s"/>' . "\n", // $data1->locid, $data1->locname, $data1->lat,$data1->lng,$data2->locid, $data2->locname, $data2->lat, $data2->lng, $link->label, $link->channel, $link->defaultroute, $link->frequency, $link->dnsfrom,$link->dnsto); printf("\t" .'<Placemark id="%s_%s">' . "\n", $data1->locid, $data2->locid); |