]> ruin.nu Git - ndwebbie.git/commitdiff
alliances
authorMichael Andreen <harv@ruin.nu>
Thu, 18 Jan 2007 21:30:07 +0000 (21:30 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 18 Jan 2007 21:30:07 +0000 (21:30 +0000)
ND/Web/Pages/Alliances.pm
startup.pl

index aec9ea4a1cf5de17249d5add64fcc6028bdc9016..117b0e4b9671adea435a69f07bbcd1a2ee239e7e 100644 (file)
@@ -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+)$/){
index 46d36322fb76b4cbf3e592eb4f51f111c06843d9..9f49d630c4eb261430602e962802942c12493359 100644 (file)
@@ -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;