$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.216.209
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/Utility/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/Utility/DisabledItems.php
<?php
/**
 * Cached disabled items lookup.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client\Utility;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Parses HP_DISABLE_* constants once and caches the result.
 */
final class DisabledItems {

	/**
	 * Cached disabled plugins.
	 *
	 * @var array<int, string>|null
	 */
	private static ?array $plugins = null;

	/**
	 * Cached disabled themes.
	 *
	 * @var array<int, string>|null
	 */
	private static ?array $themes = null;

	/**
	 * Cached disabled modules.
	 *
	 * @var array<int, string>|null
	 */
	private static ?array $modules = null;

	/**
	 * Get disabled plugin directory names.
	 *
	 * @return array<int, string>
	 */
	public static function plugins(): array {
		if ( null === self::$plugins ) {
			self::$plugins = defined( 'HP_DISABLE_PLUGINS' )
				? array_filter( array_map( 'trim', explode( ',', HP_DISABLE_PLUGINS ) ) )
				: array();
		}

		return self::$plugins;
	}

	/**
	 * Get disabled theme slugs.
	 *
	 * @return array<int, string>
	 */
	public static function themes(): array {
		if ( null === self::$themes ) {
			self::$themes = defined( 'HP_DISABLE_THEMES' )
				? array_filter( array_map( 'trim', explode( ',', HP_DISABLE_THEMES ) ) )
				: array();
		}

		return self::$themes;
	}

	/**
	 * Get disabled module IDs.
	 *
	 * @return array<int, string>
	 */
	public static function modules(): array {
		if ( null === self::$modules ) {
			self::$modules = defined( 'HP_DISABLE_MODULES' )
				? array_filter( array_map( 'trim', explode( ',', HP_DISABLE_MODULES ) ) )
				: array();
		}

		return self::$modules;
	}

	/**
	 * Check if a plugin directory is disabled.
	 *
	 * @param string $plugin_dir Plugin directory name.
	 * @return bool
	 */
	public static function is_plugin_disabled( string $plugin_dir ): bool {
		return in_array( $plugin_dir, self::plugins(), true );
	}

	/**
	 * Check if a theme slug is disabled.
	 *
	 * @param string $slug Theme slug.
	 * @return bool
	 */
	public static function is_theme_disabled( string $slug ): bool {
		return in_array( $slug, self::themes(), true );
	}

	/**
	 * Check if a module ID is disabled.
	 *
	 * @param string $module_id Module ID.
	 * @return bool
	 */
	public static function is_module_disabled( string $module_id ): bool {
		return in_array( $module_id, self::modules(), true );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit