X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=ND%2FWeb%2FPages%2FResources.pm;h=d870f8d7b7f90a87caad901d6403c8e3169c60a6;hb=7ae39e2c1aae866328efdcf6ac20f087b9d91076;hp=66b34446b6d99c1adbe3abc9c0c142773ff3d00b;hpb=afb41b394ef389172a4cd2a8397e970f6ee4a488;p=ndwebbie.git diff --git a/ND/Web/Pages/Resources.pm b/ND/Web/Pages/Resources.pm index 66b3444..d870f8d 100644 --- a/ND/Web/Pages/Resources.pm +++ b/ND/Web/Pages/Resources.pm @@ -23,23 +23,18 @@ use warnings FATAL => 'all'; use CGI qw/:standard/; use ND::Web::Include; -$ND::PAGES{resources} = {parse => \&parse, process => \&process, render=> \&render}; +our @ISA = qw/ND::Web::XMLPage/; -sub parse { - my ($uri) = @_; -} - -sub process { +$ND::Web::Page::PAGES{resources} = __PACKAGE__; -} - -sub render { - my ($DBH,$BODY) = @_; +sub render_body { + my $self = shift; + my ($BODY) = @_; + $self->{TITLE} = 'Alliance Resources'; + my $DBH = $self->{DBH}; my $error; - $ND::TEMPLATE->param(TITLE => 'Alliance Resources'); - - return $ND::NOACCESS unless isHC(); + return $self->noAccess unless $self->isHC; my $order = "respplanet DESC"; if (defined param('order') && param('order') =~ /^(size|score|resources|respplanet|nscore|nscore2|nscore3)$/){