Your IP : 18.118.26.44


Current Path : /home/bitrix/ext_www/crm.klimatlend.ua/saleshub/orders/
Upload File :
Current File : /home/bitrix/ext_www/crm.klimatlend.ua/saleshub/orders/index.php

<?php

$siteId = '';
if(isset($_REQUEST['site_id']) && is_string($_REQUEST['site_id']))
{
	$siteId = substr(preg_replace('/[^a-z0-9_]/i', '', $_REQUEST['site_id']), 0, 2);
}

if($siteId)
{
	define('SITE_ID', $siteId);
}

require($_SERVER['DOCUMENT_ROOT'].'/bitrix/header.php');

$request = \Bitrix\Main\Application::getInstance()->getContext()->getRequest();

if(\Bitrix\Main\Loader::includeModule('salescenter') && \Bitrix\SalesCenter\Integration\CrmManager::getInstance()->isEnabled())
{
	$APPLICATION->IncludeComponent(
		'bitrix:ui.sidepanel.wrapper',
		'',
		[
			'POPUP_COMPONENT_NAME' => 'bitrix:salescenter.orders',
			'POPUP_COMPONENT_TEMPLATE_NAME' => '',
			'POPUP_COMPONENT_PARAMS' => [
				'sessionId' => $request->get('sessionId'),
			],
		]
	);
}

require($_SERVER['DOCUMENT_ROOT'].'/bitrix/footer.php');