projects
/
phpfspot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set a startup variable. unset it with the first call of the photo index page
[phpfspot.git]
/
gen_thumbs.php
diff --git
a/gen_thumbs.php
b/gen_thumbs.php
index d8e384a8de51f0125d88a324ecb5e2c0e131a985..8ea9b17d4a2421ba5db2f04d94cf9c0057365a90 100755
(executable)
--- a/
gen_thumbs.php
+++ b/
gen_thumbs.php
@@
-1,14
+1,20
@@
#!/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;
+$fspot->fromcmd = true;
$all = $fspot->getPhotoSelection();
foreach($all as $photo) {
$all = $fspot->getPhotoSelection();
foreach($all as $photo) {
- $fspot->gen_thumb($photo
, 'fromcmd'
);
+ $fspot->gen_thumb($photo);
}
?>
}
?>