use File::Spec;
my $show_img;
-my $send_archive;
my %args = (
'i' => { 'var' => \$show_img, 'check' => '\d+' },
- 'a' => { 'var' => \$send_archive }
);
our $meta;
our $num_photos;
-sub new() {
- if ($send_archive && $CF{'AllowArchives'}) {
- # FIXME?
- require UCW::Gallery::Archive;
- return new UCW::Gallery::Archive($send_archive);
- } else {
- return bless {};
- }
-}
-
sub error($) {
print "<p style='color:red'>Bad luck, the script is broken. Sorry.\n<p>$_[0]\n";
print "</body></html>\n";