| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Backuply |
| 4 |
Plugin URI: http://wordpress.org/plugins/backuply/ |
| 5 |
Description: Backuply is a Wordpress Backup plugin. Backups are the best form of security and safety a website can have. |
| 6 |
Version: 1.5.5 |
| 7 |
Author: Softaculous |
| 8 |
Author URI: https://backuply.com |
| 9 |
License: LGPL v2.1 |
| 10 |
License URI: http://www.gnu.org/licenses/lgpl-2.1.html |
| 11 |
*/ |
| 12 |
|
| 13 |
// We need the ABSPATH |
| 14 |
if (!defined('ABSPATH')) exit; |
| 15 |
|
| 16 |
if(!function_exists('add_action')){ |
| 17 |
echo 'You are not allowed to access this page directly.'; |
| 18 |
exit; |
| 19 |
} |
| 20 |
|
| 21 |
$backuply_plugin = 'backuply-pro/backuply-pro.php'; |
| 22 |
|
| 23 |
// Get site-level active plugins |
| 24 |
$backuply_tmp_plugins = get_option('active_plugins', []); |
| 25 |
|
| 26 |
// Get network-level active plugins (keys are plugin paths) |
| 27 |
$backuply_network_plugins = is_multisite() ? get_site_option('active_sitewide_plugins', []) : []; |
| 28 |
|
| 29 |
// Check if plugin is active (either site or network) |
| 30 |
$backuply_is_active = in_array($backuply_plugin, $backuply_tmp_plugins) || isset($backuply_network_plugins[$backuply_plugin]); |
| 31 |
|
| 32 |
if ($backuply_is_active) { |
| 33 |
|
| 34 |
// The following variable was not there prior to 1.2.1 in the pro version |
| 35 |
$backuply_pro_version = get_option('backuply_pro_version'); |
| 36 |
|
| 37 |
if (empty($backuply_pro_version)) { |
| 38 |
return; |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
// If BACKUPLY_VERSION exists then the plugin is loaded already ! |
| 43 |
if(defined('BACKUPLY_VERSION')) { |
| 44 |
return; |
| 45 |
} |
| 46 |
|
| 47 |
define('BACKUPLY_FILE', __FILE__); |
| 48 |
|
| 49 |
include_once(dirname(__FILE__).'/init.php'); |
| 50 |
|