%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 13.58.52.94
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/wizards/bitrix/demo/modules/calendar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/wizards/bitrix/demo/modules/calendar/index.php
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)
	die();

if(!CModule::IncludeModule("calendar") || (defined("WIZARD_IS_RERUN") && WIZARD_IS_RERUN))
	return;

//Library
include_once(dirname(__FILE__)."/../iblock/iblock_tools.php");
__IncludeLang(GetLangFileName(dirname(__FILE__)."/lang/", "/".basename(__FILE__)));

COption::SetOptionString("intranet", "calendar_2", "Y");

// calendar type
$arTypes = CCalendarType::GetList(array("arFilter" => array("XML_ID" => 'events')));
if (!$arTypes || count($arTypes) <= 0)
{
	CCalendarType::Edit(array(
		'NEW' => true,
		'arFields' => array(
			'XML_ID' => 'events',
			'NAME' => GetMessage('CAL_DEFAULT_TYPE'),
			'ACCESS' => array(
				'G2' => CCalendar::GetAccessTasksByName('calendar_type', 'calendar_type_view')
			)
		)
	));
}

// Sections
$sectId0 = CCalendar::SaveSection(
	array(
		'arFields' => Array(
			'CAL_TYPE' => 'events',
			'ID' => 0,
			'NAME' => GetMessage("CAL_TYPE_COMPANY_NAME"),
			'DESCRIPTION' => "",
			'COLOR' => '#855CC5',
			'TEXT_COLOR' => '',
			'OWNER_ID' => '',
			'EXPORT' => array(
				'ALLOW' => true,
				'SET' => '3_9'
			),
			'ACCESS' => array(),
			'IS_EXCHANGE' => false
		)
	)
);

// Events for company_calendar
CCalendar::SaveEvent(array(
	'arFields' => array(
		'CAL_TYPE' => 'events',
		'OWNER_ID' => 0,
		'NAME' => GetMessage("CAL_EVENT_1_NAME"),
		'DESCRIPTION' => "",
		'DT_FROM' => GetTime(mktime(0, 0, 0, date("m"), date("d") + 4, date("Y")) , "FULL"),
		'DT_TO' => GetTime(mktime(0, 0, 0, date("m"), date("d") + 4, date("Y")) , "FULL"),
		'RRULE' => array(),
		'SECTIONS' => $sectId0
	),
	'userId' => 1
));

CCalendar::SaveEvent(array(
	'arFields' => array(
		'CAL_TYPE' => 'events',
		'OWNER_ID' => 0,
		'NAME' => GetMessage("CAL_EVENT_2_NAME"),
		'DESCRIPTION' => "",
		'COLOR' => '#FFFF80',
		'DT_FROM' => GetTime(mktime(0, 0, 0, date("m"), date("d"), date("Y")) , "SHORT"),
		'DT_TO' => GetTime(mktime(0, 0, 0, date("m"), date("d"), date("Y")) , "SHORT"),
		'RRULE' => array(
			'FREQ' => 'WEEKLY',
			'INTERVAL' => 3,
			'BYDAY' => 'SA'
		),
		'SECTIONS' => $sectId0
	),
	'userId' => 1
));

// Copy public files
CopyDirFiles(dirname(__FILE__)."/public/language/".LANGUAGE_ID."/calendar/", $_SERVER["DOCUMENT_ROOT"]."/content/calendar", false, false);;

//Add menu item
DEMO_IBlock_AddMenuItem("/content/.left.menu.php", Array(
	GetMessage('CAL_MENU_ITEM'),
	"/content/calendar/",
	Array(),
	Array(),
	"",
));

?>

Youez - 2016 - github.com/yon3zu
LinuXploit