Minahito
minah****@users*****
2006年 8月 5日 (土) 15:22:36 JST
Index: xoops2jp/html/modules/user/actions/DefaultAction.class.php diff -u xoops2jp/html/modules/user/actions/DefaultAction.class.php:1.1.2.3 xoops2jp/html/modules/user/actions/DefaultAction.class.php:1.1.2.4 --- xoops2jp/html/modules/user/actions/DefaultAction.class.php:1.1.2.3 Wed Jul 19 19:20:33 2006 +++ xoops2jp/html/modules/user/actions/DefaultAction.class.php Sat Aug 5 15:22:36 2006 @@ -1,7 +1,7 @@ <?php /** * @package legacy - * @version $Id: DefaultAction.class.php,v 1.1.2.3 2006/07/19 10:20:33 minahito Exp $ + * @version $Id: DefaultAction.class.php,v 1.1.2.4 2006/08/05 06:22:36 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -12,10 +12,18 @@ */ class User_DefaultAction extends User_Action { + var $_mAllowRegister = false; + function isSecure() { return false; } + + function prepare(&$controller, &$xoopsUser, $moduleConfig) + { + parent::prepare($controller, $xoopsUser, $moduleConfig); + $this->_mAllowRegister = $moduleConfig['allow_register']; + } function getDefaultView(&$controller, &$xoopsUser) { @@ -25,6 +33,7 @@ function executeViewInput(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("user_default.html"); + $render->setAttribute('allowRegister', $this->_mAllowRegister); } function executeViewError(&$controller, &$xoopsUser, &$render)