From d2a971ad455df850b12335951d09ce14338bce42 Mon Sep 17 00:00:00 2001 From: tomas Date: Wed, 19 Jan 2005 05:40:08 +0000 Subject: [PATCH] change in class hierarchy --- .../archiveServer/var/xmlrpc/XR_Archive.php | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 livesupport/modules/archiveServer/var/xmlrpc/XR_Archive.php diff --git a/livesupport/modules/archiveServer/var/xmlrpc/XR_Archive.php b/livesupport/modules/archiveServer/var/xmlrpc/XR_Archive.php new file mode 100644 index 000000000..610cdf6d3 --- /dev/null +++ b/livesupport/modules/archiveServer/var/xmlrpc/XR_Archive.php @@ -0,0 +1,72 @@ +_xr_getPars($input); + if(!$ok) return $r; + return new XML_RPC_Response( + XML_RPC_encode(strtoupper($r['par']), "string") + ); + } + + /** + * Check state of file upload + * + * @param input XMLRPC struct + */ + function xr_uploadCheck($input) + { + list($ok, $r) = $this->_xr_getPars($input); + if(!$ok) return $r; + $res = $this->uploadCheck($r['token']); + if(PEAR::isError($res)) + return new XML_RPC_Response(0, 803, + "xr_uploadCheck: ".$res->getMessage(). + " ".$res->getUserInfo() + ); + return new XML_RPC_Response(XML_RPC_encode($res)); + } + +} + +?>