From abb2d3c67ddc132c4cc7ea435e13731527c32634 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 14 Sep 2008 15:49:20 +0000 Subject: Series: Worked on ACP Refs #53 --- series/trunk/subscription.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'series/trunk/subscription.php') diff --git a/series/trunk/subscription.php b/series/trunk/subscription.php index 81c3870..4db5736 100644 --- a/series/trunk/subscription.php +++ b/series/trunk/subscription.php @@ -18,16 +18,19 @@ if (!instaDisc_subscriptionExists($_GET['id'])) $sub = instaDisc_getSubscription($_GET['id']); -echo('Subscription: ' . $sub['url'] . "\n"); -echo('Title: ' . $sub['title'] . "\n"); -echo('Category: ' . $sub['category'] . "\n"); +$template = new FITemplate('subscription'); +$template->add('SUBSCRIPTION', $sub['url']); +$template->add('TITLE', $sub['title']); +$template->add('CATEGORY', $sub['category']); if ($sub['password'] != '') { - echo("Password: On\n"); + $template->add('PASSWORD', "Password: On\n"); } -echo('Series-Control-URL: http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF']) . "\n"); -echo('Subscription-ID: ' . $_GET['id'] . "\n"); +$template->add('SERIESURL', 'http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF'])); +$template->add('SUBID', $_GET['id']); + +$template->display(); ?> -- cgit 1.4.1