about summary refs log tree commit diff stats
path: root/series/trunk/admin
diff options
context:
space:
mode:
Diffstat (limited to 'series/trunk/admin')
-rw-r--r--series/trunk/admin/addsub.php2
-rw-r--r--series/trunk/admin/chpwd.php2
-rw-r--r--series/trunk/admin/main.php6
3 files changed, 8 insertions, 2 deletions
diff --git a/series/trunk/admin/addsub.php b/series/trunk/admin/addsub.php index f462d3f..0b6ff3f 100644 --- a/series/trunk/admin/addsub.php +++ b/series/trunk/admin/addsub.php
@@ -50,7 +50,7 @@ if (!isset($_GET['submit']))
50 { 50 {
51 showForm($_POST['id'], $_POST['title'], $_POST['url'], $_POST['category'], $_POST['password'], $errors); 51 showForm($_POST['id'], $_POST['title'], $_POST['url'], $_POST['category'], $_POST['password'], $errors);
52 } else { 52 } else {
53 instaDisc_addSubscription($_POST['id'], $_POST['title'], $_POST['url'], $_POST['category'], $_POST['password']); 53 instaDisc_initSubscription($_SESSION['username'], $_POST['id'], $_POST['url'], $_POST['title'], $_POST['category'], $_POST['personal'], $_POST['password']);
54 54
55 $template = new FITemplate('addedsub'); 55 $template = new FITemplate('addedsub');
56 $template->add('SITENAME', instaDisc_getConfig('siteName')); 56 $template->add('SITENAME', instaDisc_getConfig('siteName'));
diff --git a/series/trunk/admin/chpwd.php b/series/trunk/admin/chpwd.php index 2f5368d..abd6d97 100644 --- a/series/trunk/admin/chpwd.php +++ b/series/trunk/admin/chpwd.php
@@ -56,7 +56,7 @@ if (isset($_SESSION['username']))
56 { 56 {
57 showForm($_POST['old'], $_POST['new'], $_POST['confirm'], $errors); 57 showForm($_POST['old'], $_POST['new'], $_POST['confirm'], $errors);
58 } else { 58 } else {
59 instaDisc_changePassword( $_POST['new']); 59 instaDisc_changePassword($_SESSION['username'], $_POST['new']);
60 60
61 $template = new FITemplate('changedpassword'); 61 $template = new FITemplate('changedpassword');
62 $template->add('SITENAME', instaDisc_getConfig('siteName')); 62 $template->add('SITENAME', instaDisc_getConfig('siteName'));
diff --git a/series/trunk/admin/main.php b/series/trunk/admin/main.php index eb0e35b..f2d8e9e 100644 --- a/series/trunk/admin/main.php +++ b/series/trunk/admin/main.php
@@ -20,6 +20,12 @@ if (!isset($_SESSION['username']))
20 20
21$template = new FITemplate('main'); 21$template = new FITemplate('main');
22$template->add('SITENAME',instaDisc_getConfig('siteName')); 22$template->add('SITENAME',instaDisc_getConfig('siteName'));
23
24if (instaDisc_isAdmin($_SESSION['username'])
25{
26 $template->adds_block('ADMIN', array('exi'=>1));
27}
28
23$template->display(); 29$template->display();
24 30
25?> 31?>