X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=index.pl;h=3937831a738e81695fbfe29e681184ee0d442956;hb=e9f12b8d4ba3651c8e78094d84cd825afb816794;hp=e1067c4f436bc4dc3615e3bc9bb31772f94cd8fb;hpb=8d1ec9372fa9786009022fca3503ef3c79974f3e;p=ndwebbie.git diff --git a/index.pl b/index.pl index e1067c4..3937831 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|calls)$/){ $page = $1; }