$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-crm.php
<?php
/**
 * Fluent CRM module.
 *
 * Redirects FluentCart license API calls to GLS3 for FluentCampaign Pro
 * and manages both new and legacy license data.
 *
 * Note: This module targets the fluentcampaign-pro plugin directory
 * (the pro addon for FluentCRM).
 *
 * @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;
}

/**
 * FluentCRM / FluentCampaign Pro license module.
 */
class Fluent_Crm extends AbstractModule {

	/**
	 * New FluentLicensing option key.
	 *
	 * @var string
	 */
	private string $license_option = '__fluentcampaign-pro_sl_info';

	/**
	 * Legacy license option key.
	 *
	 * @var string
	 */
	private string $legacy_option = '__fluentcrm_campaign_license';

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

		$this->update_transients = array(
			'fsl_5da1031c85efb9790fc8d6e597f6c921_version_info' => (object) array( 'new_version' => '0.0.0' ),
		);

		$this->blocked_domains = array(
			'api3.wpmanageninja.com/plugin'  => self::edd_sl_block(),
			'apiv2.wpmanageninja.com/plugin' => self::edd_sl_block(),
			'wpmanageninja.com/?edd_action=' => self::edd_sl_block(),
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		ApiRedirector::create(
			'https://fluentapi.wpmanageninja.com',
			HELLOPACK_GLS3_URL . '/wpmanageninja'
		);

		$this->setup_license();
	}

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

		$this->set_new_license( (string) $token );
		$this->set_legacy_license( (string) $token );
	}

	/**
	 * Set new FluentLicensing format.
	 *
	 * @param string $token HelloPack API token.
	 */
	private function set_new_license( string $token ): void {
		$current = get_option( $this->license_option, array() );

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

		update_option(
			$this->license_option,
			array(
				'license_key'     => $token,
				'status'          => 'valid',
				'variation_id'    => '',
				'variation_title' => 'HelloPack License',
				'expires'         => '',
				'activation_hash' => md5( home_url() . 'hellopack' ),
			),
			false
		);
	}

	/**
	 * Set legacy license format for backwards compatibility.
	 *
	 * @param string $token HelloPack API token.
	 */
	private function set_legacy_license( string $token ): void {
		$current = get_option( $this->legacy_option, array() );

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

		update_option(
			$this->legacy_option,
			array(
				'license_key' => $token,
				'price_id'    => '',
				'expires'     => '',
				'status'      => 'valid',
			),
			false
		);
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		$data = get_option( $this->license_option, array() );
		if ( is_array( $data ) ) {
			$data['status'] = 'unregistered';
			update_option( $this->license_option, $data, false );
		}

		$legacy = get_option( $this->legacy_option, array() );
		if ( is_array( $legacy ) ) {
			$legacy['status'] = 'invalid';
			update_option( $this->legacy_option, $legacy, false );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit