about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--series/trunk/admin/main.php2
-rw-r--r--series/trunk/includes/instadisc.php6
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
24if (instaDisc_isAdmin($_SESSION['username']) 24if (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
113function deleteSubscription($id)
114{
115 $delsub = "DELETE FROM subscriptions WHERE id = " . $id;
116 $delsub2 = mysql_query($delsub);
117}
118
113?> 119?>