diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-30 09:59:43 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-30 09:59:43 +0000 |
commit | 9f1b0f06c5f857f2dfe335b28ac98bf9748f86bb (patch) | |
tree | 86d2c9ffceafea3e6ea16cb5728fabf315d76236 /gen_thumbs.php | |
parent | 7b0e0e56666b6755665b76a4c525a1269e4bc0d1 (diff) |
make sure gen_thumbs can only be invoked from command line and not via the browser
git-svn-id: file:///var/lib/svn/phpfspot/trunk@145 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'gen_thumbs.php')
-rwxr-xr-x | gen_thumbs.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gen_thumbs.php b/gen_thumbs.php index 4e621dc..8ea9b17 100755 --- a/gen_thumbs.php +++ b/gen_thumbs.php @@ -1,6 +1,11 @@ #!/usr/bin/php <?php +if(!isset($_SERVER["TERM"])) { + print "<br /><br />This script should only be invoked from command line!<br />\n"; + die; +} + require_once "phpfspot.class.php"; $fspot = new PHPFSPOT; |