X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FPages%2FAlliances.pm;h=117b0e4b9671adea435a69f07bbcd1a2ee239e7e;hb=2a887f9ecbcb699418d9d55875b4737d87c10f15;hp=aec9ea4a1cf5de17249d5add64fcc6028bdc9016;hpb=9ce5a8529e75cb109ed9ba3fc788c94ef47b1080;p=ndwebbie.git diff --git a/ND/Web/Pages/Alliances.pm b/ND/Web/Pages/Alliances.pm index aec9ea4..117b0e4 100644 --- a/ND/Web/Pages/Alliances.pm +++ b/ND/Web/Pages/Alliances.pm @@ -24,23 +24,18 @@ use ND::Include; use CGI qw/:standard/; use ND::Web::Include; -$ND::PAGES{alliances} = {parse => \&parse, process => \&process, render=> \&render}; +our @ISA = qw/ND::Web::XMLPage/; -sub parse { - my ($uri) = @_; -} - -sub process { +$ND::Web::Page::PAGES{alliances} = __PACKAGE__; -} - -sub render { - my ($DBH,$BODY) = @_; +sub render_body { + my $self = shift; + my ($BODY) = @_; + $self->{TITLE} = 'Alliances'; + my $DBH = $self->{DBH}; my $error; - $ND::TEMPLATE->param(TITLE => 'Alliances'); - - return $ND::NOACCESS unless isHC(); + return $self->noAccess unless $self->isHC; my $alliance; if (defined param('alliance') && param('alliance') =~ /^(\d+)$/){