4 if(!isset($_SERVER["TERM"])) {
5 print "<br /><br />This script should only be invoked from command line!<br />\n";
9 require_once "phpfspot.class.php";
11 $fspot = new PHPFSPOT;
12 $fspot->fromcmd = true;
14 $all = $fspot->getPhotoSelection();
16 foreach($all as $photo) {
17 $fspot->gen_thumb($photo);