| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/real-media-library/ |
Upload File : |
<?php
/**
* Main file for WordPress.
*
* @wordpress-plugin
* Plugin Name: Real Media Library
* Plugin URI: https://devowl.io/wordpress-real-media-library/
* Description: Organize uploaded media in folders, collections and galleries: A file manager for WordPress. Media management made easy!
* Author: devowl.io
* Author URI: https://devowl.io
* Version: 4.21.12
* Text Domain: real-media-library
* Domain Path: /languages
*/
defined('ABSPATH') or die('No script kiddies please!'); // Avoid direct file request
update_site_option( 'wpls_license_real-media-library', 'activated' );
update_site_option( 'wpls_activation_id_real-media-library', 'activated' );
/**
* Plugin constants. This file is procedural coding style for initialization of
* the plugin core and definition of plugin configuration.
*/
if (defined('RML_PATH')) {
require_once dirname(__FILE__) . '/inc/base/others/fallback-already.php';
return;
}
define('RML_FILE', __FILE__);
define('RML_PATH', dirname(RML_FILE));
define('RML_ROOT_SLUG', 'devowl-wp');
define('RML_SLUG', basename(RML_PATH));
define('RML_INC', RML_PATH . '/inc/');
define('RML_MIN_PHP', '7.2.0'); // Minimum of PHP 5.3 required for autoloading and namespacing
define('RML_MIN_WP', '5.2.0'); // Minimum of WordPress 5.2 required
define('RML_NS', 'MatthiasWeb\\RealMediaLibrary');
define('RML_DB_PREFIX', 'realmedialibrary'); // The table name prefix wp_{prefix}
define('RML_OPT_PREFIX', 'rml'); // The option name prefix in wp_options
define('RML_SLUG_CAMELCASE', lcfirst(str_replace('-', '', ucwords(RML_SLUG, '-'))));
//define('RML_TD', ''); This constant is defined in the core class. Use this constant in all your __() methods
//define('RML_VERSION', ''); This constant is defined in the core class
//define('RML_DEBUG', true); This constant should be defined in wp-config.php to enable the Base#debug() method
define('RML_SLUG_LITE', 'real-media-library-lite');
define('RML_SLUG_PRO', 'real-media-library');
// define('RML_PRO_VERSION', 'https://devowl.io/go/real-media-library?source=rml-lite'); This constant is defined in the core class
define('RML_TYPE_FOLDER', 0);
define('RML_TYPE_COLLECTION', 1);
define('RML_TYPE_GALLERY', 2);
define('RML_TYPE_ALL', 3);
define('RML_TYPE_ROOT', 4);
// Check PHP Version and print notice if minimum not reached, otherwise start the plugin core
require_once RML_INC .
'base/others/' .
(version_compare(phpversion(), RML_MIN_PHP, '>=') ? 'start.php' : 'fallback-php-version.php');