403Webshell
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/cvetdv.ru/bitrix/components/bitrix/bitrixcloud.mobile.monitoring.edit/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/bitrixcloud.mobile.monitoring.edit/ajax.php
<?php
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';
/** @var CMain $APPLICATION */
/** @var CUser $USER */
CComponentUtil::__IncludeLang(dirname($_SERVER['SCRIPT_NAME']), '/ajax.php');

$arResult = [];

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();

	if ($action === 'update')
	{
		try
		{
			$result = $monitoring->startMonitoring(
				$domain,
				$_REQUEST['IS_HTTPS'] === 'Y',
				$_REQUEST['LANG'],
				$_REQUEST['EMAILS'],
				$_REQUEST['TESTS']
			);

			if ($result !== '')
			{
				$arResult['ERROR'] = $result;
			}
		}
		catch (Exception $e)
		{
			$arResult['ERROR'] = $e->getMessage();
		}
	}

	if (isset($arResult['ERROR']))
	{
		$arResult['RESULT'] = 'ERROR';
	}
	else
	{
		$arResult['RESULT'] = 'OK';
	}
}

die(json_encode($arResult));

Youez - 2016 - github.com/yon3zu
LinuXploit