|
|
@@ -24,11 +24,7 @@ class BxBaseServiceAccount extends BxDol
|
|
|
}
|
|
|
|
|
|
public function serviceCreateAccountForm ($aParams = array())
|
|
|
- {
|
|
|
- $sLoginText = '';
|
|
|
- if (!isset($aParams['no_login_text']) || (int)$aParams['no_login_text'] == 1)
|
|
|
- $sLoginText = '<hr class="bx-def-hr bx-def-margin-sec-topbottom" /><div>' . _t('_sys_txt_join_description', BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=login')) . '</div>';
|
|
|
-
|
|
|
+ {
|
|
|
if (isset($_SERVER['HTTP_REFERER']) && 0 === mb_stripos($_SERVER['HTTP_REFERER'], BX_DOL_URL_ROOT)) { // remember referrer
|
|
|
|
|
|
$sJoinReferrer = $_SERVER['HTTP_REFERER'];
|
|
|
@@ -42,8 +38,14 @@ class BxBaseServiceAccount extends BxDol
|
|
|
if ($sJoinReferrer)
|
|
|
BxDolSession::getInstance()->setValue('join-referrer', $sJoinReferrer);
|
|
|
}
|
|
|
+
|
|
|
+ $sLoginText = '';
|
|
|
+ if (!isset($aParams['no_login_text']) || false === (bool)$aParams['no_login_text'])
|
|
|
+ $sLoginText = '<hr class="bx-def-hr bx-def-margin-sec-topbottom" /><div>' . _t('_sys_txt_join_description', BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=login')) . '</div>';
|
|
|
|
|
|
- $sAuth = BxDolService::call('system', 'MemberAuthCode', array(), 'TemplServiceLogin');
|
|
|
+ $sAuth = '';
|
|
|
+ if (!isset($aParams['no_auth_buttons']) || false === (bool)$aParams['no_auth_buttons'])
|
|
|
+ $sAuth = BxDolService::call('system', 'member_auth_code', array(), 'TemplServiceLogin');
|
|
|
|
|
|
return $sAuth . $this->_oAccountForms->createAccountForm($aParams) . $sLoginText;
|
|
|
}
|