From a612405a8cdd884153cf1b9ae0efc51d7517fe7f Mon Sep 17 00:00:00 2001 From: Anthony Parsons Date: Tue, 2 May 2006 13:20:01 +0000 Subject: [PATCH] This is pure genius. --- lib/class.Page.php | 1 + options.php | 4 ++++ theme.php | 3 +++ 3 files changed, 8 insertions(+) diff --git a/lib/class.Page.php b/lib/class.Page.php index 58bd5db..bca4d02 100644 --- a/lib/class.Page.php +++ b/lib/class.Page.php @@ -139,6 +139,7 @@ class Page $messages = array( 'level' => 'You can\'t do this.', + 'points' => 'You don\'t have enough points to use this feature.', 'login' => 'You must be logged in to do this.', 'logout' => 'You must be logged out to do this.', 'boardid' => 'Invalid board ID given.', diff --git a/options.php b/options.php index 7550d88..3b7290e 100644 --- a/options.php +++ b/options.php @@ -18,6 +18,10 @@ $page->title = 'Options Screen'; if ( ! ($user instanceof User_Authenticated) ) { $page->errorfooter('login'); } +if ( 0 >= $user->points ) { + $page->errorfooter('points'); +} + $user->userlinks['Theme Settings'] = 'theme'; diff --git a/theme.php b/theme.php index 91df4ae..e035a02 100644 --- a/theme.php +++ b/theme.php @@ -13,6 +13,9 @@ $page->title = 'Theme Settings'; if ( ! ($user instanceof User_Authenticated) ) { $page->errorfooter('login'); } +if ( 0 >= $user->points ) { + $page->errorfooter('points'); +} $user->userlinks['General Settings'] = 'options'; $premade_themes = new HTML_Select('premade_theme', 2, $user->theme); -- 2.11.4.GIT