diff options
author | Simon Rettberg | 2014-10-06 17:46:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-10-06 17:46:51 +0200 |
commit | 74fdd2e951c4a660d0c653e4d6c79d97da9c0955 (patch) | |
tree | 0a2d50893aa6cc684c4c1b9cec30f02e30d46e1f /apis | |
parent | Update hardcoded messagea (diff) | |
download | slx-admin-74fdd2e951c4a660d0c653e4d6c79d97da9c0955.tar.gz slx-admin-74fdd2e951c4a660d0c653e4d6c79d97da9c0955.tar.xz slx-admin-74fdd2e951c4a660d0c653e4d6c79d97da9c0955.zip |
Support api calls via cli by using first command line option as module name
Diffstat (limited to 'apis')
-rw-r--r-- | apis/init.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apis/init.inc.php b/apis/init.inc.php index d24b2cca..3e948330 100644 --- a/apis/init.inc.php +++ b/apis/init.inc.php @@ -1,6 +1,6 @@ <?php -if ($_SERVER['REMOTE_ADDR'] !== '127.0.0.1') +if (!isLocalExecution()) exit(0); Trigger::ldadp(); |