1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
wrapper_auth_result.php
См. документацию.
1<?php
2
4
5if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)
6{
7 die();
8}
9
10if (!is_array($arAuthResult))
11{
12 $arAuthResult = array("TYPE" => "ERROR", "MESSAGE" => $arAuthResult);
13}
14
15if($inc_file === "otp")
16{
17 $arAuthResult['CAPTCHA'] = CModule::IncludeModule("security")
19}
20elseif($inc_file == 'forgot_password' || $inc_file == 'change_password')
21{
22 $arAuthResult['CAPTCHA'] = COption::GetOptionString("main", "captcha_restoring_password", "N") == "Y";
23}
24else
25{
26 $arAuthResult['CAPTCHA'] = $APPLICATION->NeedCAPTHAForLogin($last_login);
27}
28
29if ($arAuthResult['CAPTCHA'])
30{
31 $arAuthResult['CAPTCHA_CODE'] = $APPLICATION->CaptchaGetCode();
32}
33
34if (is_string($arAuthResult['MESSAGE']))
35{
36 $arAuthResult['MESSAGE'] = str_replace('<br>', '', $arAuthResult['MESSAGE']);
37}
38
39if ($bOnHit):
40?>
41<script>
42BX.ready(function(){BX.defer(BX.adminLogin.setAuthResult, BX.adminLogin)(<?= Json::encode($arAuthResult) ?>);});
43</script>
44<?
45else:
46?>
47<script bxrunfirst="true">
48top.BX.adminLogin.setAuthResult(<?= Json::encode($arAuthResult) ?>);
49</script>
50<?
52?>
global $APPLICATION
Определения include.php:80
Определения json.php:9
static isCaptchaRequired()
Определения otp.php:1335
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
Определения option.php:8
static IncludeModule($module_name)
Определения module.php:151
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
Определения file_new.php:657
endif
Определения csv_new_setup.php:990
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393
die
Определения quickway.php:367
$last_login
Определения wrapper.php:52
if(isset($_REQUEST['bxsender'])) $bOnHit
Определения wrapper.php:61