Minahito
minah****@users*****
2006年 9月 1日 (金) 12:12:58 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.73 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.74 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.73 Thu Aug 24 18:49:18 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Sep 1 12:12:57 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Controller.class.php,v 1.1.2.73 2006/08/24 09:49:18 minahito Exp $ + * @version $Id: Legacy_Controller.class.php,v 1.1.2.74 2006/09/01 03:12:57 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -362,6 +362,18 @@ { $this->mSiteLogin->call(new XCube_Ref($this->mXoopsUser)); + $this->mUser =& new XCube_UserAccount(); + if (is_object($this->mXoopsUser)) { + $this->mUser->_mId = $this->mXoopsUser->get('uid'); //< FIXME + $this->mUser->setGuest(false); + $this->mUser->setService(false); + } + else { + $this->mUser->_mId = 0; //< FIXME + $this->mUser->setGuest(true); + $this->mUser->setService(false); + } + // Set instance to global variable for compatiblity with XOOPS 2.0.x $GLOBALS['xoopsUser'] =& $this->mXoopsUser; $GLOBALS['xoopsUserIsAdmin'] = is_object($this->mXoopsUser) ? $this->mXoopsUser->isAdmin(1) : false; //@todo Remove '1'