From 8eab507038dc3d844229051cf3f7dbcaee4897d4 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 30 Sep 2006 20:32:11 +0000 Subject: slight format fix on now playing and xmlrpc key fixes --- lib/general.lib.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lib/general.lib.php') diff --git a/lib/general.lib.php b/lib/general.lib.php index 13951642..ab28eebb 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -299,11 +299,16 @@ function session_exists($sid,$xml_rpc=0) { $path = str_replace("//","/",$path); + /* Create the XMLRPC client */ $client = new xmlrpc_client($path,$server,$port); - $query = new xmlrpcmsg('remote_session_verify',array(new xmlrpcval($sid,"string")) ); - - if (conf('debug')) { log_event($_SESSION['userdata']['username'],' xmlrpc-client ',"Checking for Valid Remote Session:$sid"); } + /* Encode the SID of the incomming client */ + $encoded_sid = new xmlrpcval($sid,"string"); + + $query = new xmlrpcmsg('remote_session_verify',array($encoded_sid) ); + + /* Log this event */ + debug_event('xmlrpc-client',"Checking for Valid Remote Session:$sid",'3'); $response = $client->send($query,30); -- cgit