$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/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/modules//ultimate-elementor.php
<?php
/**
 * Ultimate Elementor module.
 *
 * Intercepts BSF license API calls for UAE and manages license data.
 * Uses Interceptor instead of ApiRedirector because support.brainstormforce.com
 * is shared by all Brainstorm Force products.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

use HelloPack\Client\Module\AbstractModule;
use HelloPack\Client\Options;

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

/**
 * Ultimate Elementor license module.
 */
class Ultimate_Elementor extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'ultimate-elementor';
		$this->name        = 'Ultimate Elementor';
		$this->description = 'Manages Ultimate Elementor license via Interceptor.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'ultimate-elementor',
			'plugin_file' => 'ultimate-elementor.php',
		);
		$this->target_id   = '3198717367';
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		// Block UAE-specific license requests to support.brainstormforce.com.
		hellopack_license_start(
			array(
				'domain'          => 'support.brainstormforce.com',
				'check_action'    => true,
				'action_keywords' => array( 'uael', 'product_id=uael', '"product_id":"uael"' ),
				'response_type'   => 'custom',
				'custom_response' => array(
					'success' => true,
					'status'  => true,
					'message' => 'License managed by HelloPack centralized updater',
				),
			)
		);

		// Set license data in brainstorm_products option.
		$this->setup_license();

		// Set license status transient.
		$this->set_license_transient();
	}

	/**
	 * Set UAE license status in brainstrom_products option.
	 */
	private function setup_license(): void {
		$token = Options::get( 'token' );
		if ( empty( $token ) ) {
			return;
		}

		$products = get_option( 'brainstrom_products', array() );

		// Only update if UAE is registered in BSF products.
		if ( ! isset( $products['plugins']['uael'] ) ) {
			return;
		}

		$current_key    = $products['plugins']['uael']['purchase_key'] ?? '';
		$current_status = $products['plugins']['uael']['status'] ?? '';

		if ( (string) $token === $current_key && 'registered' === $current_status ) {
			return;
		}

		$products['plugins']['uael']['purchase_key'] = (string) $token;
		$products['plugins']['uael']['status']       = 'registered';

		update_option( 'brainstrom_products', $products );
	}

	/**
	 * Set license status transient to prevent remote API calls (6 hours).
	 *
	 * Overwrites any stale '0' cached by BSF (e.g. from a failed remote check
	 * that happened before this module was enabled), otherwise the
	 * "license isn't active" notice would persist for up to 6 hours.
	 */
	private function set_license_transient(): void {
		if ( '1' !== get_transient( 'uael_license_status' ) ) {
			set_transient( 'uael_license_status', '1', 6 * HOUR_IN_SECONDS );
		}
	}

	/**
	 * Cleanup on disable — remove license data.
	 */
	public function cleanup(): void {
		$products = get_option( 'brainstrom_products', array() );

		if ( isset( $products['plugins']['uael'] ) ) {
			unset( $products['plugins']['uael']['purchase_key'] );
			unset( $products['plugins']['uael']['status'] );
			update_option( 'brainstrom_products', $products );
		}

		delete_transient( 'uael_license_status' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit