#!/usr/bin/perl # RSTP 1.00 # (c) 1998 Tani Hosokawa $debug = 0; require "../cgi/config.pl"; $thumbnailcount = 0; @pictures = <$home/data/pictures/*>; sub logit { ($error) = @_; open LOG, ">>rstp.log"; print LOG "$error\n"; close LOG; } ($date) = @ARGV[0]; open TEMPLATE, "$home/data/templates/index.template"; open INDEX, ">$home/html/index.shtml"; logit "process.pl being called ($date)"; opendir DIR, "$home/data/pictures"; while (my $filename = readdir DIR) { if (!-e "$home/data/thumbnails/$filename") { system "cp $home/data/pictures/$filename temp.jpg"; system "./jpgtn temp.jpg"; system "cp tn_temp.jpg $home/data/thumbnails/$filename"; unlink "temp.jpg"; } } while (