31 if (!defined(
'XOOPS_ROOT_PATH')) {
32 die(
"XOOPS root path not defined");
34 require_once XOOPS_ROOT_PATH.
'/class/xml/rpc/xmlrpcapi.php';
45 if (!$this->
_checkUser($this->params[1], $this->params[2])) {
49 $xoopsapi->_setUser($this->user, $this->isadmin);
50 $ret =& $xoopsapi->getCategories(
false);
53 foreach (
$ret as $id => $name) {
60 $this->response->add($arr);