commit | b65405caee74d2260608e29e5114d8dee53ec26c | [log] [tgz] |
---|---|---|
author | avm99963 <jocdeladria@gmail.com> | Mon Jan 27 03:31:40 2020 +0100 |
committer | avm99963 <jocdeladria@gmail.com> | Mon Jan 27 03:31:40 2020 +0100 |
tree | 6220730b3e6843696a51065e0f1e3bb37c3b7e79 | |
parent | 99bb77c461f6e5dc41805e78a8e54927718ff1fd [diff] [blame] |
Fixed bug
diff --git a/cron/parsegtfs.php b/cron/parsegtfs.php index 6965136..06de52b 100644 --- a/cron/parsegtfs.php +++ b/cron/parsegtfs.php
@@ -1,6 +1,11 @@ <?php require_once(__DIR__."/../core.php"); +if (php_sapi_name() != "cli") { + security::notFound(); + exit(); +} + echo "[info] Getting gtfs.zip file...\n"; $temp = tmpfile(); tmbApi::request("static/datasets/gtfs.zip", $temp);