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 | |
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
-rw-r--r-- | update/library/trunk/instadisc.php | 2 | ||||
-rw-r--r-- | update/library/trunk/subscription.php | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index f256fb2..e5168b1 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php | |||
@@ -8,6 +8,8 @@ $idusUsername = ''; // Set this to the username you've registered | |||
8 | $idusPassword = ''; // Set this to the password you've registered | 8 | $idusPassword = ''; // Set this to the password you've registered |
9 | $idusCentralServer = ''; // Set this to the Central Server you've signed up with | 9 | $idusCentralServer = ''; // Set this to the Central Server you've signed up with |
10 | $idusSubscriptionURI = ''; // Set this to your unique URI | 10 | $idusSubscriptionURI = ''; // Set this to your unique URI |
11 | $idusSubscriptionTitle = ''; // Set this to your Subscription's title | ||
12 | $idusSubscriptionCategory = ''; // Set this to the category your subscription uses | ||
11 | $idusEncryptionPassword = ''; // If creating a password-protected subscription, enter your password here | 13 | $idusEncryptionPassword = ''; // If creating a password-protected subscription, enter your password here |
12 | 14 | ||
13 | function instaDisc_sendItem($title, $author, $url, $semantics) | 15 | function instaDisc_sendItem($title, $author, $url, $semantics) |
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 | ?> | ||