コード例 #1
0
ファイル: mod_bt_login.php プロジェクト: Raul-mz/web-erpcya
    $effect = 'btl-modal';
}
//setting for registration
$usersConfig = JComponentHelper::getParams('com_users');
$enabledRegistration = false;
$viewName = JRequest::getVar('view', 'registry');
$enabledRecaptcha = 'none';
if ($usersConfig->get('allowUserRegistration') && $params->get("enabled_registration", 1) && ($viewName != "registration" || $integrated_com != '')) {
    $enabledRegistration = true;
    $enabledRecaptcha = $params->get('use_captcha', 1);
    if ($enabledRecaptcha == 1) {
        //create instance captcha, get recaptcha
        $captcha = JFactory::getConfig()->get('captcha');
        if ($captcha) {
            $reCaptcha = JCaptcha::getInstance($captcha);
            $reCaptcha = $reCaptcha->display('bt-login-recaptcha', 'bt-login-recaptcha', 'bt-login-recaptcha');
        } else {
            $reCaptcha = '';
            $enabledRecaptcha = 0;
        }
    } else {
        if ($enabledRecaptcha == 2) {
            $reCaptcha = modbt_loginHelper::getBuiltinCaptcha();
        }
    }
}
$language = JFactory::getLanguage();
require JModuleHelper::getLayoutPath('mod_bt_login');
?>