| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: FileOrganizer |
| 4 |
Plugin URI: https://wordpress.org/plugins/fileorganizer/ |
| 5 |
Description: FileOrganizer is a plugin that helps you to manage all files in your WordPress Site. |
| 6 |
Version: 1.2.1 |
| 7 |
Author: Softaculous Team |
| 8 |
Author URI: https://fileorganizer.net |
| 9 |
Text Domain: fileorganizer |
| 10 |
*/ |
| 11 |
|
| 12 |
// We need the ABSPATH |
| 13 |
if(!defined('ABSPATH')) exit; |
| 14 |
|
| 15 |
if(!function_exists('add_action')){ |
| 16 |
echo 'You are not allowed to access this page directly.'; |
| 17 |
exit; |
| 18 |
} |
| 19 |
|
| 20 |
$_tmp_plugins = get_option('active_plugins', []); |
| 21 |
|
| 22 |
if(!defined('SITEPAD') && in_array('fileorganizer-pro/fileorganizer-pro.php', $_tmp_plugins)){ |
| 23 |
|
| 24 |
// Was introduced in 1.0.9 |
| 25 |
$fileorganizer_pro_info = get_option('fileorganizer_pro_version'); |
| 26 |
|
| 27 |
if(!empty($fileorganizer_pro_info) && version_compare($fileorganizer_pro_info, '1.0.9', '>=')){ |
| 28 |
// Let Fileorganizer load |
| 29 |
|
| 30 |
// Lets check for older versions |
| 31 |
}else{ |
| 32 |
|
| 33 |
if(!function_exists('get_plugin_data')){ |
| 34 |
include_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 35 |
} |
| 36 |
|
| 37 |
$fileorganizer_pro_info = get_plugin_data(WP_PLUGIN_DIR . '/fileorganizer-pro/fileorganizer-pro.php'); |
| 38 |
|
| 39 |
if(!empty($fileorganizer_pro_info) && version_compare($fileorganizer_pro_info['Version'], '1.0.9', '<')){ |
| 40 |
return; |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
// If FILEORGANIZER_VERSION exists then the plugin is loaded already ! |
| 46 |
if(defined('FILEORGANIZER_VERSION')){ |
| 47 |
return; |
| 48 |
} |
| 49 |
|
| 50 |
define('FILEORGANIZER_FILE', __FILE__); |
| 51 |
define('FILEORGANIZER_VERSION', '1.2.1'); |
| 52 |
|
| 53 |
include_once(dirname(__FILE__).'/init.php'); |
| 54 |
|