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/modules/calendar/lib/access/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/calendar/lib/access/actiondictionary.php
<?php

namespace Bitrix\Calendar\Access;

class ActionDictionary
{
	public const
		ACTION_SECTION_ACCESS = 'section_access',
		ACTION_SECTION_EDIT = 'section_edit',
		ACTION_SECTION_ADD = 'section_add',
		ACTION_SECTION_EVENT_VIEW_FULL = 'section_event_view_full',
		ACTION_SECTION_EVENT_VIEW_COMMENTS = 'section_event_view_comments',
		ACTION_SECTION_EVENT_VIEW_TIME = 'section_event_view_time',
		ACTION_SECTION_EVENT_VIEW_TITLE = 'section_event_view_title',

		ACTION_EVENT_ADD = 'event_add',
		ACTION_EVENT_EDIT = 'event_edit',
		ACTION_EVENT_DELETE = 'event_delete',
		ACTION_EVENT_VIEW_FULL = 'event_view_full',
		ACTION_EVENT_VIEW_COMMENTS = 'event_view_comments',
		ACTION_EVENT_VIEW_TIME = 'event_view_time',
		ACTION_EVENT_VIEW_TITLE = 'event_view_title',
		ACTION_EVENT_EDIT_ATTENDEES = 'event_edit_attendees',
		ACTION_EVENT_EDIT_LOCATION = 'event_edit_location',

		ACTION_TYPE_ACCESS = 'type_access',
		ACTION_TYPE_EDIT = 'type_edit',
		ACTION_TYPE_VIEW = 'type_view';

	public const ACTION_OPEN_EVENT_ATTEND = 'open_event_attend';
	public const ACTION_EVENT_CATEGORY_ADD = 'event_category_add';
	public const ACTION_EVENT_CATEGORY_EDIT = 'event_category_edit';
	public const ACTION_EVENT_CATEGORY_DELETE = 'event_category_delete';
	public const ACTION_EVENT_CATEGORY_VIEW = 'event_category_view';
	public const ACTION_EVENT_CATEGORY_POST = 'event_category_post';

	public const ACTION_SYNC_DELETE = 'sync_delete';

	public static function getOldActionKeysMap(): array
	{
		return [
			self::ACTION_SECTION_ACCESS => \CCalendarSect::OPERATION_EDIT_ACCESS,
			self::ACTION_SECTION_EDIT => \CCalendarSect::OPERATION_EDIT_SECTION,

			self::ACTION_EVENT_ADD => \CCalendarSect::OPERATION_ADD,
			self::ACTION_EVENT_EDIT => \CCalendarSect::OPERATION_EDIT,
			self::ACTION_SECTION_EVENT_VIEW_FULL => \CCalendarSect::OPERATION_VIEW_FULL,
			self::ACTION_SECTION_EVENT_VIEW_TIME => \CCalendarSect::OPERATION_VIEW_TIME,
			self::ACTION_SECTION_EVENT_VIEW_TITLE => \CCalendarSect::OPERATION_VIEW_TITLE,

			self::ACTION_TYPE_ACCESS => \CCalendarType::OPERATION_EDIT_ACCESS,
			self::ACTION_TYPE_EDIT => \CCalendarType::OPERATION_EDIT,
			self::ACTION_TYPE_VIEW => \CCalendarType::OPERATION_VIEW,
		];
	}

	public static function getOldActionKeyByNewActionKey(string $actionId)
	{
		$actionMap = self::getOldActionKeysMap();
		if (array_key_exists($actionId, $actionMap))
		{
			return $actionMap[$actionId];
		}
		return null;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit