From a7e5c508d476eb46d13d0c2fa40266c72f7c0ed4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 7 Aug 2008 18:30:50 +0000 Subject: Update: Added multiple subscription support Closes #22 --- update/library/trunk/subscription.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'update/library/trunk/subscription.php') diff --git a/update/library/trunk/subscription.php b/update/library/trunk/subscription.php index 7e05f5b..863c30c 100644 --- a/update/library/trunk/subscription.php +++ b/update/library/trunk/subscription.php @@ -4,13 +4,15 @@ include('instadisc.php'); // Make sure that if you move me away from instadisc.php that you update this include! -echo('Subscription: ' . $idusSubscriptionURI . "\n"); -echo('Title: ' . $idusSubscriptionTitle . "\n"); -echo('Category: ' . $idusSubscriptionCategory . "\n"); +$id = (isset($_GET['id']) ? $_GET['id'] : 0); -if ($idusActivationKey != '') +echo('Subscription: ' . $idusSubscriptionURI[$id] . "\n"); +echo('Title: ' . $idusSubscriptionTitle[$id] . "\n"); +echo('Category: ' . $idusSubscriptionCategory[$id] . "\n"); + +if ($idusActivationKey[$id] != '') { - echo('Key: ' . $idusActivationKey . "\n"); + echo('Key: ' . $idusActivationKey[$id] . "\n"); } ?> -- cgit 1.4.1