File manager - Edit - /var/www/payraty/helpdesk/vendor/itsgoingd/clockwork/Clockwork/Request/IncomingRequest.php
Back
<?php namespace Clockwork\Request; // Incoming HTTP request class IncomingRequest { // Method public $method; // URI public $uri; // GET and POST data public $input = []; // Cookies public $cookies = []; // Host public $host; public function __construct(array $data = []) { foreach ($data as $key => $val) $this->$key = $val; } // Returns true, if HTTP host is one of the common domains used for local development public function hasLocalHost() { $segments = explode('.', $this->host); $tld = $segments[count($segments) - 1]; return $this->host == '127.0.0.1' || in_array($tld, [ 'localhost', 'local', 'test', 'wip' ]); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings