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/main/lib/grid/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/lib/grid/context.php
<?

namespace Bitrix\Main\Grid;


/**
 * Class Context.
 * @package Bitrix\Main\Grid
 */
class Context
{
	/**
	 * @return \Bitrix\Main\HttpRequest
	 */
	protected static function getRequest()
	{
		return \Bitrix\Main\Context::getCurrent()->getRequest();
	}

	/**
	 * Checks whether the request from grid
	 * @return bool
	 */
	public static function isInternalRequest()
	{
		$request = self::getRequest();
		return (
			($request->get("internal") == true && $request->get("grid_id")) ||
			($request->getPost("internal") == true && $request->getPost("grid_id"))
		);
	}

	/**
	 * Checks that this is validate action request
	 * @return bool
	 */
	public static function isValidateRequest()
	{
		return static::isInternalRequest() &&
			self::getRequest()->get("grid_action") === "validate";
	}

	/**
	 * Checks that this is edit action request
	 *
	 * @return bool
	 */
	public static function isShowpageRequest()
	{
		return static::isInternalRequest() &&
			self::getRequest()->get("grid_action") === "showpage";
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit