Server IP : 85.193.89.191 / Your IP : 3.137.198.223 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bitrix/www/bitrix/components/bitrix/rss.show/ |
Upload File : |
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) { die(); } /** @var array $arCurrentValues */ use Bitrix\Main\Loader; if (!Loader::includeModule('iblock')) { return; } if (($arCurrentValues["SITE"] ?? '') !== '') { $url_default = "http://" . $arCurrentValues["SITE"]; $port = (int)($arCurrentValues["PORT"] ?? 0); if ($port > 0 && $port !== 80) { $url_default .= ":" . $port; } if (($arCurrentValues["PATH"] ?? '') !== '') { $url_default .= "/" . ltrim((string)$arCurrentValues["PATH"], "/"); } if (($arCurrentValues["QUERY_STR"] ?? '') !== '') { $url_default .= "?" . ltrim((string)$arCurrentValues["QUERY_STR"], "?"); } } else { $url_default = ""; } $arComponentParameters = [ "GROUPS" => [], "PARAMETERS" => [ "URL" => [ "PARENT" => "BASE", "NAME" => GetMessage("CP_BRS_URL"), "TYPE" => "STRING", "DEFAULT" => $url_default, ], "OUT_CHANNEL" => [ "PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_RSS_OUT_CHANNEL"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", ], "NUM_NEWS" => [ "PARENT" => "BASE", "NAME" => GetMessage("T_IBLOCK_DESC_RSS_NUM_NEWS"), "TYPE" => "STRING", "DEFAULT" => '10', ], "PROCESS" => [ "PARENT" => "BASE", "NAME" => GetMessage("CP_BRS_PROCESS"), "TYPE" => "LIST", "DEFAULT" => "NONE", "VALUES" => [ "NONE" => GetMessage("CP_BRS_PROCESS_NONE"), "TEXT" => GetMessage("CP_BRS_PROCESS_TEXT"), "QUOTE" => GetMessage("CP_BRS_PROCESS_QUOTE"), ], ], "CACHE_TIME" => ["DEFAULT"=>3600], ], ];