[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Blocks
SET
[ DEL ]
📁 Contracts
SET
[ DEL ]
📁 Database
SET
[ DEL ]
📁 Integrations
SET
[ DEL ]
📁 Libraries
SET
[ DEL ]
📁 Models
SET
[ DEL ]
📁 Seeds
SET
[ DEL ]
📁 Services
SET
[ DEL ]
📁 Support
SET
[ DEL ]
📁 config
SET
[ DEL ]
📁 lib
SET
[ DEL ]
📄 Activator.php
511 B
SET
[ EDIT ]
|
[ DEL ]
📄 Attachment.php
7,513 B
SET
[ EDIT ]
|
[ DEL ]
📄 Controller.php
850 B
SET
[ EDIT ]
|
[ DEL ]
📄 Core.php
1,179 B
SET
[ EDIT ]
|
[ DEL ]
📄 Deactivator.php
3,065 B
SET
[ EDIT ]
|
[ DEL ]
📄 Factory.php
2,960 B
SET
[ EDIT ]
|
[ DEL ]
📄 Files.php
6,912 B
SET
[ EDIT ]
|
[ DEL ]
📄 Playlist.php
1,935 B
SET
[ EDIT ]
|
[ DEL ]
📄 Plugin.php
2,415 B
SET
[ EDIT ]
|
[ DEL ]
📄 Requirements.php
2,030 B
SET
[ EDIT ]
|
[ DEL ]
📄 support.php
155 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Plugin.php
<?php /** * Plugin main class file. * * @package PrestoPlayer */ namespace PrestoPlayer; /** * Main Plugin class. */ class Plugin { /** * Required versions for features. * * @var array */ protected const REQUIRED_VERSIONS = array( 'popups' => '3.0.0', ); /** * Check if pro version is enabled. * * @return bool */ protected function isPro() { return defined( 'PRESTO_PLAYER_PRO_ENABLED' ); } /** * Get the required pro version. * * @return string */ protected function requiredProVersion() { return '0.0.3'; } /** * Get the required pro version for a feature. * * @param string $feature Feature name to check. * @return string */ protected function requiredProVersionForFeature( $feature ) { return self::REQUIRED_VERSIONS[ $feature ]; } /** * Get the version from plugin data * * @return string */ protected function version() { // Load version from plugin data. if ( ! \function_exists( 'get_plugin_data' ) ) { require_once \ABSPATH . 'wp-admin/includes/plugin.php'; } return \get_plugin_data( PRESTO_PLAYER_PLUGIN_FILE, false, false )['Version']; } /** * Get the current pro version. * * @return string|false */ protected function proVersion() { if ( ! $this->isPro() ) { return false; } if ( class_exists( '\PrestoPlayer\Pro\Plugin' ) ) { return \PrestoPlayer\Pro\Plugin::version(); } return false; } /** * Check if pro version meets minimum required version for a feature. * * @param string $feature Feature name to check. * @return bool */ protected function hasRequiredProVersion( $feature ) { // get the required version for the feature. $required_versions = $this->requiredProVersionForFeature( $feature ); // The feature does not exist. if ( empty( $required_versions ) ) { return false; } // get the pro version. $pro_version = $this->proVersion(); // Pro version is not set (not installed). if ( ! $pro_version ) { return false; } // Compare the pro version with the required version. return version_compare( $pro_version, $required_versions, '>=' ); } /** * Static Facade Accessor * * @param string $method Method to call. * @param mixed $params Method params. * * @return mixed */ public static function __callStatic( $method, $params ) { return call_user_func_array( array( new static(), $method ), $params ); } }