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 : 18.117.106.206
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
1 /
vendor /
symfony /
http-foundation /
Delete
Unzip
Name
Size
Permission
Date
Action
Exception
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
File
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Session
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
Test
[ DIR ]
drwxr-xr-x
2020-11-17 16:24
AcceptHeader.php
3.55
KB
-rw-r--r--
2020-11-17 16:24
AcceptHeaderItem.php
3.36
KB
-rw-r--r--
2020-11-17 16:24
BinaryFileResponse.php
12
KB
-rw-r--r--
2020-11-17 16:24
CHANGELOG.md
13.59
KB
-rw-r--r--
2020-11-17 16:24
Cookie.php
10.97
KB
-rw-r--r--
2020-11-17 16:24
ExpressionRequestMatcher.php
1.32
KB
-rw-r--r--
2020-11-17 16:24
FileBag.php
3.86
KB
-rw-r--r--
2020-11-17 16:24
HeaderBag.php
7.23
KB
-rw-r--r--
2020-11-17 16:24
HeaderUtils.php
7.15
KB
-rw-r--r--
2020-11-17 16:24
InputBag.php
3.5
KB
-rw-r--r--
2020-11-17 16:24
IpUtils.php
5.45
KB
-rw-r--r--
2020-11-17 16:24
JsonResponse.php
7.17
KB
-rw-r--r--
2020-11-17 16:24
LICENSE
1.04
KB
-rw-r--r--
2020-11-17 16:24
ParameterBag.php
5.39
KB
-rw-r--r--
2020-11-17 16:24
README.md
531
B
-rw-r--r--
2020-11-17 16:24
RedirectResponse.php
3.01
KB
-rw-r--r--
2020-11-17 16:24
Request.php
64.34
KB
-rw-r--r--
2020-11-17 16:24
RequestMatcher.php
4.48
KB
-rw-r--r--
2020-11-17 16:24
RequestMatcherInterface.php
687
B
-rw-r--r--
2020-11-17 16:24
RequestStack.php
2.31
KB
-rw-r--r--
2020-11-17 16:24
Response.php
35.98
KB
-rw-r--r--
2020-11-17 16:24
ResponseHeaderBag.php
7.82
KB
-rw-r--r--
2020-11-17 16:24
ServerBag.php
3.95
KB
-rw-r--r--
2020-11-17 16:24
StreamedResponse.php
3.07
KB
-rw-r--r--
2020-11-17 16:24
UrlHelper.php
3.03
KB
-rw-r--r--
2020-11-17 16:24
composer.json
1.07
KB
-rw-r--r--
2020-11-17 16:24
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\HttpFoundation; use Symfony\Component\Routing\RequestContext; /** * A helper service for manipulating URLs within and outside the request scope. * * @author Valentin Udaltsov <udaltsov.valentin@gmail.com> */ final class UrlHelper { private $requestStack; private $requestContext; public function __construct(RequestStack $requestStack, RequestContext $requestContext = null) { $this->requestStack = $requestStack; $this->requestContext = $requestContext; } public function getAbsoluteUrl(string $path): string { if (false !== strpos($path, '://') || '//' === substr($path, 0, 2)) { return $path; } if (null === $request = $this->requestStack->getMasterRequest()) { return $this->getAbsoluteUrlFromContext($path); } if ('#' === $path[0]) { $path = $request->getRequestUri().$path; } elseif ('?' === $path[0]) { $path = $request->getPathInfo().$path; } if (!$path || '/' !== $path[0]) { $prefix = $request->getPathInfo(); $last = \strlen($prefix) - 1; if ($last !== $pos = strrpos($prefix, '/')) { $prefix = substr($prefix, 0, $pos).'/'; } return $request->getUriForPath($prefix.$path); } return $request->getSchemeAndHttpHost().$path; } public function getRelativePath(string $path): string { if (false !== strpos($path, '://') || '//' === substr($path, 0, 2)) { return $path; } if (null === $request = $this->requestStack->getMasterRequest()) { return $path; } return $request->getRelativeUriForPath($path); } private function getAbsoluteUrlFromContext(string $path): string { if (null === $this->requestContext || '' === $host = $this->requestContext->getHost()) { return $path; } $scheme = $this->requestContext->getScheme(); $port = ''; if ('http' === $scheme && 80 !== $this->requestContext->getHttpPort()) { $port = ':'.$this->requestContext->getHttpPort(); } elseif ('https' === $scheme && 443 !== $this->requestContext->getHttpsPort()) { $port = ':'.$this->requestContext->getHttpsPort(); } if ('#' === $path[0]) { $queryString = $this->requestContext->getQueryString(); $path = $this->requestContext->getPathInfo().($queryString ? '?'.$queryString : '').$path; } elseif ('?' === $path[0]) { $path = $this->requestContext->getPathInfo().$path; } if ('/' !== $path[0]) { $path = rtrim($this->requestContext->getBaseUrl(), '/').'/'.$path; } return $scheme.'://'.$host.$port.$path; } }