GRAYBYTE WORDPRESS FILE MANAGER8404

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 : /usr/src/litespeed-wp-plugin/6.4.1/litespeed-cache/thirdparty/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/src/litespeed-wp-plugin/6.4.1/litespeed-cache/thirdparty//litespeed-check.cls.php
<?php

/**
 * Check if any plugins that could conflict with LiteSpeed Cache are active.
 * @since		4.7
 */

namespace LiteSpeed\Thirdparty;

defined('WPINC') || exit();

class LiteSpeed_Check
{
	public static $_incompatible_plugins = array(
		// 'autoptimize/autoptimize.php',
		'breeze/breeze.php',
		'cache-enabler/cache-enabler.php',
		'cachify/cachify.php',
		'cloudflare/cloudflare.php',
		'comet-cache/comet-cache.php',
		'docket-cache/docket-cache.php',
		'fast-velocity-minify/fvm.php',
		'hummingbird-performance/wp-hummingbird.php',
		'nginx-cache/nginx-cache.php',
		'nitropack/main.php',
		'pantheon-advanced-page-cache/pantheon-advanced-page-cache.php',
		'powered-cache/powered-cache.php',
		'psn-pagespeed-ninja/pagespeedninja.php',
		'sg-cachepress/sg-cachepress.php',
		'simple-cache/simple-cache.php',
		// 'redis-cache/redis-cache.php',
		'w3-total-cache/w3-total-cache.php',
		'wp-cloudflare-page-cache/wp-cloudflare-page-cache.php',
		'wp-fastest-cache/wpFastestCache.php',
		'wp-meteor/wp-meteor.php',
		'wp-optimize/wp-optimize.php',
		'wp-performance-score-booster/wp-performance-score-booster.php',
		'wp-rocket/wp-rocket.php',
		'wp-super-cache/wp-cache.php',
	);

	private static $_option = 'thirdparty_litespeed_check';
	private static $_msg_id = 'id="lscwp-incompatible-plugin-notice"';

	public static function detect()
	{
		if (!is_admin()) {
			return;
		}

		/**
		 * Check for incompatible plugins when `litespeed-cache` is first activated.
		 */
		$plugin = basename(LSCWP_DIR) . '/litespeed-cache.php';
		register_deactivation_hook($plugin, function ($_network_wide) {
			\LiteSpeed\Admin_Display::delete_option(self::$_option);
		});
		if (!\LiteSpeed\Admin_Display::get_option(self::$_option)) {
			self::activated_plugin($plugin, null);
			\LiteSpeed\Admin_Display::add_option(self::$_option, true);
		}

		/**
		 * Check for incompatible plugins when any plugin is (de)activated.
		 */
		add_action('activated_plugin', __CLASS__ . '::activated_plugin', 10, 2);
		add_action('deactivated_plugin', __CLASS__ . '::deactivated_plugin', 10, 2);

		if (class_exists('PagespeedNinja')) {
			\LiteSpeed\Admin_Display::error(
				'<div ' .
					self::$_msg_id .
					'>' .
					esc_html__('Please consider disabling the following detected plugins, as they may conflict with LiteSpeed Cache:', 'litespeed-cache') .
					'<p style="color: red; font-weight: 700;">' .
					'PageSpeed Ninja' .
					'</p>' .
					'</div>',
				false,
				true
			);
		}
	}

	public static function activated_plugin($plugin, $network_wide)
	{
		self::incompatible_plugin_notice($plugin, $network_wide, 'activated');
	}

	public static function deactivated_plugin($plugin, $network_wide)
	{
		self::incompatible_plugin_notice($plugin, $network_wide, 'deactivated');
	}

	/**
	 * Detect any incompatible plugins that are currently `active` and `valid`.
	 * Show a notification if there are any.
	 */
	public static function incompatible_plugin_notice($plugin, $_network_wide, $action)
	{
		self::update_messages();

		/**
		 * The 'deactivated_plugin' action fires before
		 * `wp_get_active_and_valid_plugins` can see the change, so we'll need to
		 * remove `$plugin` from the list.
		 */
		$deactivated = 'deactivated' === $action ? array($plugin) : array();

		$incompatible_plugins = array_map(function ($plugin) {
			return WP_PLUGIN_DIR . '/' . $plugin;
		}, array_diff(self::$_incompatible_plugins, $deactivated));

		$active_incompatible_plugins = array_map(function ($plugin) {
			$plugin = get_plugin_data($plugin, false, true);
			return $plugin['Name'];
		}, array_intersect($incompatible_plugins, wp_get_active_and_valid_plugins()));

		if (empty($active_incompatible_plugins)) {
			return;
		}

		\LiteSpeed\Admin_Display::error(
			'<div ' .
				self::$_msg_id .
				'>' .
				esc_html__('Please consider disabling the following detected plugins, as they may conflict with LiteSpeed Cache:', 'litespeed-cache') .
				'<p style="color: red; font-weight: 700;">' .
				implode(', ', $active_incompatible_plugins) .
				'</p>' .
				'</div>',
			false,
			true
		);
	}

