$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/www/wp-content/plugins/hellopack-client/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/www/wp-content/plugins/hellopack-client/modules/booster-plus-for-woocommerce.php
<?php
/**
 * Booster Plus for WooCommerce module.
 *
 * Redirects Booster Plus license API calls to GLS3.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

use HelloPack\Client\Module\AbstractModule;
use HelloPack\Client\License\ApiRedirector;

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

/**
 * Booster Plus for WooCommerce license module.
 */
class Booster_Plus_For_Woocommerce extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'booster-plus-for-woocommerce';
		$this->name        = 'Booster Plus for WooCommerce';
		$this->description = 'Manages Booster Plus for WooCommerce license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'booster-plus-for-woocommerce',
			'plugin_file' => 'booster-plus-for-woocommerce.php',
		);
		$this->target_id   = '3537872636';
	}

	/**
	 * Initialize module — redirect API calls, activate license, enable Plus features.
	 */
	public function init(): void {
		ApiRedirector::create( 'https://booster.io', HELLOPACK_GLS3_URL . '/booster-plus-for-woocommerce' );

		add_filter( 'wcj_full_pack', '__return_true', 1 );

		$this->activate_license();
		$this->disable_external_update_checks();

		add_action( 'wcj_loaded', array( $this, 'disable_upgrade_messages' ), 20 );

		$settings_filters = array(
			'wcj_product_variation_swatches_settings',
			'wcj_cart_abandonment_settings',
			'wcj_wishlist_settings',
			'wcj_sku_settings',
			'wcj_checkout_fees_settings',
			'wcj_shipping_by_order_amount_settings',
			'wcj_checkout_custom_fields_settings',
			'wcj_products_xml_settings',
			'wcj_shipping_options_settings',
		);

		foreach ( $settings_filters as $filter ) {
			add_filter( $filter, array( $this, 'remove_disabled_and_upgrade_messages' ), 999 );
		}
	}

	/**
	 * Set license key and valid status in WP options.
	 */
	private function activate_license(): void {
		$current_key = get_option( 'wcj_site_key' );

		if ( 'hellopack-managed' !== $current_key ) {
			update_option( 'wcj_site_key', 'hellopack-managed' );
		}

		$status = get_option( 'wcj_site_key_status' );

		if (
			! is_array( $status )
			|| ! isset( $status['server_response']->status )
			|| true !== $status['server_response']->status
		) {
			update_option(
				'wcj_site_key_status',
				array(
					'server_response' => (object) array(
						'status' => true,
						'error'  => (object) array(
							'message' => 'License is valid.',
						),
					),
					'client_data'     => '',
					'time_checked'    => time(),
				)
			);
		}
	}

	/**
	 * Clear cron hooks that check license with external server.
	 */
	private function disable_external_update_checks(): void {
		wp_clear_scheduled_hook( 'wcj_check_site_key' );
		wp_clear_scheduled_hook( 'wcj_check_site_key', array( 'weekly' ) );
		wp_clear_scheduled_hook( 'wcj_check_site_key', array( 'daily' ) );
		wp_clear_scheduled_hook( 'check_plugin_updates-booster-plus-for-woocommerce' );
	}

	/**
	 * Disable upgrade messages and enable all Plus features after Booster loads.
	 */
	public function disable_upgrade_messages(): void {
		remove_filter( 'booster_message', 'wcj_get_plus_message', 100 );
		add_filter( 'booster_message', '__return_empty_string', 200 );
		add_filter(
			'booster_option',
			static function ( $value1, $value2 ) {
				return $value2;
			},
			200,
			2
		);
	}

	/**
	 * Remove disabled attributes and upgrade messages from settings arrays.
	 *
	 * @param mixed $settings Settings array.
	 * @return mixed Modified settings.
	 */
	public function remove_disabled_and_upgrade_messages( $settings ) {
		if ( ! is_array( $settings ) ) {
			return $settings;
		}

		foreach ( $settings as &$setting ) {
			if ( isset( $setting['custom_attributes'] ) && is_array( $setting['custom_attributes'] ) ) {
				unset( $setting['custom_attributes']['disabled'] );

				if ( empty( $setting['custom_attributes'] ) ) {
					unset( $setting['custom_attributes'] );
				}
			}

			if ( isset( $setting['desc'] ) && is_string( $setting['desc'] ) ) {
				if (
					str_contains( $setting['desc'], 'Booster Elite' )
					|| str_contains( $setting['desc'], 'want to enable swatches' )
				) {
					$setting['desc'] = '';
				}
			}

			if ( isset( $setting['desc_tip'] ) && is_string( $setting['desc_tip'] ) && str_contains( $setting['desc_tip'], 'Upgrade' ) ) {
				$setting['desc_tip'] = '';
			}
		}

		return $settings;
	}

	/**
	 * Cleanup on disable — remove license data.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'wcj_site_key' );
		hellopack_delete_option( 'wcj_site_key_status' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit