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/cvetdv.ru/bitrix/components/bitrix/sale.products.gift.section/ |
Upload File : |
<? /** @global \CMain $APPLICATION */ define('STOP_STATISTICS', true); define('PUBLIC_AJAX_MODE', true); $siteId = isset($_REQUEST['siteId']) && is_string($_REQUEST['siteId']) ? $_REQUEST['siteId'] : ''; $siteId = mb_substr(preg_replace('/[^a-z0-9_]/i', '', $siteId), 0, 2); if (!empty($siteId) && is_string($siteId)) { define('SITE_ID', $siteId); } require_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php'); $request = \Bitrix\Main\Application::getInstance()->getContext()->getRequest(); if (!\Bitrix\Main\Loader::includeModule('iblock')) return; $signer = new \Bitrix\Main\Security\Sign\Signer; try { $template = $signer->unsign((string)$request->get('template'), 'sale.products.gift.section'); $parameters = $signer->unsign((string)$request->get('parameters'), 'sale.products.gift.section'); } catch (\Bitrix\Main\Security\Sign\BadSignatureException $e) { die(); } $APPLICATION->IncludeComponent( 'bitrix:sale.products.gift.section', $template, unserialize(base64_decode($parameters), ['allowed_classes' => [ \Bitrix\Main\Type\DateTime::class, \Bitrix\Main\Type\Date::class, \Bitrix\Main\Web\Uri::class, \DateTime::class, \DateTimeZone::class, ]]), false );