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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes//Whitelabel.php
<?php
/**
 * White-label support — read agency rebranding config from wp-config.php constants.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client;

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

/**
 * Centralized accessor for white-label configuration.
 *
 * Constants (defined in wp-config.php):
 *   HELLOPACK_WHITELABEL              (bool)   — master switch.
 *   HELLOPACK_WHITELABEL_NAME         (string) — display name (plugin list, admin menu, SPA header).
 *   HELLOPACK_WHITELABEL_LOGO_URL     (string) — full URL to a logo image used in the SPA header.
 *   HELLOPACK_WHITELABEL_SUPPORT_URL  (string) — replacement support/help link target.
 */
final class Whitelabel {

	/**
	 * Whether white-label mode is enabled.
	 */
	public static function is_enabled(): bool {
		return defined( 'HELLOPACK_WHITELABEL' ) && (bool) HELLOPACK_WHITELABEL;
	}

	/**
	 * Display name to use in branded surfaces, or empty string when not overridden.
	 *
	 * Stripped of HTML tags via sanitize_text_field() — defense-in-depth, since
	 * WordPress core does not escape the plugin Name or admin menu label on output.
	 */
	public static function name(): string {
		if ( ! self::is_enabled() ) {
			return '';
		}

		if ( ! defined( 'HELLOPACK_WHITELABEL_NAME' ) || ! is_string( HELLOPACK_WHITELABEL_NAME ) ) {
			return '';
		}

		return sanitize_text_field( HELLOPACK_WHITELABEL_NAME );
	}

	/**
	 * Logo URL override, or empty string when not set.
	 */
	public static function logo_url(): string {
		if ( ! self::is_enabled() ) {
			return '';
		}

		return defined( 'HELLOPACK_WHITELABEL_LOGO_URL' ) && is_string( HELLOPACK_WHITELABEL_LOGO_URL )
			? esc_url_raw( HELLOPACK_WHITELABEL_LOGO_URL )
			: '';
	}

	/**
	 * Support URL override, or empty string when not set.
	 */
	public static function support_url(): string {
		if ( ! self::is_enabled() ) {
			return '';
		}

		return defined( 'HELLOPACK_WHITELABEL_SUPPORT_URL' ) && is_string( HELLOPACK_WHITELABEL_SUPPORT_URL )
			? esc_url_raw( HELLOPACK_WHITELABEL_SUPPORT_URL )
			: '';
	}

	/**
	 * Configuration payload for the Vue SPA hydration.
	 *
	 * @return array<string, mixed>
	 */
	public static function script_data(): array {
		return array(
			'enabled'    => self::is_enabled(),
			'name'       => self::name(),
			'logoUrl'    => self::logo_url(),
			'supportUrl' => self::support_url(),
		);
	}

	/**
	 * Register WordPress hooks that override branded surfaces outside the SPA.
	 */
	public static function register_hooks(): void {
		if ( ! self::is_enabled() ) {
			return;
		}

		add_filter( 'all_plugins', array( self::class, 'filter_plugin_list' ) );
		add_filter( 'network_admin_plugin_action_links_' . plugin_basename( HELLOPACK_CLIENT_FILE ), array( self::class, 'noop_action_links' ) );
	}

	/**
	 * Override the plugin name/description/author shown on the WP plugin list.
	 *
	 * @param array<string, array<string, mixed>> $plugins All registered plugins.
	 * @return array<string, array<string, mixed>>
	 */
	public static function filter_plugin_list( array $plugins ): array {
		$basename = plugin_basename( HELLOPACK_CLIENT_FILE );

		if ( ! isset( $plugins[ $basename ] ) ) {
			return $plugins;
		}

		$name = self::name();

		if ( '' !== $name ) {
			$plugins[ $basename ]['Name']       = $name;
			$plugins[ $basename ]['Title']      = $name;
			$plugins[ $basename ]['AuthorName'] = '';
			$plugins[ $basename ]['Author']     = '';
			$plugins[ $basename ]['AuthorURI']  = '';
			$plugins[ $basename ]['PluginURI']  = '';
		}

		$plugins[ $basename ]['Description'] = '';

		return $plugins;
	}

	/**
	 * Strip plugin row action links (e.g. external "view details") in white-label mode.
	 *
	 * @param array<string, string> $links Existing action links.
	 * @return array<string, string>
	 */
	public static function noop_action_links( array $links ): array {
		unset( $links );
		return array();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit