summaryrefslogtreecommitdiffstats
path: root/gen_thumbs.php
blob: 8ea9b17d4a2421ba5db2f04d94cf9c0057365a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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;
$fspot->fromcmd = true;

$all = $fspot->getPhotoSelection();

foreach($all as $photo) {
   $fspot->gen_thumb($photo);
}

?>