diff options
author | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-23 14:34:26 +0100 |
---|---|---|
committer | Mathias Mayrhofer <mtmayr@mtmayr.com> | 2020-02-23 14:34:26 +0100 |
commit | aff742b67c367a326458c4b4202224bcdca3f69d (patch) | |
tree | 2443500a355071c160ac6c6b85c4bbb5c628de13 /kml | |
parent | 73bd5514613ef23e5575229c930e40f8891e4672 (diff) |
Session raus
Diffstat (limited to 'kml')
-rw-r--r-- | kml/data.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/kml/data.php b/kml/data.php index fe01d16..639021a 100644 --- a/kml/data.php +++ b/kml/data.php @@ -1,7 +1,7 @@ <?php //author mtmayr@mtmayr.com, changed from data.php -session_start(); -error_reporting(1); +//session_start(); +error_reporting(0); require_once("../db.class.php"); require_once("../ipmatch.php"); require_once("../config.php"); @@ -316,10 +316,7 @@ foreach ($lines as $num => $line) ?> <?xml version='1.0' encoding='UTF-8'?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - -<xsl:template match="root"> - <kml xmlns="http://www.opengis.net/kml/2.2"> +<kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <name>Funkfeuer Graz</name> <Style id="ffstyle_offline"> @@ -433,8 +430,8 @@ foreach ($locations as $location) { foreach ($links as $link) { $data1 = $locations[$locids[$link->ipfromLoc]]; $data2 = $locations[$locids[$link->iptoLoc]]; - $count[$data1->locid]=true; - $count[$data2->locid]=true; + //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); |