403Webshell
Server IP : 104.26.5.103  /  Your IP : 216.73.216.4
Web Server : nginx/1.27.1
System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : arabianexpress ( 1872)
PHP Version : 8.0.30
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /storage/v9321/rimskannur/public_html/wp-content/plugins/popup-builder/com/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v9321/rimskannur/public_html/wp-content/plugins/popup-builder/com/classes/Notification.php
<?php
namespace sgpb;

class Notification
{
	public $id;
	public $type;// notification, warning etc.
	public $priority;
	public $message;

	public function setId($id)
	{
		$this->id = $id;
	}

	public function getId()
	{
		return $this->id;
	}

	public function setType($type)
	{
		$this->type = $type;
	}

	public function getType()
	{
		return $this->type;
	}

	public function setPriority($priority)
	{
		$this->priority = $priority;
	}

	public function getPriority()
	{
		return $this->priority;
	}

	public function setMessage($message)
	{
		$this->message = $message;
	}

	public function getMessage()
	{
		return $this->message;
	}

	public function render()
	{
		$id = $this->getId();
		$type = $this->getType();
		$color = '';
		switch ($type) {
			case 1:
				$color = '#01B9FF !important';
				break;
			case 2:
				$color = '#28a745 !important';
				break;
			case 3:
				$color = '#dc3545 !important';
				break;
		}

		$style = 'style="border-color: '.$color.';"';
		$priority = $this->getPriority();
		$message = $this->getMessage();
		$btnHtml = $this->getCloseBtnById($id);
		$content = '<div class="sgpb-single-notification-wrapper">
						<div class="sgpb-single-notification" '.$style.'>
						<span class="dashicons dashicons-no-alt sgpb-hide-notification-at-all" data-id="'.$id.'"></span>
						'.$message.'
						</div>
						<div class="sgpb-single-notification-close-btn">
							'.$btnHtml.'
						</div>
					</div>';

		return $content;
	}

	public function getCloseBtnById($id)
	{
		$dismissedNotification = SGPBNotificationCenter::getAllDismissedNotifications();
		if (isset($dismissedNotification[$id])) {
			return '<button data-id="'.$id.'" class="button dismiss sgpb-activate-notification-js"><span class="dashicons dashicons-hidden"></span></button>';
		}

		return '<button data-id="'.$id.'" class="button dismiss sgpb-dismiss-notification-js"><span class="dashicons dashicons-visibility"></span></button>';
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit