From dcebab2e66e181a78155076685f586f946cbe1f8 Mon Sep 17 00:00:00 2001 From: Mathias Mayrhofer Date: Sun, 23 Feb 2020 15:01:25 +0100 Subject: Test --- kml/data.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kml/data.php b/kml/data.php index 01b4f2c..3327ba9 100644 --- a/kml/data.php +++ b/kml/data.php @@ -19,6 +19,10 @@ while ( ($data = fgetcsv ($handle, 1000, ",")) !== FALSE ) { // Daten werde } fclose ($handle); +printf("abc %s", $locations); +exit; + + #if(!$conf['acl']['auth'] ) #{ # if (isset($_SESSION['logged_in']) && $_SESSION['logged_in']) @@ -48,8 +52,6 @@ $links = array(); $already = array(); $count = array(); -printf("abc %s", $locations); -exit; $db->query("SELECT ip, ip.name as ipname,location.id as locid,location.name as locname, node.name as nodename FROM ip, node, location WHERE ip.node_id = node.id and node.location_id=location.id"); while ($data = $db->getNextObject()) { @@ -69,6 +71,7 @@ if($conf['acl']['auth']) else $db->query("SELECT id as locid, name as locname, pixel_x, pixel_y, gallery_link, location.hastinc as hastinc FROM location WHERE location.hidden = 0 ORDER BY name ASC"); + while ($data = $db->getNextObject()) { if ($data->pixel_x == "0") continue; -- cgit v1.2.1