GRAYBYTE WORDPRESS FILE MANAGER3576

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/universaltoursandtravels.co.in/wp-content/plugins/elementor/includes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/universaltoursandtravels.co.in/wp-content/plugins/elementor/includes//rollback.php
<?php
namespace Elementor;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Elementor rollback.
 *
 * Elementor rollback handler class is responsible for rolling back Elementor to
 * previous version.
 *
 * @since 1.5.0
 */
class Rollback {

	/**
	 * Package URL.
	 *
	 * Holds the package URL.
	 *
	 * @since 1.5.0
	 * @access protected
	 *
	 * @var string Package URL.
	 */
	protected $package_url;

	/**
	 * Version.
	 *
	 * Holds the version.
	 *
	 * @since 1.5.0
	 * @access protected
	 *
	 * @var string Package URL.
	 */
	protected $version;

	/**
	 * Plugin name.
	 *
	 * Holds the plugin name.
	 *
	 * @since 1.5.0
	 * @access protected
	 *
	 * @var string Plugin name.
	 */
	protected $plugin_name;

	/**
	 * Plugin slug.
	 *
	 * Holds the plugin slug.
	 *
	 * @since 1.5.0
	 * @access protected
	 *
	 * @var string Plugin slug.
	 */
	protected $plugin_slug;

	/**
	 * Rollback constructor.
	 *
	 * Initializing Elementor rollback.
	 *
	 * @since 1.5.0
	 * @access public
	 *
	 * @param array $args Optional. Rollback arguments. Default is an empty array.
	 */
	public function __construct( $args = [] ) {
		foreach ( $args as $key => $value ) {
			$this->{$key} = $value;
		}
	}

	/**
	 * Print inline style.
	 *
	 * Add an inline CSS to the rollback page.
	 *
	 * @since 1.5.0
	 * @access private
	 */
	private function print_inline_style() {
		?>
		<style>
			.wrap {
				overflow: hidden;
				max-width: 850px;
				margin: auto;
				font-family: Courier, monospace;
			}

			h1 {
				background: #D30C5C;
				text-align: center;
				color: #fff !important;
				padding: 70px !important;
				text-transform: uppercase;
				letter-spacing: 1px;
			}

			h1 img {
				max-width: 300px;
				display: block;
				margin: auto auto 50px;
			}
		</style>
		<?php
	}

	/**
	 * Apply package.
	 *
	 * Change the plugin data when WordPress checks for updates. This method
	 * modifies package data to update the plugin from a specific URL containing
	 * the version package.
	 *
	 * @since 1.5.0
	 * @access protected
	 */
	protected function apply_package() {
		$update_plugins = get_site_transient( 'update_plugins' );
		if ( ! is_object( $update_plugins ) ) {
			$update_plugins = new \stdClass();
		}

		$plugin_info = new \stdClass();
		$plugin_info->new_version = $this->version;
		$plugin_info->slug = $this->plugin_slug;
		$plugin_info->package = $this->package_url;
		$plugin_info->url = 'https://elementor.com/';

		$update_plugins->response[ $this->plugin_name ] = $plugin_info;

		// Remove handle beta testers.
		remove_filter( 'pre_set_site_transient_update_plugins', [ Plugin::instance()->beta_testers, 'check_version' ] );

		set_site_transient( 'update_plugins', $update_plugins );
	}

	/**
	 * Upgrade.
	 *
	 * Run WordPress upgrade to rollback Elementor to previous version.
	 *
	 * @since 1.5.0
	 * @access protected
	 */
	protected function upgrade() {
		require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

		$logo_url = ELEMENTOR_ASSETS_URL . 'images/logo-panel.svg';

		$upgrader_args = [
			'url' => 'update.php?action=upgrade-plugin&plugin=' . rawurlencode( $this->plugin_name ),
			'plugin' => $this->plugin_name,
			'nonce' => 'upgrade-plugin_' . $this->plugin_name,
			'title' => '<img src="' . $logo_url . '" alt="Elementor">' . esc_html__( 'Rollback to Previous Version', 'elementor' ),
		];

		$this->print_inline_style();

		$upgrader = new \Plugin_Upgrader( new \Plugin_Upgrader_Skin( $upgrader_args ) );
		$upgrader->upgrade( $this->plugin_name );
	}

	/**
	 * Run.
	 *
	 * Rollback Elementor to previous versions.
	 *
	 * @since 1.5.0
	 * @access public
	 */
	public function run() {
		$this->apply_package();
		$this->upgrade();
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
admin-templates
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
base
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
container
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
controls
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
editor-templates
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
elements
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
interfaces
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
libraries
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
managers
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
settings
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
template-library
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
widgets
--
July 10 2025 08:35:51
giriqfky / giriqfky
0755
api.php
7.29 KB
January 20 2025 19:15:08
giriqfky / giriqfky
0644
autoloader.php
9.492 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
beta-testers.php
2.987 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
compatibility.php
10.958 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
conditions.php
2.703 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
db.php
15.563 KB
April 28 2025 11:15:16
giriqfky / giriqfky
0644
editor-assets-api.php
1.765 KB
December 10 2024 19:19:32
giriqfky / giriqfky
0644
embed.php
8.476 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
fonts.php
62.528 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
frontend.php
38.156 KB
June 10 2025 13:36:30
giriqfky / giriqfky
0644
heartbeat.php
2.573 KB
April 23 2023 15:22:46
giriqfky / giriqfky
0644
maintenance-mode.php
11.129 KB
February 29 2024 16:51:58
giriqfky / giriqfky
0644
maintenance.php
2.813 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
plugin.php
16.669 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
preview.php
7.624 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
rollback.php
3.632 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
shapes.php
6.408 KB
June 24 2024 16:01:30
giriqfky / giriqfky
0644
stylesheet.php
8.909 KB
August 25 2024 17:59:38
giriqfky / giriqfky
0644
tracker.php
16.846 KB
July 07 2025 16:02:28
giriqfky / giriqfky
0644
user.php
10 KB
March 17 2025 17:28:54
giriqfky / giriqfky
0644
utils.php
23.478 KB
May 28 2025 13:48:50
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF