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/config/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

namespace Bitrix\Main\Config;

class Ini
{
	public static function getBool(string $param): bool
	{
		$val = ini_get($param);
		return ($val == '1' || strtolower($val) == 'on');
	}

	public static function getInt(string $param): int
	{
		$val = ini_get($param);
		return static::unformatInt($val);
	}

	public static function unformatInt(string $str): int
	{
		$str = strtolower($str);
		$res = intval($str);

		$suffix = substr($str, -1);
		if ($suffix == "k")
		{
			$res *= 1024;
		}
		elseif ($suffix == "m")
		{
			$res *= 1048576;
		}
		elseif ($suffix == "g")
		{
			$res *= 1048576*1024;
		}
		elseif ($suffix == "b")
		{
			$res = self::unformatInt(substr($str, 0, -1));
		}

		return $res;
	}

	public static function adjustPcreBacktrackLimit(int $val): void
	{
		if ($val > 0)
		{
			$pcreBacktrackLimit = self::getInt('pcre.backtrack_limit');
			if ($pcreBacktrackLimit < $val)
			{
				@ini_set('pcre.backtrack_limit', $val);
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit