-
Notifications
You must be signed in to change notification settings - Fork 74
/
backupwordpress.php
55 lines (44 loc) · 1.94 KB
/
backupwordpress.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
/*
Plugin Name: BackUpWordPress
Plugin URI: https://updraftplus.com/backupwordpress/?afref=744
Description: Simple automated backups of your WordPress powered website. Once activated you'll find me under <strong>Tools → Backups</strong>. On multisite, you'll find me under the Network Settings menu.
Version: 3.10
Author: XIBO Ltd
Author URI: https://profiles.wordpress.org/xibodevelopment
License: GPL-2+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: backupwordpress
Domain Path: /languages
Network: true
*/
/*
Copyright 2011 - 2018 XIBO Ltd
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Only load if >= PHP 5.3
if ( ! defined( 'HMBKP_PLUGIN_PATH' ) ) {
define( 'HMBKP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'HMBKP_BASENAME' ) ) {
define( 'HMBKP_BASENAME', plugin_basename( __FILE__ ) );
}
require_once( HMBKP_PLUGIN_PATH . 'classes/class-setup.php' );
register_activation_hook( __FILE__, array( 'HMBKP_Setup', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'HMBKP_Setup', 'deactivate' ) );
if ( HMBKP_Setup::meets_requirements() ) {
require_once( HMBKP_PLUGIN_PATH . 'classes/class-plugin.php' );
} else {
add_action( 'admin_init', array( 'HMBKP_Setup', 'self_deactivate' ) );
add_action( 'all_admin_notices', array( 'HMBKP_Setup', 'display_admin_notices' ) );
}