1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
wrapper_popup.php
См. документацию.
1<?php
2
4
5if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
6
7switch($_REQUEST['bxsender']):
8
9/**********************************************************/
10/************** core_window standard dialogs **************/
11/**********************************************************/
12
13 case 'core_window_cdialog':
14 case 'core_window_cadmindialog':
15?>
16<script bxrunfirst="true">top.BX.WindowManager.Get().Authorize(<?= Json::encode($arAuthResult) ?>)</script>
17<?
18 break;
19
20/**********************************************************/
21/************** Admin Wizard Dialog***********************/
22/**********************************************************/
23
24 case 'admin_wizard_dialog':
25?>
26<script bxrunfirst="true">
27 (new top.BX.CAuthDialog({
28 content_url: "/bitrix/admin/wizard_install.php",
29 auth_result: <?= Json::encode($arAuthResult) ?>,
30 callback: function() {
31 var frameWindow = top.WizardWindow.currentFrame.contentWindow;
32 var reloadForm = frameWindow.document.forms["wizard_reload_form"];
33 var submitButton = reloadForm.elements["reload_submit"];
34 submitButton.click();
35 }
36 })).Show();
37</script>
38
39<form action="<?=$APPLICATION->GetCurPageParam(bitrix_sessid_get(), Array("sessid"))?>" method="post" name="wizard_reload_form">
40 <input type="submit" name="reload_submit" value="Y" style="display: none;">
41 <?=CAdminUtil::dumpVars($_POST, array("USER_LOGIN", "USER_PASSWORD", "sessid"));?>
42</form>
43<?
44 break;
45
46/**********************************************************/
47/************** WYSIWYG editor requests *******************/
48/**********************************************************/
49
50 case 'fileman_html_editor':
51?>
52<script bxrunfirst="true">
53 top.BX.onCustomEvent(top, 'OnHtmlEditorRequestAuthFailure', ['<?= CUtil::JSEscape($_REQUEST['bxeditor'])?>', <?= Json::encode($arAuthResult) ?>]);
54</script>
55<?
56 break;
57
58/***************************************************************************************************/
59/*************** core window auth dialog - we shold return auth form content ***********************/
60/***************************************************************************************************/
61
62 case 'core_window_cauthdialog':
63
64 $store_password = COption::GetOptionString("main", "store_password", "Y");
65 $bNeedCaptcha = $APPLICATION->NeedCAPTHAForLogin($last_login);
66
67 ob_start();
68?>
69<form name="form_auth" method="post" action="" novalidate>
70 <input type="hidden" name="AUTH_FORM" value="Y">
71 <input type="hidden" name="TYPE" value="AUTH">
72
73 <div class="bx-core-popup-auth-field">
74 <div class="bx-core-popup-auth-field-caption"><?=GetMessage("AUTH_LOGIN")?></div>
75 <div class="bx-core-popup-auth-field"><input type="text" name="USER_LOGIN" value="<?echo htmlspecialcharsbx($last_login)?>"></div>
76 </div>
77 <div class="bx-core-popup-auth-field">
78 <div class="bx-core-popup-auth-field-caption"><?=GetMessage("AUTH_PASSWORD")?></div>
79 <div class="bx-core-popup-auth-field"><input type="password" name="USER_PASSWORD"></div>
80 </div>
81
82<?
83 if($store_password=="Y"):
84?>
85 <div class="bx-core-popup-auth-field">
86 <input type="checkbox" class="adm-designed-checkbox" id="USER_REMEMBER" name="USER_REMEMBER" value="Y">
87 <label for="USER_REMEMBER" class="adm-designed-checkbox-label"></label><label for="USER_REMEMBER">&nbsp;<?=GetMessage("AUTH_REMEMBER_ME")?></label>
88 </div>
89<?
90 endif;
91
92 $CAPTCHA_CODE = '';
93 if($bNeedCaptcha):
94 $CAPTCHA_CODE = $APPLICATION->CaptchaGetCode();
95?>
96 <input type="hidden" name="captcha_sid" value="<?=$CAPTCHA_CODE?>" />
97 <div class="bx-core-popup-auth-field">
98 <div class="bx-core-popup-auth-field-caption">
99 <div><?=GetMessage("AUTH_CAPTCHA_PROMT")?></div>
100 <img src="/bitrix/tools/captcha.php?captcha_sid=<?=$CAPTCHA_CODE?>" width="180" height="40" alt="CAPTCHA" />
101 </div>
102 <div class="bx-core-popup-auth-field"><input type="text" name="captcha_word"></div>
103 </div>
104<?
105 endif; // $bNeedCaptcha
106?>
107</form>
108<?
109 $form = ob_get_contents();
110 ob_end_clean();
111?>
112<script>
113var authWnd = top.BX.WindowManager.Get();
114authWnd.SetTitle('<?=GetMessageJS('AUTH_TITLE')?>');
115authWnd.SetContent('<?=CUtil::JSEscape($form)?>');
116authWnd.SetError(<?= Json::encode($arAuthResult) ?>);
117authWnd.adjustSizeEx();
118</script>
119<?
120 if(!CMain::IsHTTPS() && COption::GetOptionString('main', 'use_encrypted_auth', 'N') == 'Y')
121 {
122 $sec = new CRsaSecurity();
123 if(($arKeys = $sec->LoadKeys()))
124 {
125 $sec->SetKeys($arKeys);
126 $sec->AddToForm('form_auth', array('USER_PASSWORD'));
127 }
128 }
129
130 break;
131endswitch;
$store_password
Определения authorize.php:4
$bNeedCaptcha
Определения authorize.php:5
global $APPLICATION
Определения include.php:80
Определения json.php:9
static dumpVars($vars, $arExclusions=array())
Определения admin_lib.php:2569
Определения rsasecurity.php:35
& nbsp
Определения epilog_main_admin.php:38
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
bx_acc_lim_group_list limitGroupList[] multiple<?=$group[ 'ID']?> ID selected margin top
Определения file_new.php:657
$_REQUEST["admin_mnu_menu_id"]
Определения get_menu.php:8
endif
Определения csv_new_setup.php:990
$CAPTCHA_CODE
Определения otp.php:34
GetMessage($name, $aReplace=null)
Определения tools.php:3397
die
Определения quickway.php:367
font style
Определения invoice.php:442
$last_login
Определения wrapper.php:52
case callback
Определения wrapper_popup.php:31
submitButton
Определения wrapper_popup.php:33
reloadForm
Определения wrapper_popup.php:32
case auth_result
Определения wrapper_popup.php:29