issue13, added first try of external link to directly jump to a photo
[phpfspot.git] / gen_thumbs.php
index 4e621dce94ff6f9e81adfb33519f5d937630f462..8ea9b17d4a2421ba5db2f04d94cf9c0057365a90 100755 (executable)
@@ -1,6 +1,11 @@
 #!/usr/bin/php
 <?php
 
 #!/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;
 require_once "phpfspot.class.php";
 
 $fspot = new PHPFSPOT;