Your IP : 3.149.243.29


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/landing/tools/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/landing/tools/ajax.php

<?php
define('NO_KEEP_STATISTIC', 'Y');
define('NO_AGENT_STATISTIC','Y');
define('NO_AGENT_CHECK', true);
define('PUBLIC_AJAX_MODE', true);
define('DisableEventsCheck', true);

if (
	isset($_GET['site']) &&
	preg_match('/^[a-z0-9_]+$/i', $_GET['site'])
)
{
	define('SITE_ID', $_GET['site']);
}

require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');

if (($_REQUEST['redirect'] ?? null) === 'upgrade')
{
	if (\Bitrix\Main\Loader::includeModule('bitrix24'))
	{
		localRedirect('/settings/license_all.php');
	}
	else
	{
		localRedirect('/bitrix/admin/update_system.php');
	}
}

if (\Bitrix\Main\Loader::includeModule('landing'))
{
	header('Content-Type: application/json');
	$ajaxResult = \Bitrix\Landing\PublicAction::ajaxProcessing();
	echo \Bitrix\Main\Web\Json::encode($ajaxResult);
}

\CMain::finalActions();