OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
quiz
/
backup
/
payment
/
vendor
/
rmccue
/
requests
/
src
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/15/2025 11:22:09 AM
rwxr-xr-x
📁
Auth
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
Auth.php
860 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
Autoload.php
9.12 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
Capability.php
652 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📁
Cookie
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
Cookie.php
15.03 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
Exception
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
Exception.php
1.09 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
HookManager.php
709 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
Hooks.php
2.85 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
IdnaEncoder.php
12.16 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
Ipv6.php
5.51 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
Iri.php
28.38 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
Port.php
1.47 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
Proxy
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
Proxy.php
867 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
Requests.php
33.2 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
Response
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
Response.php
4.18 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
Session.php
8.79 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
Ssl.php
5.3 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
Transport
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
Transport.php
1.51 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
Utility
-
05/19/2025 10:07:16 AM
rwxr-xr-x
Editing: Port.php
Close
<?php /** * Port utilities for Requests * * @package Requests\Utilities * @since 2.0.0 */ namespace WpOrg\Requests; use WpOrg\Requests\Exception; use WpOrg\Requests\Exception\InvalidArgument; /** * Find the correct port depending on the Request type. * * @package Requests\Utilities * @since 2.0.0 */ final class Port { /** * Port to use with Acap requests. * * @var int */ const ACAP = 674; /** * Port to use with Dictionary requests. * * @var int */ const DICT = 2628; /** * Port to use with HTTP requests. * * @var int */ const HTTP = 80; /** * Port to use with HTTP over SSL requests. * * @var int */ const HTTPS = 443; /** * Retrieve the port number to use. * * @param string $type Request type. * The following requests types are supported: * 'acap', 'dict', 'http' and 'https'. * * @return int * * @throws \WpOrg\Requests\Exception\InvalidArgument When a non-string input has been passed. * @throws \WpOrg\Requests\Exception When a non-supported port is requested ('portnotsupported'). */ public static function get($type) { if (!is_string($type)) { throw InvalidArgument::create(1, '$type', 'string', gettype($type)); } $type = strtoupper($type); if (!defined("self::{$type}")) { $message = sprintf('Invalid port type (%s) passed', $type); throw new Exception($message, 'portnotsupported'); } return constant("self::{$type}"); } }