diff --git a/index.php b/index.php index 4af624b..444a865 100644 --- a/index.php +++ b/index.php @@ -1,19 +1,27 @@ [ - 'header' => "Content-type: application/x-www-form-urlencoded\r\n", - 'method' => 'POST', - 'content' => http_build_query([]) - ] - ]) - ), - true -); + json_decode( + file_get_contents( + 'https://velov.grandlyon.com/fr/les-stations.html?type=777&tx_glstationsvelov_pi1%5Baction%5D=listOfVelovWidthInfoStation&tx_glstationsvelov_pi1%5Bcontroller%5D=StationVelov', + false, + stream_context_create([ + 'http' => [ + 'header' => "Content-type: application/x-www-form-urlencoded\r\n", + 'method' => 'POST', + 'content' => http_build_query([]) + ] + ]) + ), + true + ); + +/* Check if a filter is enabled */ if(isset($_GET['filter'])){ if(htmlentities($_GET['filter'])) @@ -75,5 +83,13 @@ if(isset($_GET['filter'])){ +
+
+