$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//perfmatters.php
<?php
/**
 * Perfmatters module.
 *
 * Redirects Perfmatters EDD license requests to GLS3.
 * Supports both single site and multisite installations.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * Perfmatters license module.
 */
class Perfmatters extends AbstractModule {

	/**
	 * Placeholder license key.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-perfmatters-license';

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

		$this->blocked_domains = array(
			'perfmatters.io/?edd_action=' => self::edd_sl_block(),
			'://perfmatters.io/'          => self::edd_sl_block(),
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://perfmatters.io',
			HELLOPACK_GLS3_URL . '/perfmatters'
		);

		$this->activate_license();
	}

	/**
	 * Activate Perfmatters license (multisite-aware).
	 */
	private function activate_license(): void {
		if ( is_multisite() ) {
			$current_key    = get_site_option( 'perfmatters_edd_license_key' );
			$current_status = get_site_option( 'perfmatters_edd_license_status' );

			if ( self::LICENSE_KEY === $current_key && 'valid' === $current_status ) {
				return;
			}

			update_site_option( 'perfmatters_edd_license_key', self::LICENSE_KEY );
			update_site_option( 'perfmatters_edd_license_status', 'valid' );
		} else {
			hellopack_ensure_option( 'perfmatters_edd_license_key', self::LICENSE_KEY );
			hellopack_ensure_option( 'perfmatters_edd_license_status', 'valid' );
		}
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		if ( is_multisite() ) {
			hellopack_delete_option( 'perfmatters_edd_license_key' );
			hellopack_delete_option( 'perfmatters_edd_license_status' );
		} else {
			hellopack_delete_option( 'perfmatters_edd_license_key' );
			hellopack_delete_option( 'perfmatters_edd_license_status' );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit