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/yandex.market/admin.massive.category/ |
Upload File : |
<?php use Bitrix\Main; use Yandex\Market\Reference\Assert; use Yandex\Market\Components; require_once $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'; try { if (!Main\Loader::includeModule('yandex.market')) { throw new Main\SystemException('Module yandex.market is required'); } require_once './class.php'; $request = Main\Application::getInstance()->getContext()->getRequest(); $action = $request->getPost('MASSIVE_ACTION') ?: 'form'; $method = $action . 'Action'; $component = new Components\AdminMassiveCategory(); $component->initComponent('yandex.market:admin.massive.category'); Assert::methodExists($component, $method); foreach ($component->requiredModules() as $moduleName) { if (!Main\Loader::includeModule($moduleName)) { throw new Main\SystemException("Module {$moduleName} is required"); } } $component->$method(); } catch (\Exception $e) { if (!($e instanceof Main\SystemException)) { Main\Application::getInstance()->getExceptionHandler()->writeToLog($e); } ShowError($e->getMessage()); } /** @noinspection PhpElementIsNotAvailableInCurrentPhpVersionInspection */ catch (\Throwable $e) { Main\Application::getInstance()->getExceptionHandler()->writeToLog($e); ShowError($e->getMessage()); } require_once $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_after.php';