From 87ae0c9b8631015936a2c958fed94594fc18d3fb Mon Sep 17 00:00:00 2001 From: Mathias Mayrhofer Date: Sun, 23 Feb 2020 15:12:28 +0100 Subject: Functioning Version --- kml/data.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'kml') 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" . '' . "\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" .'' . "\n", $data1->locid, $data2->locid); -- cgit v1.2.1