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.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/series/trunk/subscription.php b/series/trunk/subscription.php new file mode 100644 index 0000000..81c3870 --- /dev/null +++ b/series/trunk/subscription.php
@@ -0,0 +1,33 @@
1<?php
2
3/* InstaDisc Series - A Four Island Project */
4
5include('includes/instadisc.php');
6
7if (!isset($_GET['id']))
8{
9 header('Location: ./index.php');
10 exit;
11}
12
13if (!instaDisc_subscriptionExists($_GET['id']))
14{
15 header('Location: ./index.php');
16 exit;
17}
18
19$sub = instaDisc_getSubscription($_GET['id']);
20
21echo('Subscription: ' . $sub['url'] . "\n");
22echo('Title: ' . $sub['title'] . "\n");
23echo('Category: ' . $sub['category'] . "\n");
24
25if ($sub['password'] != '')
26{
27 echo("Password: On\n");
28}
29
30echo('Series-Control-URL: http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF']) . "\n");
31echo('Subscription-ID: ' . $_GET['id'] . "\n");
32
33?>