✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/elementor/includes//editor-assets-api.php
<?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';

	const ASSETS_DATA_EXPIRATION = 'ASSETS_DATA_EXPIRATION';

	const DEFAULT_EXPIRATION_TIME = '+1 hour';

	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 ) {
			$fresh_data = $this->fetch_data();

			if ( empty( $fresh_data ) ) {
				return ! empty( $assets_data ) ? $assets_data : [];
			}

			$assets_data = $fresh_data;
			$this->set_transient( $this->config( static::ASSETS_DATA_TRANSIENT_KEY ), $assets_data, $this->get_expiration_time() );
		}

		return $assets_data;
	}

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

		if ( is_wp_error( $response ) || \WP_Http::OK !== (int) wp_remote_retrieve_response_code( $response ) ) {
			return [];
		}

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

		if ( ! $this->has_valid_data( $data ) ) {
			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 ): bool {
		$data = [
			'timeout' => strtotime( $expiration, current_time( 'timestamp' ) ),
			'value' => wp_json_encode( $value ),
		];

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

	private function get_expiration_time(): string {
		$expiration = $this->config( static::ASSETS_DATA_EXPIRATION );
		return $expiration ? $expiration : static::DEFAULT_EXPIRATION_TIME;
	}

	private function has_valid_data( $data ): bool {
		if ( ! is_array( $data ) ) {
			return false;
		}

		$key = $this->config( static::ASSETS_DATA_KEY );
		return static::is_non_empty_array( $data[ $key ] ?? null );
	}

	public static function has_valid_nested_array( $data, array $nested_array_path ): bool {
		$current = $data;

		foreach ( $nested_array_path as $nested_key ) {
			if ( ! is_array( $current ) || ! array_key_exists( $nested_key, $current ) ) {
				return false;
			}
			$current = $current[ $nested_key ];
		}

		if ( ! static::is_non_empty_array( $current ) ) {
			return false;
		}

		return true;
	}

	public static function is_valid_data( $data ): bool {
		return static::is_non_empty_array( $data );
	}

	private static function is_non_empty_array( $value ): bool {
		return is_array( $value ) && ! empty( $value );
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
admin-templates
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
base
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
controls
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
editor-templates
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
elements
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
interfaces
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
libraries
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
managers
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
settings
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
template-library
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
widgets
--
9 Jun 2026 8.37 AM
builxejc / builxejc
0755
api.php
8.67 KB
20 May 2026 4.19 PM
builxejc / builxejc
0644
autoloader.php
9.787 KB
21 Oct 2025 4.51 PM
builxejc / builxejc
0644
beta-testers.php
2.987 KB
23 Apr 2023 3.22 PM
builxejc / builxejc
0644
compatibility.php
10.958 KB
17 Mar 2025 5.28 PM
builxejc / builxejc
0644
conditions.php
2.703 KB
23 Apr 2023 3.22 PM
builxejc / builxejc
0644
db.php
15.895 KB
2 Feb 2026 2.52 PM
builxejc / builxejc
0644
editor-assets-api.php
2.982 KB
30 Mar 2026 1.49 PM
builxejc / builxejc
0644
embed.php
8.476 KB
17 Mar 2025 5.28 PM
builxejc / builxejc
0644
fonts.php
62.528 KB
17 Mar 2025 5.28 PM
builxejc / builxejc
0644
frontend.php
40.028 KB
20 Apr 2026 3.03 PM
builxejc / builxejc
0644
heartbeat.php
2.573 KB
23 Apr 2023 3.22 PM
builxejc / builxejc
0644
maintenance-mode.php
11.158 KB
21 Oct 2025 4.51 PM
builxejc / builxejc
0644
maintenance.php
2.813 KB
17 Mar 2025 5.28 PM
builxejc / builxejc
0644
plugin.php
16.682 KB
26 May 2026 12.54 PM
builxejc / builxejc
0644
preview.php
7.926 KB
20 May 2026 4.19 PM
builxejc / builxejc
0644
rollback.php
4.155 KB
20 Jan 2026 1.22 PM
builxejc / builxejc
0644
shapes.php
7.812 KB
5 Aug 2025 6.00 PM
builxejc / builxejc
0644
stylesheet.php
8.91 KB
15 Sep 2025 2.10 PM
builxejc / builxejc
0644
tracker.php
16.999 KB
10 Nov 2025 4.25 PM
builxejc / builxejc
0644
user-data.php
3.439 KB
21 Oct 2025 4.51 PM
builxejc / builxejc
0644
user.php
9.99 KB
4 Dec 2025 10.09 PM
builxejc / builxejc
0644
utils.php
24.877 KB
20 May 2026 4.19 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF