PluginProbe
Backuply – Backup, Restore, Migrate and Clone / 1.5.7
Backuply – Backup, Restore, Migrate and Clone v1.5.7
1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.2.1 1.2.2 1.2.6 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 All 36 releases
backuply / backuply.php

backuply.php in Backuply – Backup, Restore, Migrate and Clone 1.5.7, at backuply.php

50 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.7
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