From 2a887f9ecbcb699418d9d55875b4737d87c10f15 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 18 Jan 2007 21:30:07 +0000 Subject: [PATCH] alliances --- ND/Web/Pages/Alliances.pm | 21 ++++++++------------- startup.pl | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) 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+)$/){ diff --git a/startup.pl b/startup.pl index 46d3632..9f49d63 100644 --- a/startup.pl +++ b/startup.pl @@ -40,7 +40,7 @@ use ND::Web::Pages::EditRaid; use ND::Web::Pages::Calls; use ND::Web::Pages::Users; use ND::Web::Pages::Intel; -#use ND::Web::Pages::Alliances; +use ND::Web::Pages::Alliances; #use ND::Web::Pages::MemberIntel; #use ND::Web::Pages::Resources; #use ND::Web::Pages::PlanetNaps; -- 2.39.2