HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: /datos/www/expodubai/wp-content/plugins/add-from-server/add-from-server.php
<?php
namespace dd32\WordPress\AddFromServer;
/*
 * Plugin Name: Add From Server
 * Version: 3.4.5
 * Plugin URI: https://dd32.id.au/wordpress-plugins/add-from-server/
 * Description: Plugin to allow the Media Manager to add files from the webservers filesystem.
 * Author: Dion Hulse
 * Author URI: https://dd32.id.au/
 * Text Domain: add-from-server
 */

if ( !is_admin() ) {
	return;
}

const MIN_WP  = '5.4';
const MIN_PHP = '7.0';
const VERSION = '3.4.5';

// Dynamic constants must be define()'d.
define( __NAMESPACE__ . '\PLUGIN', plugin_basename( __FILE__ ) );

// Old versions of WordPress or PHP
if (
	version_compare( $GLOBALS['wp_version'], MIN_WP, '<' )
	||
	version_compare( phpversion(), MIN_PHP, '<' )
) {
	include dirname( __FILE__ ) . '/old-versions.php';
} else {
	include __DIR__ . '/class.add-from-server.php';
}

// Load PHP8 compat functions.
include __DIR__ . '/compat.php';

Plugin::instance();