$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//affiliate-wp.php
<?php
/**
 * AffiliateWP module.
 *
 * Redirects AffiliateWP 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;
use HelloPack\Client\Options;

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

/**
 * AffiliateWP license and update module.
 */
class Affiliate_WP extends AbstractModule {

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

		$this->blocked_domains = array(
			'affiliatewp.com/edd-sl-api'   => self::edd_sl_block(),
			'affiliatewp.com/?edd_action=' => self::edd_sl_block(),
			'://affiliatewp.com/'          => self::edd_sl_block(),
		);
	}

	/**
	 * Initialize module — redirect API calls, set license data.
	 */
	public function init(): void {
		ApiRedirector::create( 'https://affiliatewp.com', HELLOPACK_GLS3_URL . '/affiliate-wp' );

		if ( function_exists( 'affiliate_wp' ) ) {
			$this->setup_license();
		} else {
			add_action( 'plugins_loaded', array( $this, 'setup_license' ), 20 );
		}
	}

	/**
	 * Set up the AffiliateWP license through its settings API.
	 */
	public function setup_license(): void {
		if ( ! function_exists( 'affiliate_wp' ) ) {
			return;
		}

		$settings = affiliate_wp()->settings;
		$serial   = (string) Options::get( 'token', '' );

		$license_data = (object) array(
			'price_id' => 3,
			'license'  => 'valid',
			'success'  => true,
		);

		$settings->set(
			array(
				'license_status' => $license_data,
				'license_key'    => $serial,
			),
			true
		);

		set_transient( 'affwp_license_check', 'valid', DAY_IN_SECONDS );
	}

	/**
	 * Cleanup on disable — reset license data.
	 */
	public function cleanup(): void {
		delete_transient( 'affwp_license_check' );

		if ( function_exists( 'affiliate_wp' ) ) {
			$settings = affiliate_wp()->settings;

			$license_data = (object) array(
				'license' => 'invalid',
				'success' => false,
			);

			$settings->set(
				array(
					'license_status' => $license_data,
				),
				true
			);
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit