diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 01:57:49 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 01:57:49 +0000 |
commit | d82939d4ed657f55942bbf95b3f6b5cba1d1fb56 (patch) | |
tree | bbc832621bea4ac3082a3a4c589cd1c0e94fe472 /update/library/trunk/subscription.php | |
parent | adfe0d98928de9f4a1acf119c2d76062209b199d (diff) | |
download | instadisc-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.php | 24 |
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 | |||
5 | include('instadisc.php'); // Make sure that if you move me away from instadisc.php that you update this include! | ||
6 | |||
7 | echo('Subscription: ' . $idusSubscriptionURI . "\n"); | ||
8 | echo('Title: ' . $idusSubscriptionTitle . "\n"); | ||
9 | echo('Category: ' . $idusSubscriptionCategory . "\n"); | ||
10 | |||
11 | if ($idusActivationKey != '') | ||
12 | { | ||
13 | echo('Key: ' . $idusActivationKey . "\n"); | ||
14 | } | ||
15 | |||
16 | if ($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 | ?> | ||