| 65 |
} |
} |
| 66 |
|
|
| 67 |
function nfo_list_topics($params) { |
function nfo_list_topics($params) { |
| 68 |
nfo_debug_clean(); |
#nfo_debug_clean(); |
| 69 |
#nfo_debug_write($params); |
#nfo_debug_write($params); |
| 70 |
#nfo_debug_write("list_topics"); |
#nfo_debug_write("list_topics"); |
| 71 |
$meta = $params->getParam(0); |
$meta = $params->getParam(0); |
| 74 |
$type = $type->scalarval(); |
$type = $type->scalarval(); |
| 75 |
#nfo_debug_write("$type"); |
#nfo_debug_write("$type"); |
| 76 |
$res = cms_getindex($type); |
$res = cms_getindex($type); |
| 77 |
nfo_debug_write($res); |
#nfo_debug_write($res); |
| 78 |
$newentries = array(); |
$newentries = array(); |
| 79 |
$tmp = new XML_RPC_Value(); |
$tmp = new XML_RPC_Value(); |
| 80 |
foreach ($res as $entry) { |
foreach ($res as $entry) { |
| 106 |
$pass = $pass->scalarval(); |
$pass = $pass->scalarval(); |
| 107 |
$common_sessiondata['userdata']['name'] = $user; |
$common_sessiondata['userdata']['name'] = $user; |
| 108 |
$common_sessiondata['userdata']['password'] = $pass; |
$common_sessiondata['userdata']['password'] = $pass; |
| 109 |
nfo_debug_write($common_sessiondata); |
#nfo_debug_write($common_sessiondata); |
| 110 |
$retval = common_checkauthorisation(); |
$retval = common_checkauthorisation(); |
| 111 |
return new XML_RPC_Response(new XML_RPC_Value($retval, 'boolean')); |
return new XML_RPC_Response(new XML_RPC_Value($retval, 'boolean')); |
| 112 |
} |
} |