From 338308e2bd8ca78337c11a2806f272eae748fb52 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 14 Sep 2008 15:54:44 +0000 Subject: Series: [15] Refs #53 --- series/trunk/admin/main.php | 2 +- series/trunk/includes/instadisc.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'series/trunk') 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'])) $template = new FITemplate('main'); $template->add('SITENAME',instaDisc_getConfig('siteName')); -if (instaDisc_isAdmin($_SESSION['username']) +if (instaDisc_isAdmin($_SESSION['username'])) { $template->adds_block('ADMIN', array('exi'=>1)); } 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) return $getsubs3; } +function deleteSubscription($id) +{ + $delsub = "DELETE FROM subscriptions WHERE id = " . $id; + $delsub2 = mysql_query($delsub); +} + ?> -- cgit 1.4.1