Add a new internal vhost. (Gee.)
authorSteinar H. Gunderson <sesse@debian.org>
Tue, 3 Jul 2007 11:50:35 +0000 (13:50 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Tue, 3 Jul 2007 11:50:35 +0000 (13:50 +0200)
perl/Sesse/pr0n/Index.pm
perl/Sesse/pr0n/Listing.pm
perl/Sesse/pr0n/WebDAV.pm
perl/Sesse/pr0n/Wizard.pm

index e331cc4048e51e3406a80cc1fa9fc779525ce979..88e0e49339311096ae02bc6ae7af355aa4957cea 100644 (file)
@@ -23,7 +23,7 @@ sub handler {
        }
 
        # Internal? (Ugly?) 
-       if ($r->get_server_name =~ /internal/ || $r->get_server_name =~ /skoyen\.bilder\.knatten\.com/) {
+       if ($r->get_server_name =~ /internal/ || $r->get_server_name =~ /skoyen\.bilder\.knatten\.com/ || $r->get_server_name =~ /lia\.heimdal\.org/) {
                my $user = Sesse::pr0n::Common::check_access($r);
                if (!defined($user)) {
                        return Apache2::Const::OK;
index 5e05283a683c4cf557eeb4cb13ce68ed0cdce5fd..37f67c75dfab2ebf630fb74973a8ce43d2245290 100644 (file)
@@ -9,7 +9,7 @@ sub handler {
        my $dbh = Sesse::pr0n::Common::get_dbh();
 
         # Internal? (Ugly?)
-       if ($r->get_server_name =~ /internal/ || $r->get_server_name =~ /skoyen\.bilder\.knatten\.com/) {
+       if ($r->get_server_name =~ /internal/ || $r->get_server_name =~ /skoyen\.bilder\.knatten\.com/ || $r->get_server_name =~ /lia\.heimdal\.org/) {
                my $user = Sesse::pr0n::Common::check_access($r);
                if (!defined($user)) {
                        return Apache2::Const::OK;
index 8f30b7a0074d64052fc839c2b6190c10aaf88108..fe599303220f919f2a632c427dcab4a0a7c5d2ee 100644 (file)
@@ -602,7 +602,7 @@ EOF
 
                        # Try to insert this new file
                        eval {
-                               $dbh->do('INSERT INTO images (id,vhost,event,uploadedby,takenby,filename) VALUES (?,?,?,?,?);',
+                               $dbh->do('INSERT INTO images (id,vhost,event,uploadedby,takenby,filename) VALUES (?,?,?,?,?,?)',
                                        undef, $newid, $r->get_server_name, $event, $user, $takenby, $filename);
                                $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE vhost=? AND event=?',
                                        undef, $r->get_server_name, $event);
index a71148a36ab959bb9488099b8885ccc61b614627..a756a76f01c4725a5163f909556336130bc32df0 100644 (file)
@@ -11,7 +11,7 @@ sub handler {
        my $dbh = Sesse::pr0n::Common::get_dbh();
 
         # Internal? (Ugly?)
-       if ($r->get_server_name =~ /internal/ || $r->get_server_name =~ /skoyen\.bilder\.knatten\.com/) {
+       if ($r->get_server_name =~ /internal/ || $r->get_server_name =~ /skoyen\.bilder\.knatten\.com/ || $r->get_server_name =~ /lia\.heimdal\.org/) {
                my $user = Sesse::pr0n::Common::check_access($r);
                if (!defined($user)) {
                        return Apache2::Const::OK;