about summary refs log tree commit diff stats
path: root/series/core/trunk/subscription.php
blob: 08f16d645941fa7837127048ba45e72f91a1acc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

/* InstaDisc Series - A Four Island Project */

include('includes/instadisc.php');

if (!isset($_GET['id']))
{
	header('Location: ./index.php');
	exit;
}

if (!instaDisc_subscriptionExists($_GET['id']))
{
	header('Location: ./index.php');
	exit;
}

$sub = instaDisc_getSubscription($_GET['id']);

echo('Subscription: ' . $sub['url'] . "\n");
echo('Title: ' . $sub['title'] . "\n");
echo('Category: ' . $sub['category'] . "\n");

if ($sub['password'] != '')
{
	echo("Password: On\n");
}

echo('Series-Control-URL: http://' . $_SERVER['SERVER_NAME'] . str_replace(basename($_SERVER['PHP_SELF']), 'xmlrpc.php', $_SERVER['PHP_SELF']) . "\n");

?>