$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/wp-all-import-pro.php
<?php
/**
 * WP All Import Pro module.
 *
 * Redirects Soflyy license/update requests to GLS3.
 * Sets license status in PMXI_Plugin_Options.
 *
 * API domain: update.wpallimport.com (shared with WP All Export).
 * License stored encoded in options['licenses']['PMXI_Plugin'] using salt from wpai_config_version.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * WP All Import Pro license module.
 */
class Wp_All_Import_Pro extends AbstractModule {

	/**
	 * License key placeholder.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-wp-all-import-license';

	/**
	 * Option name for plugin settings.
	 *
	 * @var string
	 */
	private const OPTION_NAME = 'PMXI_Plugin_Options';

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

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

	/**
	 * Initialize module.
	 */
	public function init(): void {
		$gls3_target = HELLOPACK_GLS3_URL . '/wpallimport';

		ApiRedirector::create( 'https://update.wpallimport.com', $gls3_target );
		ApiRedirector::create( 'https://www.wpallimport.com', $gls3_target );

		$this->activate_license();
	}

	/**
	 * Activate WP All Import Pro license.
	 *
	 * The plugin stores options as PMXI_Plugin_Options.
	 * License key is encoded with PMXI_Plugin::encode().
	 * The license page calls check_license() on every view which
	 * hits GLS3 and stores the result in statuses['PMXI_Plugin'].
	 */
	private function activate_license(): void {
		$options = get_option( self::OPTION_NAME );

		if ( ! is_array( $options ) ) {
			return;
		}

		$changed = false;

		// Initialize nested arrays if needed.
		if ( ! isset( $options['licenses'] ) || ! is_array( $options['licenses'] ) ) {
			$options['licenses'] = array();
		}
		if ( ! isset( $options['statuses'] ) || ! is_array( $options['statuses'] ) ) {
			$options['statuses'] = array();
		}

		// Set license key (encoded with the plugin's own method).
		if ( empty( $options['licenses']['PMXI_Plugin'] ) ) {
			$key = self::LICENSE_KEY;
			if ( class_exists( 'PMXI_Plugin' ) && method_exists( 'PMXI_Plugin', 'encode' ) ) {
				$key = \PMXI_Plugin::encode( $key );
			}
			$options['licenses']['PMXI_Plugin'] = $key;
			$changed                            = true;
		}

		// Set license status to valid (string, not array — the settings
		// controller compares with == 'valid').
		if ( empty( $options['statuses']['PMXI_Plugin'] ) || 'valid' !== $options['statuses']['PMXI_Plugin'] ) {
			$options['statuses']['PMXI_Plugin'] = 'valid';
			$changed                            = true;
		}

		if ( $changed ) {
			update_option( self::OPTION_NAME, $options, false );
			$this->clear_update_cache();
		}
	}

	/**
	 * Clear EDD plugin update cache.
	 */
	private function clear_update_cache(): void {
		$plugin_basename = 'wp-all-import-pro/wp-all-import-pro.php';
		$cache_key       = md5( 'edd_plugin_' . sanitize_key( $plugin_basename ) . '_version_info' );

		delete_transient( $cache_key );
		hellopack_delete_option( 'wp-all-import-pro_' . $cache_key );
		hellopack_delete_option( 'wp-all-import-pro_timeout_' . $cache_key );
		delete_site_transient( 'update_plugins' );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		$options = get_option( self::OPTION_NAME );

		if ( is_array( $options ) ) {
			unset( $options['licenses']['PMXI_Plugin'] );
			unset( $options['statuses']['PMXI_Plugin'] );
			update_option( self::OPTION_NAME, $options, false );
		}

		$this->clear_update_cache();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit