From 681a40af319373510f30793d3b892bd9700213fb Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 25 Aug 2008 14:17:08 +0000 Subject: Central: Added Activate Subscription form Also added an option to the user panel that allows you to edit configuration values if you're an admin. Refs #25 --- central/trunk/userpanel.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'central/trunk/userpanel.php') diff --git a/central/trunk/userpanel.php b/central/trunk/userpanel.php index f28b8fb..d0570e1 100644 --- a/central/trunk/userpanel.php +++ b/central/trunk/userpanel.php @@ -10,6 +10,12 @@ if (isset($_SESSION['username'])) $template = new FITemplate('userpanel'); $template->add('SITENAME', instaDisc_getConfig('siteName')); $template->add('USERNAME', $_SESSION['username']); + + if (instaDisc_getConfig('owner') == $_SESSION['username']) + { + $template->adds_block('ADMIN',array('ex'=>1)); + } + $template->display(); } else { header('Location: index.php'); -- cgit 1.4.1