??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/pgtankstorage.sg/wp-includes/Requests/src/Port.php
⬅ Kembali
<?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}");
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 Auth
dir
—
2026-05-29 22:23
📁 Cookie
dir
—
2025-05-16 13:14
📁 Exception
dir
—
2026-05-29 22:22
📁 Proxy
dir
—
2026-05-29 22:23
📁 Response
dir
—
2026-05-29 22:23
📁 Transport
dir
—
2026-05-29 22:23
📁 Utility
dir
—
2025-05-16 13:14
🐘 Auth.php
php
860 B
2022-12-16 02:32
🐘 Autoload.php
php
9.1 KB
2023-04-05 17:12
🐘 Capability.php
php
652 B
2023-04-05 17:12
🐘 Cookie.php
php
15 KB
2024-03-25 16:23
🐘 Exception.php
php
1.1 KB
2022-12-16 02:32
🐘 HookManager.php
php
709 B
2022-12-16 02:32
🐘 Hooks.php
php
3 KB
2023-10-12 16:34
🐘 IdnaEncoder.php
php
12.2 KB
2026-05-21 01:19
🐘 Ipv6.php
php
5.5 KB
2026-05-21 01:19
🐘 Iri.php
php
29 KB
2026-05-21 01:19
🐘 Port.php
php
1.5 KB
2022-12-16 02:32
🐘 Proxy.php
php
867 B
2022-12-16 02:32
🐘 Requests.php
php
33.2 KB
2026-05-21 01:19
🐘 Response.php
php
4.2 KB
2023-04-05 17:12
🐘 Session.php
php
8.9 KB
2023-10-12 16:34
🐘 Ssl.php
php
5.3 KB
2022-12-16 02:32
🐘 Transport.php
php
1.5 KB
2022-12-16 02:32
📄 error_log
file
2 KB
2026-06-25 08:38