about summary refs log tree commit diff stats
path: root/series/trunk/subscription.php
diff options
context:
space:
mode:
Diffstat (limited to 'series/trunk/subscription.php')
-rw-r--r--series/trunk/subscription.php15
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
21echo('Subscription: ' . $sub['url'] . "\n"); 21$template = new FITemplate('subscription');
22echo('Title: ' . $sub['title'] . "\n"); 22$template->add('SUBSCRIPTION', $sub['url']);
23echo('Category: ' . $sub['category'] . "\n"); 23$template->add('TITLE', $sub['title']);
24$template->add('CATEGORY', $sub['category']);
24 25
25if ($sub['password'] != '') 26if ($sub['password'] != '')
26{ 27{
27 echo("Password: On\n"); 28 $template->add('PASSWORD', "Password: On\n");
28} 29}
29 30
30echo('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']));
31echo('Subscription-ID: ' . $_GET['id'] . "\n"); 32$template->add('SUBID', $_GET['id']);
33
34$template->display();
32 35
33?> 36?>