1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
authorize.php
См. документацию.
1
<?
2
if
(!defined(
"B_PROLOG_INCLUDED"
) || B_PROLOG_INCLUDED!==
true
)
die
();
3
4
$store_password
= COption::GetOptionString(
"main"
,
"store_password"
,
"Y"
);
5
$bNeedCaptcha
=
$APPLICATION
->NeedCAPTHAForLogin(
$last_login
);
6
7
$authLink
=
false
;
8
if
(
9
\
Bitrix
\Main\Loader::includeModule(
"socialservices"
)
10
&& class_exists(
"Bitrix\\Socialservices\\Network"
)
// just to check if socserv update installed
11
)
12
{
13
$authLink
=
\Bitrix\Socialservices\Network::getAuthUrl
(
"popup"
,
array
(
"admin"
));
14
}
15
?>
16
17
<div
class
=
"login-main-popup-wrap login-popup-wrap<?=$bNeedCaptcha?"
login-captcha-popup-wrap
" : "
"?>"
id
=
"authorize"
>
18
<input type=
"hidden"
name=
"TYPE"
value=
"AUTH"
>
19
<div
class
=
"login-popup"
>
20
<div
class
=
"login-popup-title"
><?=
GetMessage
(
'AUTH_TITLE'
)?></div>
21
<div
class
=
"login-popup-title-description"
><?=
GetMessage
(
"AUTH_PLEASE_AUTH"
)?></div>
22
23
<div
class
=
"login-popup-field"
>
24
<div
class
=
"login-popup-field-title"
><?=
GetMessage
(
"AUTH_LOGIN"
)?></div>
25
<div
class
=
"login-input-wrap"
>
26
<input type=
"text"
class
=
"login-input"
onfocus=
"BX.addClass(this.parentNode, 'login-input-active')"
onblur=
"BX.removeClass(this.parentNode, 'login-input-active')"
name=
"USER_LOGIN"
value=
"<?echo htmlspecialcharsbx($last_login)?>"
tabindex=
"1"
>
27
<div
class
=
"login-inp-border"
></div>
28
</div>
29
</div>
30
<div
class
=
"login-popup-field"
id
=
"authorize_password"
>
31
<div
class
=
"login-popup-field-title"
><?=
GetMessage
(
"AUTH_PASSWORD"
)?></div>
32
<div
class
=
"login-input-wrap"
>
33
<input type=
"password"
class
=
"login-input"
onfocus=
"BX.addClass(this.parentNode, 'login-input-active')"
onblur=
"BX.removeClass(this.parentNode, 'login-input-active')"
name=
"USER_PASSWORD"
tabindex=
"2"
>
34
<div
class
=
"login-inp-border"
></div>
35
</div>
36
<input type=
"submit"
value=
""
class
=
"login-btn-green"
name=
"Login"
tabindex=
"4"
onfocus=
"BX.addClass(this, 'login-btn-green-hover');"
onblur=
"BX.removeClass(this, 'login-btn-green-hover')"
>
37
<div
class
=
"login-loading"
>
38
<img
class
=
"login-waiter"
alt=
""
src=
"/bitrix/panel/main/images/login-waiter.gif"
>
39
</div>
40
</div>
41
<?
42
$CAPTCHA_CODE
=
''
;
43
if
(
$bNeedCaptcha
)
44
{
45
$CAPTCHA_CODE
=
$APPLICATION
->CaptchaGetCode();
46
}
47
48
?>
49
<input type=
"hidden"
name=
"captcha_sid"
value=
"<?=$CAPTCHA_CODE?>"
/>
50
<div
class
=
"login-popup-field login-captcha-field"
>
51
<div
class
=
"login-popup-field-title"
><?=
GetMessage
(
"AUTH_CAPTCHA_PROMT"
)?></div>
52
<div
class
=
"login-input-wrap"
>
53
<span
class
=
"login-captcha-wrap"
id
=
"captcha_image"
><?
if
(
$bNeedCaptcha
):?><img src=
"/bitrix/tools/captcha.php?captcha_sid=<?=$CAPTCHA_CODE?>"
width
=
"180"
height
=
"40"
alt=
"CAPTCHA"
/><?
endif
;?></span><input type=
"text"
onfocus=
"BX.addClass(this.parentNode, 'login-input-active')"
onblur=
"BX.removeClass(this.parentNode, 'login-input-active')"
name=
"captcha_word"
class
=
"login-input"
tabindex=
"5"
autocomplete=
"off"
>
54
<div
class
=
"login-inp-border"
></div>
55
</div>
56
</div>
57
<?
58
59
if
(
$store_password
==
"Y"
):
60
?>
61
<div
class
=
"login-popup-checbox-block"
>
62
<input type=
"checkbox"
class
=
"adm-designed-checkbox"
id
=
"USER_REMEMBER"
name=
"USER_REMEMBER"
value=
"Y"
tabindex=
"3"
onfocus=
"BX.addClass(this.nextSibling, 'login-popup-checkbox-label-active')"
onblur=
"BX.removeClass(this.nextSibling, 'login-popup-checkbox-label-active')"
><label
for
=
"USER_REMEMBER"
class
=
"adm-designed-checkbox-label"
></label>
63
<label
for
=
"USER_REMEMBER"
class
=
"login-popup-checkbox-label"
><?=
GetMessage
(
"AUTH_REMEMBER_ME"
)?></label>
64
</div>
65
<?
66
endif
;
67
68
if
($not_show_links!=
"Y"
):
69
?>
70
<a
class
=
"login-popup-link login-popup-forget-pas"
href=
"javascript:void(0)"
onclick=
"BX.adminLogin.toggleAuthForm('forgot_password')"
><?=
GetMessage
(
"AUTH_FORGOT_PASSWORD_2"
)?></a>
71
<?
72
endif
;
73
?>
74
75
<?
76
if
(
$authLink
):
77
$lang
= LANGUAGE_ID ==
'ua'
78
? LANGUAGE_ID :
79
\Bitrix\Main\Localization\Loc::getDefaultLang
(LANGUAGE_ID);
80
?>
81
<div
class
=
"login-popup-field login-auth-serv-icons"
>
82
<a href=
""
class
=
"login-ss-button bitrix24net-button bitrix24net-button-ru"
></a>
83
</div>
84
<div
class
=
"login-popup-network-block"
>
85
<span
class
=
"login-popup-network-label"
><?=
GetMessage
(
"AUTH_NW_SECTION"
)?></span>
86
<span
class
=
"login-popup-network-btn login-popup-network-btn-<?=$lang?>"
onclick=
"BX.util.popup('<?=CUtil::JSEscape($authLink)?>', 800, 600);"
></span>
87
</div>
88
<?
89
endif
;
90
?>
91
92
</div>
93
</div>
94
<script>
95
BX.adminLogin.registerForm(
new
BX.authFormAuthorize(
'authorize'
, {url:
'<?echo CUtil::JSEscape($authUrl."?login=yes".(($s=DeleteParam(array("logout", "login"))) == ""? "":"&".$s));?>'
}));
96
</script>
$authLink
$authLink
Определения
authorize.php:7
$store_password
$store_password
Определения
authorize.php:4
$bNeedCaptcha
$bNeedCaptcha
Определения
authorize.php:5
$APPLICATION
global $APPLICATION
Определения
include.php:80
Bitrix\Main\Localization\Loc\getDefaultLang
static getDefaultLang($lang)
Определения
loc.php:463
Bitrix\Socialservices\Network\getAuthUrl
static getAuthUrl($mode="page", $addScope=null)
Определения
network.php:397
height
hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> height
Определения
file_new.php:759
width
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
Определения
file_new.php:677
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
endif
endif
Определения
csv_new_setup.php:990
$lang
if(!defined('SITE_ID')) $lang
Определения
include.php:91
$CAPTCHA_CODE
$CAPTCHA_CODE
Определения
otp.php:34
GetMessage
GetMessage($name, $aReplace=null)
Определения
tools.php:3397
Bitrix
die
die
Определения
quickway.php:367
$last_login
$last_login
Определения
wrapper.php:52
bitrix
modules
main
interface
auth
authorize.php
Создано системой
1.14.0