onokazu
onoka****@users*****
2005年 6月 11日 (土) 11:32:39 JST
Index: xoops2jp/html/class/xml/rpc/xmlrpcapi.php diff -u xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.2 xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.3 --- xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/xml/rpc/xmlrpcapi.php Sat Jun 11 11:32:39 2005 @@ -1,5 +1,5 @@ <?php -// $Id: xmlrpcapi.php,v 1.2 2005/03/18 12:51:55 onokazu Exp $ +// $Id: xmlrpcapi.php,v 1.3 2005/06/11 02:32:39 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -33,7 +33,7 @@ class XoopsXmlRpcApi { - // reference to method parameters + // reference to method parameters var $params; // reference to xmlrpc document class object @@ -47,7 +47,7 @@ // user class object var $user; - + var $isadmin = false; @@ -59,7 +59,7 @@ $this->module =& $module; } - function _setUser(&$user, $isadmin = false) + function _setUser(&$user, $isadmin = false) { if (is_object($user)) { $this->user =& $user; @@ -72,13 +72,13 @@ if (isset($this->user)) { return true; } - $member_handler =& xoops_gethandler('member'); + $member_handler =& xoops_gethandler('member'); $this->user =& $member_handler->loginUser($username, $password); if (!is_object($this->user)) { unset($this->user); return false; } - $moduleperm_handler =& xoops_gethandler('groupperm'); + $moduleperm_handler =& xoops_gethandler('groupperm'); if (!$moduleperm_handler->checkRight('module_read', $this->module->getVar('mid'), $this->user->getGroups())) { unset($this->user); return false; @@ -153,10 +153,10 @@ } // kind of dirty method to load XOOPS API and create a new object thereof - // returns itself if the calling object is XOOPS API + // returns itself if the calling object is XOOPS API function &_getXoopsApi(&$params) { - if (!(strtolower(get_class($this)) != 'xoopsapi')) { + if (strtolower(get_class($this)) != 'xoopsapi') { require_once(XOOPS_ROOT_PATH.'/class/xml/rpc/xoopsapi.php'); return new XoopsApi($params, $this->response, $this->module); } else {