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/landing/lib/assets/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/landing/lib/assets/location.php
<?php

namespace Bitrix\Landing\Assets;

class Location
{
	public const LOCATION_BEFORE_ALL = 1;    // before all (critical). 1 to not equal with empty values (e.g. (int)null)
	public const LOCATION_KERNEL = 50;        // first
	public const LOCATION_TEMPLATE = 100;    // DEFAULT place
	public const LOCATION_AFTER_TEMPLATE = 150;    // last

	/**
	 * Return default location
	 * @return string
	 */
	public static function getDefaultLocation(): string
	{
		return self::LOCATION_TEMPLATE;
	}

	/**
	 * Available locations for assets adding
	 *
	 * @return array
	 */
	public static function getAllLocations(): array
	{
		return [
			self::LOCATION_BEFORE_ALL,
			self::LOCATION_KERNEL,
			self::LOCATION_TEMPLATE,
			self::LOCATION_AFTER_TEMPLATE,
		];
	}


	/**
	 * Check correctly location number
	 *
	 * @param mixed $location	- location to verify
	 * @return int
	 */
	public static function verifyLocation($location): int
	{
		if (
			!isset($location)
			|| !in_array($location, self::getAllLocations(), true)
		)
		{
			return self::getDefaultLocation();
		}

		return $location;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit