From: Andreas Unterkircher Date: Sat, 30 Jun 2007 09:59:43 +0000 (+0000) Subject: make sure gen_thumbs can only be invoked from command line and not via the browser X-Git-Tag: phpfspot-1.2~190 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f1b0f06c5f857f2dfe335b28ac98bf9748f86bb;p=phpfspot.git 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 --- 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
This script should only be invoked from command line!
\n"; + die; +} + require_once "phpfspot.class.php"; $fspot = new PHPFSPOT;