$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/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//theplus-elementor-addon.php
<?php
/**
 * The Plus Addons for Elementor module.
 *
 * Redirects EDD license API calls to GLS3 and manages license data.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * The Plus Addons for Elementor license module.
 */
class Theplus_Elementor_Addon extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'theplus-elementor-addon';
		$this->name        = 'The Plus Addons for Elementor';
		$this->description = 'Manages The Plus Addons for Elementor license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'theplus_elementor_addon',
			'plugin_file' => 'theplus_elementor_addon.php',
		);
		$this->target_id   = '3500188332';

		$this->blocked_domains = array(
			'://store.posimyth.com/' => self::edd_sl_block(),
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		// Redirect all store.posimyth.com API calls to GLS3.
		ApiRedirector::create(
			'https://store.posimyth.com',
			HELLOPACK_GLS3_URL . '/theplus-elementor-addon'
		);

		// Set up license data.
		$this->setup_license();
	}

	/**
	 * Set up The Plus license data.
	 */
	private function setup_license(): void {
		$token = Options::get( 'token' );
		if ( empty( $token ) ) {
			return;
		}

		$this->set_licence_data( (string) $token );
		$this->set_legacy_options( (string) $token );
		$this->set_licence_transient();
	}

	/**
	 * Set new license data (v6.0.0+).
	 *
	 * @param string $token HelloPack API token.
	 */
	private function set_licence_data( string $token ): void {
		$current = get_option( 'tpaep_licence_data' );

		if ( is_array( $current )
			&& isset( $current['license'] )
			&& 'valid' === $current['license']
			&& isset( $current['license_key'] )
			&& $token === $current['license_key']
		) {
			return;
		}

		update_option(
			'tpaep_licence_data',
			array(
				'success'          => true,
				'license'          => 'valid',
				'license_key'      => $token,
				'expires'          => 'lifetime',
				'item_name'        => 'The Plus Addons for Elementor',
				'tpae_success'     => true,
				'tpae_message'     => 'Successfully.',
				'tpae_description' => 'Successfully.',
			)
		);
	}

	/**
	 * Set legacy license options for older plugin versions.
	 *
	 * @param string $token HelloPack API token.
	 */
	private function set_legacy_options( string $token ): void {
		$verified = get_option( 'theplus_verified' );
		if ( ! is_array( $verified ) || 'valid' !== ( $verified['license'] ?? '' ) ) {
			update_option(
				'theplus_verified',
				array(
					'expire'  => 'lifetime',
					'license' => 'valid',
					'verify'  => 1,
				)
			);
		}

		$purchase = get_option( 'theplus_purchase_code' );
		if ( ! is_array( $purchase ) || ( $purchase['tp_api_key'] ?? '' ) !== $token ) {
			update_option( 'theplus_purchase_code', array( 'tp_api_key' => $token ) );
		}
	}

	/**
	 * Set license check transient to prevent frequent re-checks (15 days).
	 */
	private function set_licence_transient(): void {
		if ( false === get_transient( 'tpaep_licence_time_data' ) ) {
			set_transient( 'tpaep_licence_time_data', '1', 1296000 );
		}
	}

	/**
	 * Cleanup on disable — remove all license data.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'tpaep_licence_data' );
		delete_transient( 'tpaep_licence_time_data' );
		hellopack_delete_option( 'theplus_verified' );
		hellopack_delete_option( 'theplus_purchase_code' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit