Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.15.147.225
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
vendor /
phar-io /
version /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
constraints
[ DIR ]
drwxr-xr-x
2018-07-08 19:19
exceptions
[ DIR ]
drwxr-xr-x
2018-07-08 19:19
PreReleaseSuffix.php
1.85
KB
-rw-r--r--
2018-07-08 19:19
Version.php
4.09
KB
-rw-r--r--
2018-07-08 19:19
VersionConstraintParser.php
3.41
KB
-rw-r--r--
2018-07-08 19:19
VersionConstraintValue.php
2.51
KB
-rw-r--r--
2018-07-08 19:19
VersionNumber.php
802
B
-rw-r--r--
2018-07-08 19:19
Save
Rename
<?php namespace PharIo\Version; class PreReleaseSuffix { private $valueScoreMap = [ 'dev' => 0, 'a' => 1, 'alpha' => 1, 'b' => 2, 'beta' => 2, 'rc' => 3, 'p' => 4, 'patch' => 4, ]; /** * @var string */ private $value; /** * @var int */ private $valueScore; /** * @var int */ private $number = 0; /** * @param string $value */ public function __construct($value) { $this->parseValue($value); } /** * @return string */ public function getValue() { return $this->value; } /** * @return int|null */ public function getNumber() { return $this->number; } /** * @param PreReleaseSuffix $suffix * * @return bool */ public function isGreaterThan(PreReleaseSuffix $suffix) { if ($this->valueScore > $suffix->valueScore) { return true; } if ($this->valueScore < $suffix->valueScore) { return false; } return $this->getNumber() > $suffix->getNumber(); } /** * @param $value * * @return int */ private function mapValueToScore($value) { if (array_key_exists($value, $this->valueScoreMap)) { return $this->valueScoreMap[$value]; } return 0; } private function parseValue($value) { $regex = '/-?(dev|beta|b|rc|alpha|a|patch|p)\.?(\d*).*$/i'; if (preg_match($regex, $value, $matches) !== 1) { throw new InvalidPreReleaseSuffixException(sprintf('Invalid label %s', $value)); } $this->value = $matches[1]; if (isset($matches[2])) { $this->number = (int)$matches[2]; } $this->valueScore = $this->mapValueToScore($this->value); } }