diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-13 01:40:34 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-13 01:40:34 +0000 |
commit | 9c7e9acc5c17acf42193efacb8e8183e28c2e402 (patch) | |
tree | 198fe47d86f8fc5f4131b2f8c428f4333339257c /central/trunk/xmlrpc.php | |
parent | c98908daa9cb992bf485a13ba837aea331419222 (diff) | |
download | instadisc-9c7e9acc5c17acf42193efacb8e8183e28c2e402.tar.gz instadisc-9c7e9acc5c17acf42193efacb8e8183e28c2e402.tar.bz2 instadisc-9c7e9acc5c17acf42193efacb8e8183e28c2e402.zip |
Central: Added encryption key support
See [127]. Refs #10
Diffstat (limited to 'central/trunk/xmlrpc.php')
-rw-r--r-- | central/trunk/xmlrpc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/central/trunk/xmlrpc.php b/central/trunk/xmlrpc.php index 7dd5be7..37c3216 100644 --- a/central/trunk/xmlrpc.php +++ b/central/trunk/xmlrpc.php | |||
@@ -76,7 +76,7 @@ function requestRetained($username, $verification, $verificationID) | |||
76 | return new xmlrpcresp(new xmlrpcval(1, "int")); | 76 | return new xmlrpcresp(new xmlrpcval(1, "int")); |
77 | } | 77 | } |
78 | 78 | ||
79 | function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) | 79 | function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $encryptionID) |
80 | { | 80 | { |
81 | if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) | 81 | if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) |
82 | { | 82 | { |
@@ -106,6 +106,7 @@ function sendFromUpdate($username, $verification, $verificationID, $subscription | |||
106 | new xmlrpcval($author, 'string'), | 106 | new xmlrpcval($author, 'string'), |
107 | new xmlrpcval($url, 'string'), | 107 | new xmlrpcval($url, 'string'), |
108 | new xmlrpcval($semantics, 'string'), | 108 | new xmlrpcval($semantics, 'string'), |
109 | new xmlrpcval($encryptionID, 'int'), | ||
109 | new xmlrpcval(instaDisc_getConfig('softwareVersion'), 'int'), | 110 | new xmlrpcval(instaDisc_getConfig('softwareVersion'), 'int'), |
110 | new xmlrpcval(instaDisc_getConfig('databaseVersion'), 'int'))); | 111 | new xmlrpcval(instaDisc_getConfig('databaseVersion'), 'int'))); |
111 | $client->send($msg); | 112 | $client->send($msg); |
@@ -119,7 +120,7 @@ function sendFromUpdate($username, $verification, $verificationID, $subscription | |||
119 | return new xmlrpcresp(new xmlrpcval(1, "int")); | 120 | return new xmlrpcresp(new xmlrpcval(1, "int")); |
120 | } | 121 | } |
121 | 122 | ||
122 | function sendFromCentral($cserver, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $softwareVersion, $databaseVersion) | 123 | function sendFromCentral($cserver, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $encryptionID, $softwareVersion, $databaseVersion) |
123 | { | 124 | { |
124 | if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) | 125 | if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) |
125 | { | 126 | { |
@@ -168,7 +169,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription | |||
168 | $i=0; | 169 | $i=0; |
169 | while ($getsed3[$i] = mysql_fetch_array($getsed2)) | 170 | while ($getsed3[$i] = mysql_fetch_array($getsed2)) |
170 | { | 171 | { |
171 | instaDisc_addItem($getsed3[$i]['username'], $subscription, $title, $author, $url, $semantics); | 172 | instaDisc_addItem($getsed3[$i]['username'], $subscription, $title, $author, $url, $semantics, $encryptionID); |
172 | $i++; | 173 | $i++; |
173 | } | 174 | } |
174 | 175 | ||