undef, $r->get_server_name)
and $defsettings{'xres'} = $defsettings{'yres'} = undef;
undef, $r->get_server_name)
and $defsettings{'xres'} = $defsettings{'yres'} = undef;
undef, $r->get_server_name)
or error($r, "Could not list events", 404, "File not found");
$date = undef;
$name = Sesse::pr0n::Templates::fetch_template($r, 'all-event-title');
$r->set_last_modified($ref->{'last_update'});
} else {
undef, $r->get_server_name)
or error($r, "Could not list events", 404, "File not found");
$date = undef;
$name = Sesse::pr0n::Templates::fetch_template($r, 'all-event-title');
$r->set_last_modified($ref->{'last_update'});
} else {
- $ref = $dbh->selectrow_hashref("SELECT name,date,EXTRACT(EPOCH FROM last_update) AS last_update FROM events WHERE vhost=? AND event=?",
+ $ref = $dbh->selectrow_hashref("SELECT name,date,EXTRACT(EPOCH FROM last_update) AS last_update FROM events NATURAL JOIN last_picture_cache WHERE vhost=? AND event=?",
undef, $r->get_server_name, $event)
or error($r, "Could not find event $event", 404, "File not found");
undef, $r->get_server_name, $event)
or error($r, "Could not find event $event", 404, "File not found");
}
sub print_viewres {
my ($r, $event, $settings, $defsettings) = @_;
}
sub print_viewres {
my ($r, $event, $settings, $defsettings) = @_;
chomp (my $unlimited = Sesse::pr0n::Templates::fetch_template($r, 'viewres-unlimited'));
chomp (my $original = Sesse::pr0n::Templates::fetch_template($r, 'viewres-original'));
push @alternatives, [ $unlimited, undef, undef ];
chomp (my $unlimited = Sesse::pr0n::Templates::fetch_template($r, 'viewres-unlimited'));
chomp (my $original = Sesse::pr0n::Templates::fetch_template($r, 'viewres-original'));
push @alternatives, [ $unlimited, undef, undef ];