From ea34094d41e354615981f0c98267bfd4e4f8aaa6 Mon Sep 17 00:00:00 2001 From: mberard Date: Mon, 1 Nov 2021 20:12:31 +0100 Subject: [PATCH] Reverse anim plane --- include/db.class.php | 5 +---- index.php | 53 +++++++++++++++++++++++++++++++++----------- src/map.js | 23 ++++++++++++++----- 3 files changed, 58 insertions(+), 23 deletions(-) diff --git a/include/db.class.php b/include/db.class.php index 5061988..12396e2 100644 --- a/include/db.class.php +++ b/include/db.class.php @@ -165,7 +165,7 @@ class db function getCurrentPlanes() { - $query = "SELECT idAvion as uid, UNIX_TIMESTAMP(deliveryTime) as deliveryTime, deliveryTZ, destLat, destLon, destName, UNIX_TIMESTAMP(startTime) as startTime, startTZ, startLon, startLat, startName, color FROM avionpoeme WHERE deliveryTimeServer>NOW()"; + $query = "SELECT idAvion as uid, UNIX_TIMESTAMP(deliveryTime) as deliveryTime, deliveryTZ, destLat, destLon, destName, message, UNIX_TIMESTAMP(startTime) as startTime, startTZ, startLon, startLat, startName, color, message FROM avionpoeme WHERE deliveryTimeServer>NOW()"; $this->query($query); $planes = $this->result->fetch_all(MYSQLI_ASSOC); print json_encode($planes); @@ -234,6 +234,3 @@ class db return $this->avionJournalier; } } - - -?> diff --git a/index.php b/index.php index f3063b9..3926431 100644 --- a/index.php +++ b/index.php @@ -13,19 +13,46 @@ - + + + + +