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/modules/goodde.yandexturboapi/load/ |
Upload File : |
#!#PHP_PATH# -q <? /* replace #PHP_PATH# to real path of php binary For example: /user/bin/php /usr/bin/perl /usr/bin/env python */ $_SERVER["DOCUMENT_ROOT"] = realpath(dirname(__FILE__)."/../../../.."); define("NO_KEEP_STATISTIC", true); define("NOT_CHECK_PERMISSIONS",true); define("BX_CRONTAB", true); define('NO_AGENT_CHECK', true); define('BX_WITH_ON_AFTER_EPILOG', true); define('BX_NO_ACCELERATOR_RESET', true); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); set_time_limit(0); ignore_user_abort(true); $feedId = 0; if (isset($argv[1])) $feedId = (int)$argv[1]; if ($feedId <= 0) die('No feed id'); if(!\Bitrix\Main\Loader::includeModule('goodde.yandexturboapi')) { die('No module goodde.yandexturboapi'); } if(!\Bitrix\Main\Loader::includeModule('iblock')) { die('No iblock'); } $strFile = '/bitrix/modules/goodde.yandexturboapi/load/turbo_run.php'; if (!file_exists($_SERVER["DOCUMENT_ROOT"].$strFile)) { die('No export script'); } $arFeed = \Goodde\YandexTurbo\FeedTable::getById($feedId)->fetch(); if(!$arFeed) { die('No feed'); } if($arFeed['IS_SECTION'] == 'Y') { $turboFeed = new \Goodde\YandexTurbo\TurboFeedSections($arFeed['ID']); } else { $turboFeed = new \Goodde\YandexTurbo\TurboFeed($arFeed['ID']); } $totalItems = intVal($turboFeed->SelectedRowsCount()); if($totalItems <= 0 && $arFeed['IS_NOT_UPLOAD_FEED'] == 'N') { die('No elements'); } include($_SERVER["DOCUMENT_ROOT"].$strFile); ?>