%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.144.86.105 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/forum.rules/ |
Upload File : |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); if (!CModule::IncludeModule("forum")): ShowError(GetMessage("F_NO_MODULE")); endif; // ************************* Input params*************************************************************** // ************************* BASE ********************************************************************** $arParams["CONTENT"] = trim($arParams["CONTENT"]); // ************************* URL *********************************************************************** $URL_NAME_DEFAULT = array( "index" => ""); foreach ($URL_NAME_DEFAULT as $URL => $URL_VALUE) { if (trim($arParams["URL_TEMPLATES_".mb_strtoupper($URL)]) == '') $arParams["URL_TEMPLATES_".mb_strtoupper($URL)] = $APPLICATION->GetCurPageParam($URL_VALUE, array("PAGE_NAME", "FID", "TID", "UID", BX_AJAX_PARAM_ID)); $arParams["~URL_TEMPLATES_".mb_strtoupper($URL)] = $arParams["URL_TEMPLATES_".mb_strtoupper($URL)]; $arParams["URL_TEMPLATES_".mb_strtoupper($URL)] = htmlspecialcharsbx($arParams["~URL_TEMPLATES_".mb_strtoupper($URL)]); } // ***************************************************************************************** $arParams["SET_NAVIGATION"] = ($arParams["SET_NAVIGATION"] == "N" ? "N" : "Y"); // $arParams["DISPLAY_PANEL"] = ($arParams["DISPLAY_PANEL"] == "Y" ? "Y" : "N"); // **************************** TITLE ****************************************************** $arParams["SET_TITLE"] = ($arParams["SET_TITLE"] == "N" ? "N" : "Y"); // ***************************************************************************************** // *************************/Input params*************************************************************** $arResult["TEXT_MESSAGE"] = ""; if (!empty($arParams["CONTENT"])) { $arParams["FILE_NAME"] = $_SERVER["DOCUMENT_ROOT"].$arParams["CONTENT"]; if (is_file($arParams["FILE_NAME"])) { $arResult["TEXT_MESSAGE"] = $GLOBALS["APPLICATION"]->GetFileContent($arParams["FILE_NAME"]); } } if (empty($arResult["TEXT_MESSAGE"])) { $txtParams = array(); if (isset($_SERVER['SERVER_NAME'])) $txtParams = array("#SERVER_NAME#" => htmlspecialcharsbx($_SERVER['SERVER_NAME'])); $arResult["TEXT_MESSAGE"] = GetMessage("F_CONTENT", $txtParams); } // ***************************************************************************************** if ($arParams["SET_NAVIGATION"] != "N") $APPLICATION->AddChainItem(GetMessage("F_TITLE_NAV")); if ($arParams["SET_TITLE"] != "N") $APPLICATION->SetTitle(GetMessage("F_TITLE")); // if($arParams["DISPLAY_PANEL"] == "Y" && $USER->IsAuthorized()) // CForumNew::ShowPanel(0, 0, false); // ***************************************************************************************** $this->IncludeComponentTemplate(); // ***************************************************************************************** ?>