summaryrefslogtreecommitdiff
path: root/kml
diff options
context:
space:
mode:
authorMathias Mayrhofer <mtmayr@mtmayr.com>2020-02-23 15:12:28 +0100
committerMathias Mayrhofer <mtmayr@mtmayr.com>2020-02-23 15:12:28 +0100
commit87ae0c9b8631015936a2c958fed94594fc18d3fb (patch)
tree63a762e9a6bbb481cca200773406e4d7fc33745e /kml
parent33d49b5c9f9c5fc45107c684ec7c307ba9f95073 (diff)
Functioning Version
Diffstat (limited to 'kml')
-rw-r--r--kml/data.php7
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);