about summary refs log tree commit diff stats
path: root/update/library/trunk/subscription.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-07 01:57:49 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-07 01:57:49 +0000
commitd82939d4ed657f55942bbf95b3f6b5cba1d1fb56 (patch)
treebbc832621bea4ac3082a3a4c589cd1c0e94fe472 /update/library/trunk/subscription.php
parentadfe0d98928de9f4a1acf119c2d76062209b199d (diff)
downloadinstadisc-d82939d4ed657f55942bbf95b3f6b5cba1d1fb56.tar.gz
instadisc-d82939d4ed657f55942bbf95b3f6b5cba1d1fb56.tar.bz2
instadisc-d82939d4ed657f55942bbf95b3f6b5cba1d1fb56.zip
Update: Added automatic Subscription File
Users of the Update Server Library will no longer have to write their own Subscription File because now the Library comes
with an automatically generated one with password-protection support. Just ensure that if you move subscription.php away
from instadisc.php that you update the include() in subscription.php! Refs #10
Diffstat (limited to 'update/library/trunk/subscription.php')
-rw-r--r--update/library/trunk/subscription.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/update/library/trunk/subscription.php b/update/library/trunk/subscription.php new file mode 100644 index 0000000..113d3cc --- /dev/null +++ b/update/library/trunk/subscription.php
@@ -0,0 +1,24 @@
1<?php
2
3/* InstaDisc Update - A Four Island Project */
4
5include('instadisc.php'); // Make sure that if you move me away from instadisc.php that you update this include!
6
7echo('Subscription: ' . $idusSubscriptionURI . "\n");
8echo('Title: ' . $idusSubscriptionTitle . "\n");
9echo('Category: ' . $idusSubscriptionCategory . "\n");
10
11if ($idusActivationKey != '')
12{
13 echo('Key: ' . $idusActivationKey . "\n");
14}
15
16if ($idusEncryptionPassword != '')
17{
18 $verID = rand(1,65536);
19
20 echo('Verification: ' . md5(':' . md5($idusEncryptionPassword) . ':' . $verID) . "\n");
21 echo('Verification-ID: ' . $verID . "\n");
22}
23
24?>