$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.217.123
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//translatepress-business.php
<?php
/**
 * TranslatePress Business module.
 *
 * Redirects TranslatePress EDD license requests to GLS3.
 * Sets trp_license_* options including the special trp_license_details
 * structure that TranslatePress expects.
 *
 * Note: customer_name and customer_email must be at least 6 chars
 * because TranslatePress obfuscates them with strlen - 5.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * TranslatePress Business license module.
 */
class Translatepress_Business extends AbstractModule {

	/**
	 * Placeholder license key.
	 *
	 * @var string
	 */
	private const LICENSE_KEY = 'hellopack-translatepress-license';

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

		$this->blocked_domains = array(
			'://translatepress.com/' => self::edd_sl_block(),
		);
	}

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

		$this->activate_license();
	}

	/**
	 * Activate TranslatePress Business license.
	 *
	 * Sets key, status, and the license_details structure that
	 * TranslatePress uses to display addon activation info.
	 */
	private function activate_license(): void {
		hellopack_ensure_option( 'trp_license_key', self::LICENSE_KEY );
		hellopack_ensure_option( 'trp_license_status', 'valid' );

		$license_data = (object) array(
			'success'          => true,
			'license'          => 'valid',
			'item_id'          => false,
			'item_name'        => 'TranslatePress Business',
			'license_limit'    => 0,
			'site_count'       => 1,
			'expires'          => 'lifetime',
			'activations_left' => 'unlimited',
			'checksum'         => md5( self::LICENSE_KEY ),
			'payment_id'       => 0,
			'customer_name'    => 'HelloWP Support',
			'customer_email'   => 'license@hellowp.io',
			'price_id'         => '0',
		);

		hellopack_ensure_option(
			'trp_license_details',
			array( 'valid' => array( $license_data ) )
		);
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'trp_license_key' );
		hellopack_delete_option( 'trp_license_status' );
		hellopack_delete_option( 'trp_license_details' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit