diff options
Diffstat (limited to 'series/trunk/subscription.php')
-rw-r--r-- | series/trunk/subscription.php | 15 |
1 files changed, 9 insertions, 6 deletions
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'])) | |||
18 | 18 | ||
19 | $sub = instaDisc_getSubscription($_GET['id']); | 19 | $sub = instaDisc_getSubscription($_GET['id']); |
20 | 20 | ||
21 | echo('Subscription: ' . $sub['url'] . "\n"); | 21 | $template = new FITemplate('subscription'); |
22 | echo('Title: ' . $sub['title'] . "\n"); | 22 | $template->add('SUBSCRIPTION', $sub['url']); |
23 | echo('Category: ' . $sub['category'] . "\n"); | 23 | $template->add('TITLE', $sub['title']); |
24 | $template->add('CATEGORY', $sub['category']); | ||
24 | 25 | ||
25 | if ($sub['password'] != '') | 26 | if ($sub['password'] != '') |
26 | { | 27 | { |
27 | echo("Password: On\n"); | 28 | $template->add('PASSWORD', "Password: On\n"); |
28 | } | 29 | } |
29 | 30 | ||
30 | echo('Series-Control-URL: http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF']) . "\n"); | 31 | $template->add('SERIESURL', 'http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF'])); |
31 | echo('Subscription-ID: ' . $_GET['id'] . "\n"); | 32 | $template->add('SUBID', $_GET['id']); |
33 | |||
34 | $template->display(); | ||
32 | 35 | ||
33 | ?> | 36 | ?> |