about summary refs log tree commit diff stats
path: root/update/library
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
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')
-rw-r--r--update/library/trunk/instadisc.php2
-rw-r--r--update/library/trunk/subscription.php24
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
13function instaDisc_sendItem($title, $author, $url, $semantics) 15function 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
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?>