	/**
	 * Prevent multiple incompatible plugin notices, in case an admin (de)activates
	 * a number of incompatible plugins in succession without dismissing the
	 * notice(s).
	 */
	private static function update_messages()
	{
		$messages = \LiteSpeed\Admin_Display::get_option(\LiteSpeed\Admin_Display::DB_MSG_PIN, array());
		if (is_array($messages)) {
			foreach ($messages as $index => $message) {
				if (strpos($message, self::$_msg_id) !== false) {
					unset($messages[$index]);
					if (!$messages) {
						$messages = -1;
					}
					\LiteSpeed\Admin_Display::update_option(\LiteSpeed\Admin_Display::DB_MSG_PIN, $messages);
					break;
				}
			}
		}
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
August 19 2024 22:55:08
root / root
0755
aelia-currencyswitcher.cls.php
1.785 KB
August 19 2024 22:55:08
root / root
0644
amp.cls.php
1.875 KB
August 19 2024 22:55:08
root / root
0644
autoptimize.cls.php
0.713 KB
August 19 2024 22:55:08
root / root
0644
avada.cls.php
0.632 KB
August 19 2024 22:55:08
root / root
0644
bbpress.cls.php
2.321 KB
August 19 2024 22:55:08
root / root
0644
beaver-builder.cls.php
0.911 KB
August 19 2024 22:55:08
root / root
0644
caldera-forms.cls.php
0.394 KB
August 19 2024 22:55:08
root / root
0644
divi-theme-builder.cls.php
2.2 KB
August 19 2024 22:55:08
root / root
0644
elementor.cls.php
1.336 KB
August 19 2024 22:55:08
root / root
0644
entry.inc.php
1.463 KB
August 19 2024 22:55:08
root / root
0644
facetwp.cls.php
0.669 KB
August 19 2024 22:55:08
root / root
0644
gravity-forms.cls.php
0.513 KB
August 19 2024 22:55:08
root / root
0644
litespeed-check.cls.php
4.644 KB
August 19 2024 22:55:08
root / root
0644
nextgengallery.cls.php
6.151 KB
August 19 2024 22:55:08
root / root
0644
perfmatters.cls.php
0.644 KB
August 19 2024 22:55:08
root / root
0644
theme-my-login.cls.php
0.854 KB
August 19 2024 22:55:08
root / root
0644
user-switching.cls.php
0.497 KB
August 19 2024 22:55:08
root / root
0644
wc-pdf-product-vouchers.cls.php
0.63 KB
August 19 2024 22:55:08
root / root
0644
wcml.cls.php
0.91 KB
August 19 2024 22:55:08
root / root
0644
woo-paypal.cls.php
0.58 KB
August 19 2024 22:55:08
root / root
0644
woocommerce.cls.php
23.78 KB
August 19 2024 22:55:08
root / root
0644
woocommerce.content.tpl.php
3.447 KB
August 19 2024 22:55:08
root / root
0644
woocommerce.tab.tpl.php
0.18 KB
August 19 2024 22:55:08
root / root
0644
wp-polls.cls.php
0.469 KB
August 19 2024 22:55:08
root / root
0644
wp-postratings.cls.php
0.592 KB
August 19 2024 22:55:08
root / root
0644
wpdiscuz.cls.php
0.774 KB
August 19 2024 22:55:08
root / root
0644
wplister.cls.php
0.673 KB
August 19 2024 22:55:08
root / root
0644
wpml.cls.php
0.612 KB
August 19 2024 22:55:08
root / root
0644
wptouch.cls.php
0.688 KB
August 19 2024 22:55:08
root / root
0644
yith-wishlist.cls.php
4.317 KB
August 19 2024 22:55:08
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF