diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 15:54:44 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-14 15:54:44 +0000 |
commit | 338308e2bd8ca78337c11a2806f272eae748fb52 (patch) | |
tree | df6302e327fa2cb16e8310645d790f2782b332fa /series/trunk | |
parent | abb2d3c67ddc132c4cc7ea435e13731527c32634 (diff) | |
download | instadisc-338308e2bd8ca78337c11a2806f272eae748fb52.tar.gz instadisc-338308e2bd8ca78337c11a2806f272eae748fb52.tar.bz2 instadisc-338308e2bd8ca78337c11a2806f272eae748fb52.zip |
Series: [15]
Refs #53
Diffstat (limited to 'series/trunk')
-rw-r--r-- | series/trunk/admin/main.php | 2 | ||||
-rw-r--r-- | series/trunk/includes/instadisc.php | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/series/trunk/admin/main.php b/series/trunk/admin/main.php index f2d8e9e..2bb80f3 100644 --- a/series/trunk/admin/main.php +++ b/series/trunk/admin/main.php | |||
@@ -21,7 +21,7 @@ if (!isset($_SESSION['username'])) | |||
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 | 23 | ||
24 | if (instaDisc_isAdmin($_SESSION['username']) | 24 | if (instaDisc_isAdmin($_SESSION['username'])) |
25 | { | 25 | { |
26 | $template->adds_block('ADMIN', array('exi'=>1)); | 26 | $template->adds_block('ADMIN', array('exi'=>1)); |
27 | } | 27 | } |
diff --git a/series/trunk/includes/instadisc.php b/series/trunk/includes/instadisc.php index 54f427a..d7010a6 100644 --- a/series/trunk/includes/instadisc.php +++ b/series/trunk/includes/instadisc.php | |||
@@ -110,4 +110,10 @@ function instaDisc_listSubscriptions($username) | |||
110 | return $getsubs3; | 110 | return $getsubs3; |
111 | } | 111 | } |
112 | 112 | ||
113 | function deleteSubscription($id) | ||
114 | { | ||
115 | $delsub = "DELETE FROM subscriptions WHERE id = " . $id; | ||
116 | $delsub2 = mysql_query($delsub); | ||
117 | } | ||
118 | |||
113 | ?> | 119 | ?> |