--- nfo/site/htdocs/netfraggle.php 2004/08/30 02:24:58 1.3 +++ nfo/site/htdocs/netfraggle.php 2004/08/30 02:33:26 1.4 @@ -4,14 +4,44 @@ --- NetFraggle client link page. -------------------------------------------------------------------------------- --- rabit, 01:28 24.08.2004 ---- $Id: netfraggle.php,v 1.3 2004/08/30 02:24:58 rabit Exp $ +--- joko, 04:05 30.08.2004 +--- $Id: netfraggle.php,v 1.4 2004/08/30 02:33:26 joko Exp $ ------------------------------------------------------------------------------*/ -//include('inc/common/common.php.inc'); +include('inc/common/common.php.inc'); //------------------------------------------------------------------------------ // ...NetFraggle interconnection code... +// by now using XML-RPC, see API-Documentation at: +// http://pear.php.net/manual/en/package.webservices.xml-rpc.api.php + +$type = 'XMLRPC'; + +switch ($type) { + case 'XMLRPC': + $s = new XML_RPC_Server(array( + "nfo.listTopics" => array("function" => "nfo_list_topics"), + "nfo.listContents" => array("function" => "nfo_list_contents"), + "nfo.getContent" => array("function" => "nfo_get_content"), + "nfo.listUsers" => array("function" => "nfo_list_users"), + )); + break; + case default: + break; +} + + +function nfo_list_topics() { +} +function nfo_list_contents() { +} +function nfo_get_content($ck) { + $content = cms_getcontent($ck); + return new XML_RPC_Response(new XML_RPC_Value("content", "array" | "struct")); +} +function nfo_list_users() { +} //------------------------------------------------------------------------------