diff options
Diffstat (limited to 'series/trunk/subscription.php')
-rw-r--r-- | series/trunk/subscription.php | 33 |
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 | |||
5 | include('includes/instadisc.php'); | ||
6 | |||
7 | if (!isset($_GET['id'])) | ||
8 | { | ||
9 | header('Location: ./index.php'); | ||
10 | exit; | ||
11 | } | ||
12 | |||
13 | if (!instaDisc_subscriptionExists($_GET['id'])) | ||
14 | { | ||
15 | header('Location: ./index.php'); | ||
16 | exit; | ||
17 | } | ||
18 | |||
19 | $sub = instaDisc_getSubscription($_GET['id']); | ||
20 | |||
21 | echo('Subscription: ' . $sub['url'] . "\n"); | ||
22 | echo('Title: ' . $sub['title'] . "\n"); | ||
23 | echo('Category: ' . $sub['category'] . "\n"); | ||
24 | |||
25 | if ($sub['password'] != '') | ||
26 | { | ||
27 | echo("Password: On\n"); | ||
28 | } | ||
29 | |||
30 | echo('Series-Control-URL: http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF']) . "\n"); | ||
31 | echo('Subscription-ID: ' . $_GET['id'] . "\n"); | ||
32 | |||
33 | ?> | ||