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/wizards/bitrix/eshop/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/wizards/bitrix/eshop/.description.php
<?php
use Bitrix\Main\Config\Option;
use Bitrix\Main\Loader;
use Bitrix\Catalog;
use Bitrix\Crm;

if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if(!defined("WIZARD_DEFAULT_SITE_ID") && !empty($_REQUEST["wizardSiteID"]))
	define("WIZARD_DEFAULT_SITE_ID", $_REQUEST["wizardSiteID"]);

$arWizardDescription = [
	"NAME" => GetMessage("PORTAL_WIZARD_NAME"),
	"DESCRIPTION" => GetMessage("PORTAL_WIZARD_DESC"),
	"VERSION" => "1.0.0",
	"START_TYPE" => "WINDOW",
	"WIZARD_TYPE" => "INSTALL",
	"IMAGE" => "/images/".LANGUAGE_ID."/solution.png",
	"PARENT" => "wizard_sol",
	"TEMPLATES" => [
		["SCRIPT" => "wizard_sol"]
	],
	"STEPS" => [
		'SelectSiteStep',
		'SelectTemplateStep',
		'SelectThemeStep',
		'SiteSettingsStep',
		'CatalogSettings',
		'ShopSettings',
		'PersonType',
		'PaySystem',
		'DataInstallStep',
		'FinishStep',
	],
];

if (defined("ADDITIONAL_INSTALL"))
{
	$arWizardDescription["STEPS"] = [
		"SelectTemplateStep",
		"SelectThemeStep",
		"SiteSettingsStep",
		"ShopSettings",
		"PersonType",
		"DataInstallStep",
		"FinishStep",
	];
}
elseif (defined("WIZARD_DEFAULT_SITE_ID"))
{
	if (LANGUAGE_ID == "ru")
	{
		$arWizardDescription["STEPS"] = [
			"SelectTemplateStep",
			"SelectThemeStep",
			"SiteSettingsStep",
			"CatalogSettings",
			"ShopSettings",
			"PersonType",
			"PaySystem",
			"DataInstallStep",
			"FinishStep",
		];
	}
	else
	{
		$arWizardDescription["STEPS"] = [
			"SelectTemplateStep",
			"SelectThemeStep",
			"SiteSettingsStep",
			"CatalogSettings",
			"PaySystem",
			"DataInstallStep",
			"FinishStep",
		];
	}
}
else
{
	if (LANGUAGE_ID !== "ru")
	{
		$arWizardDescription["STEPS"] = [
			"SelectSiteStep",
			"SelectTemplateStep",
			"SelectThemeStep",
			"SiteSettingsStep",
			"CatalogSettings",
			"PaySystem",
			"DataInstallStep",
			"FinishStep",
		];
	}
}

$removeCatalog = false;
if (Loader::includeModule('catalog'))
{
	if (Catalog\Config\State::isUsedInventoryManagement())
	{
		$removeCatalog = true;
	}
}
if (Loader::includeModule('crm')) // portals
{
	if (
		\CCrmSaleHelper::isWithOrdersMode()
		|| Crm\Settings\LeadSettings::isEnabled()
	)
	{
		$removeCatalog = true;
	}
}
if ($removeCatalog)
{
	$indexCatalog = array_search('CatalogSettings', $arWizardDescription['STEPS']);
	if ($indexCatalog !== false)
	{
		unset($arWizardDescription["STEPS"][$indexCatalog]);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit