diff options
author | Andrew Dolgov <[email protected]> | 2017-06-28 13:24:53 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-06-28 13:24:53 +0300 |
commit | 4a929e9595928e744b23575e564c9d931c4e54ed (patch) | |
tree | 99695fbbcf78f266e31807c0afb6926685134392 | |
parent | ab478f01aa120ceebf22af1cf7350c02a33ebfbe (diff) |
block invocations of useradm.php via non-cli PHP
-rw-r--r-- | useradm.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/useradm.php b/useradm.php index 2af25d2..d36167a 100644 --- a/useradm.php +++ b/useradm.php @@ -1,5 +1,9 @@ -#!/usr/bin/php <?php + if (!defined('STDIN')) { + print "Please run this script via PHP CLI interpreter (php ./useradm.php)."; + exit; + } + require_once "config.php"; require_once "db.php"; |