summaryrefslogtreecommitdiffstats
path: root/lib/class/xmlrpcserver.class.php
diff options
context:
space:
mode:
authormomo-i <momo-i@ampache>2009-03-17 03:48:32 +0000
committermomo-i <momo-i@ampache>2009-03-17 03:48:32 +0000
commita571f040d68d15861035c981ec440d2a79af65c9 (patch)
tree19ba2a5296e1431d06c5a3cd857252e7a4497474 /lib/class/xmlrpcserver.class.php
parentad47aa3d04d02888f90a439c207af25ccc739929 (diff)
downloadampache-a571f040d68d15861035c981ec440d2a79af65c9.tar.gz
ampache-a571f040d68d15861035c981ec440d2a79af65c9.tar.bz2
ampache-a571f040d68d15861035c981ec440d2a79af65c9.zip
Fixed: remote catalog doesn't clean
Diffstat (limited to 'lib/class/xmlrpcserver.class.php')
-rw-r--r--lib/class/xmlrpcserver.class.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/class/xmlrpcserver.class.php b/lib/class/xmlrpcserver.class.php
index ae1d1653..3cdd7907 100644
--- a/lib/class/xmlrpcserver.class.php
+++ b/lib/class/xmlrpcserver.class.php
@@ -192,6 +192,25 @@ class xmlRpcServer {
} // create_stream_session
/**
+ * check_song
+ * This checks remote catalog
+ */
+ public static function check_song($xmlrpc_object) {
+
+ $var = $xmlrpc_object->params['0']->me['int'];
+ $sql = "SELECT `song`.`id` FROM `song` WHERE `id`='" . $var ."'";
+ $db_results = Dba::read($sql);
+ if(Dba::num_rows($db_results) == '0') {
+ $return = 0;
+ } else {
+ $return = 1;
+ }
+
+ return new XML_RPC_Response(XML_RPC_encode($return));
+
+ }
+
+ /**
* handshake
* This should be run before any other XMLRPC actions, it checks the KEY encoded with a timestamp then returns a valid TOKEN to be
* used in all further communication