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/rospirotorg.ru/bitrix/components/aspro/wrapper.block.next/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/aspro/wrapper.block.next/component.php
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

global $arTheme, $APPLICATION;

$bError = \Bitrix\Main\Loader::includeModule('aspro.next') == false;

/*Prepare params*/
$arParams["ELEMENT_COUNT"] = ($arParams["ELEMENT_COUNT"] ? $arParams["ELEMENT_COUNT"] : 5);
$arParams['FILTER_NAME'] = ($arParams['FILTER_NAME'] ? $arParams['FILTER_NAME'] : 'arFilterWrapper');

$arParams["COMPONENT_NAME"] = $componentName;
$arParams["TEMPLATE"] = $componentTemplate;

$arParams["IS_AJAX"] = CNext::checkAjaxRequest();
$arParams["USE_FAST_VIEW"] = CNext::GetFrontParametrValue('USE_FAST_VIEW_PAGE_DETAIL');

$arParams['DISPLAY_WISH_BUTTONS'] = CNext::GetFrontParametrValue('CATALOG_DELAY');
/**/

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

/*fix global filter in ajax*/
if($_SESSION['ASPRO_FILTER'][$arParams['FILTER_NAME']]){
	$GLOBALS[$arParams['FILTER_NAME']] = $_SESSION['ASPRO_FILTER'][$arParams['FILTER_NAME']];
}

if($arParams['FILTER_NAME'] == 'arrPopularSections'){
	$GLOBALS[$arParams['FILTER_NAME']] = array('UF_POPULAR' => 1);
}
/**/

if(!$bError){
	if($arParams["IS_AJAX"] != 'Y'){
		$this->IncludeComponentTemplate();
	}
	else{
		// $APPLICATION->ShowCss();
		// $APPLICATION->ShowHeadScripts();
		$APPLICATION->ShowAjaxHead();

		// not load core.js in CJSCore:Init()
		CJSCore::markExtensionLoaded('core');

		global $arRegion;
		$arRegion = CNextRegionality::getCurrentRegion();

		if($arRegion){
			if($arRegion['LIST_PRICES']){
				if(reset($arRegion['LIST_PRICES']) != 'component'){
					$arParams['PRICE_CODE'] = array_keys($arRegion['LIST_PRICES']);
				}
			}

			if($arRegion['LIST_STORES']){
				if(reset($arRegion['LIST_STORES']) != 'component'){
					$arParams['STORES'] = $arRegion['LIST_STORES'];
				}
			}

			if($arParams['FILTER_NAME'] == 'arRegionality' && $arParams['STORES']){
				if(CNext::GetFrontParametrValue('STORES_SOURCE') != 'IBLOCK'){
					$GLOBALS[$arParams['FILTER_NAME']] = array('ID' => $arRegion['LIST_STORES']);
				}
				else{
					$GLOBALS[$arParams['FILTER_NAME']] = array('PROPERTY_STORE_ID' => $arRegion['LIST_STORES']);
				}
			}
		}

		$this->IncludeComponentTemplate('ajax');
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit