$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//generateblocks-pro.php
<?php
/**
 * GenerateBlocks Pro 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;
}

/**
 * GenerateBlocks Pro license module.
 */
class Generateblocks_Pro extends AbstractModule {

	/**
	 * License option key.
	 *
	 * @var string
	 */
	private string $license_option = 'generateblocks_pro_licensing';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'generateblocks-pro';
		$this->name        = 'GenerateBlocks Pro';
		$this->description = 'Manages GenerateBlocks Pro license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'generateblocks-pro',
			'plugin_file' => 'plugin.php',
		);
		$this->target_id   = '2522389863';

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

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://generateblocks.com',
			HELLOPACK_GLS3_URL . '/generateblocks-pro'
		);

		$this->setup_license();
	}

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

		$current = get_option( $this->license_option, array() );

		if ( is_array( $current )
			&& 'valid' === ( $current['status'] ?? '' )
			&& ( $current['key'] ?? '' ) === (string) $token
		) {
			return;
		}

		update_option(
			$this->license_option,
			array(
				'key'    => (string) $token,
				'status' => 'valid',
				'beta'   => false,
			)
		);
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		update_option(
			$this->license_option,
			array(
				'key'    => '',
				'status' => 'invalid',
				'beta'   => false,
			)
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit