X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=index.pl;fp=index.pl;h=e0da7c0d710cf4441bdb67608108b29c5741a52f;hb=c7d0fba418165b74a21f5d5dcb4cd404ba3a64c4;hp=e1067c4f436bc4dc3615e3bc9bb31772f94cd8fb;hpb=6d04a6def4c0eece398ade98c4eb4ea701871431;p=ndwebbie.git diff --git a/index.pl b/index.pl index e1067c4..e0da7c0 100755 --- a/index.pl +++ b/index.pl @@ -37,9 +37,9 @@ our $TEMPLATE = HTML::Template->new(filename => 'templates/skel.tmpl'); for my $file ("db.pl","include.pl"){ unless (my $return = do $file){ - warn "couldn't parse $file: $@" if $@; - warn "couldn't do $file: $!" unless defined $return; - warn "couldn't run $file" unless $return; + print "couldn't parse $file: $@" if $@; + print "couldn't do $file: $!" unless defined $return; + print "couldn't run $file" unless $return; } } @@ -63,7 +63,7 @@ while (my ($name,$attack,$gid) = $query->fetchrow()){ our $LOG = $DBH->prepare('INSERT INTO log (uid,text) VALUES(?,?)'); my $page = 'main'; -if (param('page') =~ /^(main|check|motd|points|covop|top100|launchConfirmation|addintel|defrequest|raids)$/){ +if (param('page') =~ /^(main|check|motd|points|covop|top100|launchConfirmation|addintel|defrequest|raids|editRaid)$/){ $page = $1; }