Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/form/admin/ |
Upload File : |
<? require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); $FORM_RIGHT = $APPLICATION->GetGroupRight("form"); if($FORM_RIGHT<="D") $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); CModule::IncludeModule("form"); ClearVars(); $err_mess = "File: ".__FILE__."<br>Line: "; $F_RIGHT = CForm::GetPermission($WEB_FORM_ID); if ($F_RIGHT < 30 || !check_bitrix_sessid()) { $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED")); die(); } if ($_REQUEST['action'] == 'delete') { if ($USER->CanDoOperation('edit_other_settings')) { $ID = intval($_REQUEST['ID']); $emessage = new CEventMessage(); $DB->StartTransaction(); if(!$emessage->Delete($ID)) { $DB->Rollback(); } else { $DB->Commit(); } } die(); } $arTemplates = CFormStatus::SetMailTemplate($WEB_FORM_ID, $STATUS_ID, "Y", '', true); IncludeModuleLangFile(__FILE__); $strNote .= GetMessage("FORM_GENERATING_FINISHED")."<br>"; $arReturn = array( 'NOTE' => $strNote, 'TEMPLATES' => $arTemplates ); ?> <script> _processData(<?=CUtil::PhpToJsObject($arReturn)?>); </script>