about summary refs log tree commit diff stats
path: root/central/trunk/userpanel.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-25 14:17:08 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-25 14:17:08 +0000
commit681a40af319373510f30793d3b892bd9700213fb (patch)
tree06bae9ed1f84f044d2edc45e0a75303e92239ba8 /central/trunk/userpanel.php
parent19ecd42bcc8f3da1cdfce989126f009cb7b990d0 (diff)
downloadinstadisc-681a40af319373510f30793d3b892bd9700213fb.tar.gz
instadisc-681a40af319373510f30793d3b892bd9700213fb.tar.bz2
instadisc-681a40af319373510f30793d3b892bd9700213fb.zip
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
Diffstat (limited to 'central/trunk/userpanel.php')
-rw-r--r--central/trunk/userpanel.php6
1 files changed, 6 insertions, 0 deletions
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']))
10 $template = new FITemplate('userpanel'); 10 $template = new FITemplate('userpanel');
11 $template->add('SITENAME', instaDisc_getConfig('siteName')); 11 $template->add('SITENAME', instaDisc_getConfig('siteName'));
12 $template->add('USERNAME', $_SESSION['username']); 12 $template->add('USERNAME', $_SESSION['username']);
13
14 if (instaDisc_getConfig('owner') == $_SESSION['username'])
15 {
16 $template->adds_block('ADMIN',array('ex'=>1));
17 }
18
13 $template->display(); 19 $template->display();
14} else { 20} else {
15 header('Location: index.php'); 21 header('Location: index.php');