diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 10:57:22 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-07 10:57:22 +0000 |
commit | a7cc25efb0b2f4347c483a7b795eae9116fcba41 (patch) | |
tree | c285c59a5aded7373f7e628472bc0a0c2f601258 | |
parent | d82939d4ed657f55942bbf95b3f6b5cba1d1fb56 (diff) | |
download | instadisc-a7cc25efb0b2f4347c483a7b795eae9116fcba41.tar.gz instadisc-a7cc25efb0b2f4347c483a7b795eae9116fcba41.tar.bz2 instadisc-a7cc25efb0b2f4347c483a7b795eae9116fcba41.zip |
Update: Undid the password-protection support
From now on, password-protection is Milestone 1.1. When that time comes, you can look back on [105] and [106] for password-protection. Refs #10
-rw-r--r-- | update/library/trunk/instadisc.php | 24 | ||||
-rw-r--r-- | update/library/trunk/subscription.php | 8 |
2 files changed, 1 insertions, 31 deletions
diff --git a/update/library/trunk/instadisc.php b/update/library/trunk/instadisc.php index e5168b1..8405110 100644 --- a/update/library/trunk/instadisc.php +++ b/update/library/trunk/instadisc.php | |||
@@ -10,7 +10,7 @@ $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 | 11 | $idusSubscriptionTitle = ''; // Set this to your Subscription's title |
12 | $idusSubscriptionCategory = ''; // Set this to the category your subscription uses | 12 | $idusSubscriptionCategory = ''; // Set this to the category your subscription uses |
13 | $idusEncryptionPassword = ''; // If creating a password-protected subscription, enter your password here | 13 | $idusActivationKey = ''; // See http://fourisland.com/projects/instadisc/wiki/Update/Library |
14 | 14 | ||
15 | function instaDisc_sendItem($title, $author, $url, $semantics) | 15 | function instaDisc_sendItem($title, $author, $url, $semantics) |
16 | { | 16 | { |
@@ -29,26 +29,4 @@ function instaDisc_sendItem($title, $author, $url, $semantics) | |||
29 | $client->send($msg); | 29 | $client->send($msg); |
30 | } | 30 | } |
31 | 31 | ||
32 | function instaDisc_sendEncrypted($title, $author, $url, $semantics) | ||
33 | { | ||
34 | $cipher = "rijndael-128"; | ||
35 | $mode = "cbc"; | ||
36 | $iv = "fedcba9876543210"; | ||
37 | |||
38 | $td = mcrypt_module_open($cipher, "", $mode, $iv); | ||
39 | mcrypt_generic_init($td, $idusEncryptionPassword, $iv); | ||
40 | $title = bin2hex(mcrypt_generic($td, $title)); | ||
41 | $author = bin2hex(mcrypt_generic($td, $author)); | ||
42 | $url = bin2hex(mcrypt_generic($td, $url)); | ||
43 | foreach ($semantics as $name => $value) | ||
44 | { | ||
45 | $semantics[$name] = bin2hex(mcrypt_generic($td, $value)); | ||
46 | } | ||
47 | |||
48 | mcrypt_generic_deinit($td); | ||
49 | mcrypt_module_close($td); | ||
50 | |||
51 | instaDisc_sendItem($title, $author, $url, $semantics); | ||
52 | } | ||
53 | |||
54 | ?> | 32 | ?> |
diff --git a/update/library/trunk/subscription.php b/update/library/trunk/subscription.php index 113d3cc..7e05f5b 100644 --- a/update/library/trunk/subscription.php +++ b/update/library/trunk/subscription.php | |||
@@ -13,12 +13,4 @@ if ($idusActivationKey != '') | |||
13 | echo('Key: ' . $idusActivationKey . "\n"); | 13 | echo('Key: ' . $idusActivationKey . "\n"); |
14 | } | 14 | } |
15 | 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 | ?> | 16 | ?> |