[コンピュータ][XOOPS] userinfo.phpの変更

認証してなくてもuserinfo.phpにアクセスできてしまうので*1直す。

$xoopsOption['pagetype'] = 'user';
include 'mainfile.php';
include_once XOOPS_ROOT_PATH.'/class/module.textsanitizer.php';
include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';

これを

$xoopsOption['pagetype'] = 'user';
include 'mainfile.php';
include_once XOOPS_ROOT_PATH.'/class/module.textsanitizer.php';

if ( !$xoopsUser ) {
redirect_header(XOOPS_URL."/",3,_NOPERM);
exit();
}

include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';

こうする。

*1:FAQらしい