| Server IP : 130.225.57.55 / Your IP : 216.73.216.60 Web Server : Apache System : Linux wp-vhost07 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /srv/www/reco2st.eu/https/wp-content/plugins/add-from-server/ |
Upload File : |
<?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();