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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/hellopack-client/includes/Admin/NoticeManager.php
<?php
/**
 * Admin notice manager.
 *
 * @package HelloPack\Client
 */

declare( strict_types=1 );

namespace HelloPack\Client\Admin;

use HelloPack\Client\Options;

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

/**
 * Manages transient-based admin notices.
 */
class NoticeManager {

	/**
	 * Store an admin notice.
	 *
	 * Identical messages for the same type are deduplicated, so repeated
	 * `add()` calls (e.g. from a cron task) will not stack up.
	 *
	 * @param string $type    Notice type: error, warning, success, info.
	 * @param string $message Notice message.
	 */
	public static function add( string $type, string $message ): void {
		$notices = Options::get( 'notices', array() );

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

		if ( ! isset( $notices[ $type ] ) || ! is_array( $notices[ $type ] ) ) {
			$notices[ $type ] = array();
		}

		if ( in_array( $message, $notices[ $type ], true ) ) {
			return;
		}

		$notices[ $type ][] = $message;
		Options::set( 'notices', $notices );
	}

	/**
	 * Display and clear all stored notices.
	 */
	public static function display(): void {
		$notices = Options::get( 'notices', array() );

		if ( empty( $notices ) || ! is_array( $notices ) ) {
			return;
		}

		foreach ( $notices as $type => $messages ) {
			if ( ! is_array( $messages ) ) {
				continue;
			}

			foreach ( $messages as $message ) {
				printf(
					'<div class="notice notice-%s is-dismissible"><p>%s</p></div>',
					esc_attr( $type ),
					esc_html( $message )
				);
			}
		}

		Options::set( 'notices', array() );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit