From 9f1b0f06c5f857f2dfe335b28ac98bf9748f86bb Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 30 Jun 2007 09:59:43 +0000 Subject: [PATCH] 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 --- gen_thumbs.php | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.25.1