From 9c7e9acc5c17acf42193efacb8e8183e28c2e402 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Aug 2008 01:40:34 +0000 Subject: Central: Added encryption key support See [127]. Refs #10 --- central/trunk/xmlrpc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'central/trunk/xmlrpc.php') 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) return new xmlrpcresp(new xmlrpcval(1, "int")); } -function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics) +function sendFromUpdate($username, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $encryptionID) { if (instaDisc_checkVerification($username, $verification, $verificationID, 'users', 'username', 'password')) { @@ -106,6 +106,7 @@ function sendFromUpdate($username, $verification, $verificationID, $subscription new xmlrpcval($author, 'string'), new xmlrpcval($url, 'string'), new xmlrpcval($semantics, 'string'), + new xmlrpcval($encryptionID, 'int'), new xmlrpcval(instaDisc_getConfig('softwareVersion'), 'int'), new xmlrpcval(instaDisc_getConfig('databaseVersion'), 'int'))); $client->send($msg); @@ -119,7 +120,7 @@ function sendFromUpdate($username, $verification, $verificationID, $subscription return new xmlrpcresp(new xmlrpcval(1, "int")); } -function sendFromCentral($cserver, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $softwareVersion, $databaseVersion) +function sendFromCentral($cserver, $verification, $verificationID, $subscription, $title, $author, $url, $semantics, $encryptionID, $softwareVersion, $databaseVersion) { if (instaDisc_checkVerification($cserver, $verification, $verificationID, 'centralServers', 'url', 'code')) { @@ -168,7 +169,7 @@ function sendFromCentral($cserver, $verification, $verificationID, $subscription $i=0; while ($getsed3[$i] = mysql_fetch_array($getsed2)) { - instaDisc_addItem($getsed3[$i]['username'], $subscription, $title, $author, $url, $semantics); + instaDisc_addItem($getsed3[$i]['username'], $subscription, $title, $author, $url, $semantics, $encryptionID); $i++; } -- cgit 1.4.1