From: Michael Andreen Date: Fri, 19 Jan 2007 12:35:09 +0000 (+0000) Subject: settings class X-Git-Url: https://ruin.nu/git/?a=commitdiff_plain;h=d6e0c8b9fea099b203caa71d40f8ae61996a4f75;p=ndwebbie.git settings class --- diff --git a/ND/Web/Pages/Settings.pm b/ND/Web/Pages/Settings.pm index c059bc6..5e8ecca 100644 --- a/ND/Web/Pages/Settings.pm +++ b/ND/Web/Pages/Settings.pm @@ -24,20 +24,15 @@ use ND::Include; use CGI qw/:standard/; use ND::Web::Include; -$ND::PAGES{settings} = {parse => \&parse, process => \&process, render=> \&render}; +our @ISA = qw/ND::Web::XMLPage/; -sub parse { - my ($uri) = @_; -} - -sub process { - -} - -sub render { - my ($DBH,$BODY) = @_; +$ND::Web::Page::PAGES{settings} = __PACKAGE__; - $ND::TEMPLATE->param(TITLE => 'Edit site preferences'); +sub render_body { + my $self = shift; + my ($BODY) = @_; + $self->{TITLE} = 'Edit site preferences'; + my $DBH = $self->{DBH}; if (defined param 'cmd'){ if(param('cmd') eq 'stylesheet'){ diff --git a/startup.pl b/startup.pl index 62a89b5..cef9860 100644 --- a/startup.pl +++ b/startup.pl @@ -46,7 +46,7 @@ use ND::Web::Pages::Resources; use ND::Web::Pages::PlanetNaps; use ND::Web::Pages::Motd; #use ND::Web::Pages::Forum; -#use ND::Web::Pages::Settings; +use ND::Web::Pages::Settings; use ND::Web::Pages::Graph;