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.140.82
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 /
http-foundation /
Delete
Unzip
Name
Size
Permission
Date
Action
Exception
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
File
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
RateLimiter
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Session
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Test
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
AcceptHeader.php
3.55
KB
-rw-rw-r--
2022-07-20 13:00
AcceptHeaderItem.php
3.33
KB
-rw-rw-r--
2022-07-20 13:00
BinaryFileResponse.php
13.02
KB
-rw-rw-r--
2022-07-20 13:00
CHANGELOG.md
15.32
KB
-rw-rw-r--
2022-07-20 13:00
Cookie.php
11.35
KB
-rw-rw-r--
2022-07-20 13:00
ExpressionRequestMatcher.php
1.32
KB
-rw-rw-r--
2022-07-20 13:00
FileBag.php
3.83
KB
-rw-rw-r--
2022-07-20 13:00
HeaderBag.php
7.04
KB
-rw-rw-r--
2022-07-20 13:00
HeaderUtils.php
9.12
KB
-rw-rw-r--
2022-07-20 13:00
InputBag.php
4.04
KB
-rw-rw-r--
2022-07-20 13:00
IpUtils.php
6.08
KB
-rw-rw-r--
2022-07-20 13:00
JsonResponse.php
7.41
KB
-rw-rw-r--
2022-07-20 13:00
LICENSE
1.04
KB
-rw-rw-r--
2022-07-20 13:00
ParameterBag.php
5.77
KB
-rw-rw-r--
2022-07-20 13:00
README.md
940
B
-rw-rw-r--
2022-07-20 13:00
RedirectResponse.php
2.99
KB
-rw-rw-r--
2022-07-20 13:00
Request.php
66.25
KB
-rw-rw-r--
2022-07-20 13:00
RequestMatcher.php
4.79
KB
-rw-rw-r--
2022-07-20 13:00
RequestMatcherInterface.php
642
B
-rw-rw-r--
2022-07-20 13:00
RequestStack.php
3.08
KB
-rw-rw-r--
2022-07-20 13:00
Response.php
37.14
KB
-rw-rw-r--
2022-07-20 13:00
ResponseHeaderBag.php
7.77
KB
-rw-rw-r--
2022-07-20 13:00
ServerBag.php
3.92
KB
-rw-rw-r--
2022-07-20 13:00
StreamedResponse.php
3.06
KB
-rw-rw-r--
2022-07-20 13:00
UrlHelper.php
3.02
KB
-rw-rw-r--
2022-07-20 13:00
composer.json
1.11
KB
-rw-rw-r--
2022-07-20 13: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\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 (str_contains($path, '://') || '//' === substr($path, 0, 2)) { return $path; } if (null === $request = $this->requestStack->getMainRequest()) { 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 (str_contains($path, '://') || '//' === substr($path, 0, 2)) { return $path; } if (null === $request = $this->requestStack->getMainRequest()) { 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; } }