403Webshell
Server IP : 172.67.75.225  /  Your IP : 216.73.216.185
Web Server : nginx/1.27.1
System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User : vinodai ( 3134)
PHP Version : 7.4.33
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/v1396/chatgptkafila/public_html/wp-content/plugins/presto-player/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /storage/v1396/chatgptkafila/public_html/wp-content/plugins/presto-player/inc//Requirements.php
<?php

namespace PrestoPlayer;

use PrestoPlayer\Mundschenk\WP_Requirements;

class Requirements extends WP_Requirements {

	const REQUIREMENTS = array(
		'php'       => '7.3',
		'multibyte' => false,
		'utf-8'     => false,
		'wp'        => '5.6',
	);

	/**
	 * Creates a new requirements instance.
	 *
	 * @since 2.1.0 Parameter $plugin_file replaced with AVATAR_PRIVACY_PLUGIN_FILE constant.
	 */
	public function __construct() {
		parent::__construct( 'Presto Player', PRESTO_PLAYER_PLUGIN_FILE, 'presto-player', self::REQUIREMENTS );
	}

	/**
	 * Retrieves an array of requirement specifications.
	 *
	 * @return array {
	 *         An array of requirements checks.
	 *
	 *   @type string   $enable_key An index in the $install_requirements array to switch the check on and off.
	 *   @type callable $check      A function returning true if the check was successful, false otherwise.
	 *   @type callable $notice     A function displaying an appropriate error notice.
	 * }
	 */
	protected function get_requirements() {
		$requirements   = parent::get_requirements();
		$requirements[] = array(
			'enable_key' => 'wp',
			'check'      => array( $this, 'check_wp_support' ),
			'notice'     => array( $this, 'admin_notices_wp_incompatible' ),
		);

		return $requirements;
	}

	/**
	 * Checks for availability of the GD extension.
	 *
	 * @return bool
	 */
	protected function check_wp_support() {
		global $wp_version;
		return version_compare( $wp_version, '5.6', '>=' );
	}

	/**
	 * Prints 'WordPress Update' admin notice
	 *
	 * @return void
	 */
	public function admin_notices_wp_incompatible() {
		$this->display_error_notice(
			/* translators: 1: plugin name 2: WordPress update documentation URL */
			\__( 'The activated plugin %1$s requires WordPress 5.6 or higher. Please update WordPress.', 'presto-player' ),
			'<strong>Presto Player</strong>',
			/* translators: URL with WordPress installation instructions */
			\__( 'https://wordpress.org/support/article/updating-wordpress/', 'presto-player' )
		);
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit