Your IP : 18.118.152.63


Current Path : /home/bitrix/ext_www/dev.klimatlend.ua/ua/ajax/
Upload File :
Current File : /home/bitrix/ext_www/dev.klimatlend.ua/ua/ajax/comp.php

<?
require ($_SERVER ['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/mainpage.php");
require ($_SERVER ["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"] . "/local/templates/" . SITE_TEMPLATE_ID . "/template_old.php",$_REQUEST['lang']);
global $USER;?>
<?$APPLICATION->IncludeComponent(
            "bitrix:catalog.compare.list",
            "",
            array(
                "IBLOCK_TYPE" => "catalog",
                "IBLOCK_ID" => $_REQUEST['ib'],
                "NAME" =>"CATALOG_COMPARE_LIST_".$_REQUEST['sect'],
                "DETAIL_URL" => "",
                "COMPARE_URL" => '/ua/catalog/compare/',
            ),
            $component
        );
$count=0;
//unset($_SESSION['CATALOG_COMPARE_LIST_11']);
foreach($_SESSION as $key=>$data){
    if(strstr($key, 'CATALOG_COMPARE_LIST_')){
        $sect = explode('~', $key);
        $sect = $sect[1];
        $count+=count($data[$_REQUEST['ib']]['ITEMS']);
    }
}?>
<?=GetMessage('in_comp');?>
split<?= $count;?>split
<?= "CATALOG_COMPARE_LIST_".HTMLToTxt($_REQUEST['sect']);?>
split