Your IP : 3.129.249.235


Current Path : /home/bitrix/ext_www/crm.klimatlend.ua/bitrix/components/bitrix/crm.deal_category/
Upload File :
Current File : /home/bitrix/ext_www/crm.klimatlend.ua/bitrix/components/bitrix/crm.deal_category/component.php

<?
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) die();

if (!CModule::IncludeModule('crm'))
{
	ShowError(GetMessage('CRM_MODULE_NOT_INSTALLED'));
	return;
}

global $APPLICATION;

$componentPage = '';
$arDefaultUrlTemplates404 = array(
	'deal_category_list' => ''
);

if ($arParams['SEF_MODE'] === 'Y')
{
	$arDefaultVariableAliases404 = array();
	$arVariables = array();
	$arUrlTemplates = CComponentEngine::MakeComponentUrlTemplates($arDefaultUrlTemplates404, $arParams['SEF_URL_TEMPLATES']);
	$componentPage = CComponentEngine::ParseComponentPath($arParams['SEF_FOLDER'], $arUrlTemplates, $arVariables);

	if (!(is_string($componentPage) && $componentPage !== '' && isset($arDefaultUrlTemplates404[$componentPage])))
	{
		$componentPage = 'deal_category_list';
	}

	foreach ($arUrlTemplates as $url => $value)
	{
		$key = 'PATH_TO_'.mb_strtoupper($url);
		$arResult[$key] = !empty($arParams[$key]) ? $arParams[$key] : $arParams['SEF_FOLDER'].$value;
	}
}
else
{
	$componentPage = 'deal_category_list';
	$curPage = $APPLICATION->GetCurPage();
	$arResult['PATH_TO_DEAL_CATEGORY_LIST'] = $curPage;
}

$arResult =
	array_merge(
		array(
			'VARIABLES' => array(),
			'ALIASES' => array()
		),
		$arResult
	);

$this->IncludeComponentTemplate($componentPage);
?>