__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

[email protected]: ~ $
<?php
namespace Elementor\Includes;

class EditorAssetsAPI {
	protected array $config;

	const ASSETS_DATA_TRANSIENT_KEY = 'ASSETS_DATA_TRANSIENT_KEY';

	const ASSETS_DATA_URL = 'ASSETS_DATA_URL';

	const ASSETS_DATA_KEY = 'ASSETS_DATA_KEY';

	public function __construct( array $config ) {
		$this->config = $config;
	}

	public function config( $key ): string {
		return $this->config[ $key ] ?? '';
	}

	public function get_assets_data( $force_request = false ): array {
		$assets_data = $this->get_transient( $this->config( static::ASSETS_DATA_TRANSIENT_KEY ) );

		if ( $force_request || false === $assets_data ) {
			$assets_data = $this->fetch_data();
			$this->set_transient( $this->config( static::ASSETS_DATA_TRANSIENT_KEY ), $assets_data, '+1 hour' );
		}

		return $assets_data;
	}

	private function fetch_data(): array {
		$response = wp_remote_get( $this->config( static::ASSETS_DATA_URL ) );

		if ( is_wp_error( $response ) ) {
			return [];
		}

		$data = json_decode( wp_remote_retrieve_body( $response ), true );

		if ( empty( $data[ $this->config( static::ASSETS_DATA_KEY ) ] ) || ! is_array( $data[ $this->config( static::ASSETS_DATA_KEY ) ] ) ) {
			return [];
		}

		return $data[ $this->config( static::ASSETS_DATA_KEY ) ];
	}

	private function get_transient( $cache_key ) {
		$cache = get_option( $cache_key );

		if ( empty( $cache['timeout'] ) ) {
			return false;
		}

		if ( current_time( 'timestamp' ) > $cache['timeout'] ) {
			return false;
		}

		return json_decode( $cache['value'], true );
	}

	private function set_transient( $cache_key, $value, $expiration = '+12 hours' ): bool {
		$data = [
			'timeout' => strtotime( $expiration, current_time( 'timestamp' ) ),
			'value' => wp_json_encode( $value ),
		];

		return update_option( $cache_key, $data, false );
	}
}

Filemanager

Name Type Size Permission Actions
admin-templates Folder 0750
base Folder 0750
controls Folder 0750
editor-templates Folder 0750
elements Folder 0750
interfaces Folder 0750
libraries Folder 0750
managers Folder 0750
settings Folder 0750
template-library Folder 0750
widgets Folder 0750
api.php File 8.61 KB 0640
autoloader.php File 9.79 KB 0640
beta-testers.php File 2.99 KB 0640
compatibility.php File 10.96 KB 0640
conditions.php File 2.7 KB 0640
db.php File 15.56 KB 0640
editor-assets-api.php File 1.76 KB 0640
embed.php File 8.48 KB 0640
fonts.php File 62.53 KB 0640
frontend.php File 38.42 KB 0640
heartbeat.php File 2.57 KB 0640
maintenance-mode.php File 11.16 KB 0640
maintenance.php File 2.81 KB 0640
plugin.php File 15.6 KB 0640
preview.php File 7.69 KB 0640
rollback.php File 3.63 KB 0640
shapes.php File 7.81 KB 0640
stylesheet.php File 8.91 KB 0640
tracker.php File 17 KB 0640
user-data.php File 3.44 KB 0640
user.php File 11.08 KB 0640
utils.php File 23.92 KB 0640
Filemanager