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/ajax/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/ajax/fastViewNav.php
<?define("STATISTIC_SKIP_ACTIVITY_CHECK", "true");?>
<?define('STOP_STATISTICS', true);
define('PUBLIC_AJAX_MODE', true);?>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?\Bitrix\Main\Loader::includeModule('aspro.next');?>
<?if($_POST["element"]){
	$filter = $_POST['filter'];
	if($filter) {
		$filter = \Bitrix\Main\Web\Json::decode($filter);
	}
	if( !$filter || !isset($filter['SECTION_CODE']) ) {
		if($_SESSION['FAST_VIEW_IS_CATALOG']) {
			if(!$filter['SECTION_ID'] && !$filter['SECTION_CODE']) {
				$filter['SECTION_ID'] = $_POST['section'];
			}
		} else {
			$filter['SECTION_ID'] = $_POST['section'];
		}
	}
	
	$filter['INCLUDE_SUBSECTIONS'] = 'Y';
	$filter['ACTIVE'] = 'Y';
	$filter['GLOBAL_ACTIVE'] = 'Y';

	if(!isset($filter['IBLOCK_ID'])){
		$filter['IBLOCK_ID'] = $_POST["iblock"];
	}

	$sort = $_POST['sort'];
	if($sort) {
		$sort = \Bitrix\Main\Web\Json::decode($sort);
		$arOrder = $sort;
	}
	$arOrder['CACHE'] = array( "TAG" => CNextCache::GetIBlockCacheTag($_POST["iblock"]) );

	$elementId = $_POST["element"];
	$action = $_POST["action"];

	// echo '<pre>';
	// print_r($arOrder);
	// echo '</prE>';

	// echo '<pre>';
	// print_r($filter);
	// echo '</prE>';

	$elements = CNextCache::CIblockElement_GetList($arOrder, $filter, false, false, array('DETAIL_PAGE_URL'));

	// echo '<pre>';
	// print_r($elements);
	// echo '</prE>';

	foreach ($elements as $key => $el) {
		if($el['ID'] == $elementId) {
			if($action == 'next') {
				if(isset($elements[$key+1])) {
					$result['DETAIL_PAGE_URL'] = $elements[$key+1]['DETAIL_PAGE_URL'];
				} else {
					$result['DETAIL_PAGE_URL'] = $elements[0]['DETAIL_PAGE_URL'];
				}
			} else {
				if(isset($elements[$key-1])) {
					$result['DETAIL_PAGE_URL'] = $elements[$key-1]['DETAIL_PAGE_URL'];
				} else {
					$result['DETAIL_PAGE_URL'] = end($elements)['DETAIL_PAGE_URL'];
				}
			}
		}
	}

	$_GET['iblock_id'] = $filter['IBLOCK_ID'];
	$_GET['item_href'] = $result['DETAIL_PAGE_URL'];
	$_GET['skip_preview'] = true;

	include('fast_view.php');
}?>

Youez - 2016 - github.com/yon3zu
LinuXploit