403Webshell
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/bitrix/idea.popup/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/components/bitrix/idea.popup/component.php
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();

if(defined("IDEA_POPUP_DIALOG_INITED"))
	return;
define("IDEA_POPUP_DIALOG_INITED", true);

if (!CModule::IncludeModule("blog"))
{
	ShowError(GetMessage("BLOG_MODULE_NOT_INSTALL"));
	return;
}

if (!CModule::IncludeModule("idea"))
{
	ShowError(GetMessage("IDEA_MODULE_NOT_INSTALL"));
	return;
}

if (!CModule::IncludeModule("iblock"))
{
	ShowError(GetMessage("IBLOCK_MODULE_NOT_INSTALL"));
	return;
}

$arParams["IBLOCK_CATEGORIES"] = intval($arParams["IBLOCK_CATEGORIES"] ? $arParams["IBLOCK_CATEGORIES"] : $arParams["IBLOCK_CATOGORIES"]);
$arParams["CATEGORIES_CNT"] = intval($arParams["CATEGORIES_CNT"] ? $arParams["CATEGORIES_CNT"] : $arParams["CATOGORIES_CNT"]);
if($arParams["CATEGORIES_CNT"] == 0)
	$arParams["CATEGORIES_CNT"] = 4;

$arParams["LIST_MESSAGE_COUNT"] = intval($arParams["LIST_MESSAGE_COUNT"]);
if($arParams["LIST_MESSAGE_COUNT"] == 0)
	$arParams["LIST_MESSAGE_COUNT"] = 8;

if($arParams["SHOW_RATING"] != "N")
$arParams["SHOW_RATING"] = "Y";
if($arParams["RATING_TEMPLATE"] != 'standart')
	$arParams["RATING_TEMPLATE"] = 'like';

$arParams["BUTTON_COLOR"] = htmlspecialcharsbx($arParams["BUTTON_COLOR"]);
$arParams["AUTH_TEMPLATE"] = trim($arParams["AUTH_TEMPLATE"]);

//Set category
CIdeaManagment::getInstance()->Idea()->SetCategoryListID($arParams["IBLOCK_CATEGORIES"]);
//Notifications
if($arParams["DISABLE_SONET_LOG"] == "Y" || !IsModuleInstalled('socialnetwork'))
	CIdeaManagment::getInstance()->Notification()->GetSonetNotify()->Disable();
if($arParams["DISABLE_EMAIL"] == "Y")

	CIdeaManagment::getInstance()->Notification()->GetEmailNotify()->Disable();
CJSCore::Init(array('ajax', 'translit'));

if($_REQUEST["AJAX"] == "Y")
{
	$APPLICATION->RestartBuffer();
	$APPLICATION->ShowAjaxHead();
	$this->IncludeComponentTemplate(($_REQUEST["ACTION"] == 'GET_ADD_FORM' ? 'add' : 'list'));
	die();
}

$this->IncludeComponentTemplate("template");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit