4 |
--- NetFraggle client link page. |
--- NetFraggle client link page. |
5 |
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
6 |
--- rabit, 01:28 24.08.2004 |
--- rabit, 01:28 24.08.2004 |
7 |
|
--- joko, 04:05 30.08.2004 |
8 |
--- $Id$ |
--- $Id$ |
9 |
------------------------------------------------------------------------------*/ |
------------------------------------------------------------------------------*/ |
10 |
|
|
11 |
//include('inc/common/common.php.inc'); |
include('inc/common/common.php.inc'); |
12 |
|
|
13 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
14 |
|
|
15 |
// ...NetFraggle interconnection code... |
// ...NetFraggle interconnection code... |
16 |
|
// by now using XML-RPC, see API-Documentation at: |
17 |
|
// http://pear.php.net/manual/en/package.webservices.xml-rpc.api.php |
18 |
|
|
19 |
|
$type = 'XMLRPC'; |
20 |
|
|
21 |
|
switch ($type) { |
22 |
|
case 'XMLRPC': |
23 |
|
$s = new XML_RPC_Server(array( |
24 |
|
"nfo.listTopics" => array("function" => "nfo_list_topics"), |
25 |
|
"nfo.listContents" => array("function" => "nfo_list_contents"), |
26 |
|
"nfo.getContent" => array("function" => "nfo_get_content"), |
27 |
|
"nfo.listUsers" => array("function" => "nfo_list_users"), |
28 |
|
)); |
29 |
|
break; |
30 |
|
case default: |
31 |
|
break; |
32 |
|
} |
33 |
|
|
34 |
|
|
35 |
|
function nfo_list_topics() { |
36 |
|
} |
37 |
|
function nfo_list_contents() { |
38 |
|
} |
39 |
|
function nfo_get_content($ck) { |
40 |
|
$content = cms_getcontent($ck); |
41 |
|
return new XML_RPC_Response(new XML_RPC_Value("content", "array" | "struct")); |
42 |
|
} |
43 |
|
function nfo_list_users() { |
44 |
|
} |
45 |
|
|
46 |
//------------------------------------------------------------------------------ |
//------------------------------------------------------------------------------ |
47 |
|
|