diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 14:15:06 +0000 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 14:15:06 +0000 |
| commit | cefd374290b6d0ebfa22e0af8d289e51481f6f90 (patch) | |
| tree | f9302202770988d9e7f7ff0f576bd430033bc72a /series/trunk/admin | |
| parent | b20c87df8f9eed0c8e883efca9bf6e127f94b5ce (diff) | |
| download | instadisc-cefd374290b6d0ebfa22e0af8d289e51481f6f90.tar.gz instadisc-cefd374290b6d0ebfa22e0af8d289e51481f6f90.tar.bz2 instadisc-cefd374290b6d0ebfa22e0af8d289e51481f6f90.zip | |
Series: Reverted Update integration
Refs #55
Diffstat (limited to 'series/trunk/admin')
| -rw-r--r-- | series/trunk/admin/addsub.php | 2 | ||||
| -rw-r--r-- | series/trunk/admin/chpwd.php | 2 | ||||
| -rw-r--r-- | series/trunk/admin/main.php | 6 |
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 | |||
| 24 | if (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 | ?> |
