From 8fce36a22715c76ba7e4d2ec63a7b984233628fa Mon Sep 17 00:00:00 2001
From: Adrian Amaglio
Date: Tue, 27 Mar 2018 09:36:12 +0200
Subject: [PATCH] :)
---
index.php | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/index.php b/index.php
index a90b1f0..15c9ffa 100644
--- a/index.php
+++ b/index.php
@@ -2,16 +2,15 @@
/*
* Page displays in french because it will be mostly used by french. Feel free to add language system.
* TODO Cache the humongous API data
+ * TODO Sort the stations
*/
-/* Form submit if a filter is active or not */
+/* Form submit values if a filter is active or not */
$SEND_BUTTON = [
true => [ 'value' => '', 'text' => 'Tout afficher'],
false => [ 'value' => 'true', 'text' => 'Afficher la sélection'],
];
-
-
/* Fetching velov API in an associative array. This form is easier to use as keys are ids */
$data =
json_decode(
@@ -35,7 +34,7 @@ if(isset($_GET['filter'])){
if(htmlentities($_GET['filter']))
$filter = true;
else
- ;$filter = false;
+ $filter = false;
}else
$filter = false;
?>
@@ -84,5 +83,9 @@ if(isset($_GET['filter'])){
Pourquoi ces couleurs ?
Le vert est réservé aux stations actives, le rouge est pour celles inutilisables.
+
+
C’est tout dans le désordre !
+ Oui.
+