1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
authorize.php
См. документацию.
1<?
2if(!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;
8if(
9 \Bitrix\Main\Loader::includeModule("socialservices")
10 && class_exists("Bitrix\\Socialservices\\Network") // just to check if socserv update installed
11)
12{
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 = '';
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
59if($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 <?
66endif;
67
68if($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<?
72endif;
73?>
74
75<?
76if($authLink):
77 $lang = LANGUAGE_ID == 'ua'
78 ? 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<?
90?>
91
92 </div>
93</div>
94<script>
95BX.adminLogin.registerForm(new BX.authFormAuthorize('authorize', {url: '<?echo CUtil::JSEscape($authUrl."?login=yes".(($s=DeleteParam(array("logout", "login"))) == ""? "":"&".$s));?>'}));
96</script>
$authLink
Определения authorize.php:7
$store_password
Определения authorize.php:4
$bNeedCaptcha
Определения authorize.php:5
global $APPLICATION
Определения include.php:80
static getDefaultLang($lang)
Определения loc.php:463
static getAuthUrl($mode="page", $addScope=null)
Определения network.php:397
hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> height
Определения file_new.php:759
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
Определения file_new.php:677
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
endif
Определения csv_new_setup.php:990
if(!defined('SITE_ID')) $lang
Определения include.php:91
$CAPTCHA_CODE
Определения otp.php:34
GetMessage($name, $aReplace=null)
Определения tools.php:3397
die
Определения quickway.php:367
$last_login
Определения wrapper.php:52