projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b0e0e5
)
make sure gen_thumbs can only be invoked from command line and not via the browser
author
Andreas Unterkircher
<unki@netshadow.at>
Sat, 30 Jun 2007 09:59:43 +0000
(09:59 +0000)
committer
Andreas Unterkircher
<unki@netshadow.at>
Sat, 30 Jun 2007 09:59:43 +0000
(09:59 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@145
fa6a889d
-dae6-447d-9e79-
4ba9a3039384
gen_thumbs.php
patch
|
blob
|
history
diff --git
a/gen_thumbs.php
b/gen_thumbs.php
index 4e621dce94ff6f9e81adfb33519f5d937630f462..8ea9b17d4a2421ba5db2f04d94cf9c0057365a90 100755
(executable)
--- 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;