Server IP : 85.193.89.191 / Your IP : 18.221.124.137 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/components/bitrix/bitrixcloud.mobile.monitoring.detail/ |
Upload File : |
<? define('NO_KEEP_STATISTIC', true); define('NO_AGENT_STATISTIC', true); define('NOT_CHECK_PERMISSIONS', true); require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_admin_before.php'); CComponentUtil::__IncludeLang(dirname($_SERVER["SCRIPT_NAME"]), "/ajax.php"); $arResult = array(); if (!CModule::IncludeModule("bitrixcloud")) $arResult["ERROR"] = GetMessage("BCLMMD_BC_NOT_INSTALLED"); if(!$USER->CanDoOperation("bitrixcloud_monitoring") || !check_bitrix_sessid()) $arResult["ERROR"] = GetMessage("BCLMMD_ACCESS_DENIED"); if(!isset($arResult["ERROR"])) { $action = isset($_REQUEST['action']) ? trim($_REQUEST['action']) : ''; $domain = isset($_REQUEST['domain']) ? trim($_REQUEST['domain']) : ''; $monitoring = CBitrixCloudMonitoring::getInstance(); switch ($action) { case 'delete': $strError = $monitoring->stopMonitoring($domain); if($strError <> '') $arResult["ERROR"] = $strError; break; } if(isset($arResult["ERROR"])) $arResult["RESULT"] = "ERROR"; else $arResult["RESULT"] = "OK"; } $arResult = $APPLICATION->ConvertCharsetArray($arResult, SITE_CHARSET, 'utf-8'); die(json_encode($arResult)); ?>