uawdijnntqw1x1x1
IP : 3.15.198.40
Hostname : c17w.hoster.ru
Kernel : Linux c17w.hoster.ru 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
Disable Function : dl,shell_exec,exec,system,passthru,popen,proc_open,proc_nice,proc_get_status,proc_close,proc_terminate,posix_mkfifo,chown,chgrp,show_source,opcache_reset,opcache_get_configuration,opcache_get_status
OS : Linux
PATH:
/
home
/
srv221441
/
kso-don.ru
/
wp-content
/
plugins
/
presto-player
/
inc
/
..
/
img
/
..
/
.
/
img
/
..
/
inc
/
Factory.php
/
/
<?php namespace PrestoPlayer; use PrestoPlayer\Plugin; use PrestoPlayer\Attachment; use PrestoPlayer\Controller; use PrestoPlayer\Support\Block; use PrestoPlayer\Services\Scripts; use PrestoPlayer\Services\BunnyCDN; use PrestoPlayer\Services\Settings; use PrestoPlayer\Services\AdminNotices; 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( BunnyCDN::class => self::SHARED, Visits::class => self::SHARED, ReusableVideos::class => self::SHARED, AdminNotices::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; } }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/inc/../img/.././img/../inc/Factory.php