PluginProbe
WP Database Backup – Unlimited Database & Files Backup by Backup for WP / 6.7
WP Database Backup – Unlimited Database & Files Backup by Backup for WP v6.7
7.13 7.12 trunk 1.1 2.1.1 5.9 6.0 6.1 6.10 6.11 6.12 6.12.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.8 6.9 7.0 7.0.1 7.1 7.10 All 34 releases
← All changes | wp-database-backup.php +25 -14 6.06.7 View file →
@@ -1,10 +1,10 @@
1 1 <?php // phpcs:ignore
2 2 /**
3 - * Plugin Name: WP Database Backup
3 + * Plugin Name: Backup For WP
4 4 * Plugin URI:https://wordpress.org/plugins/wp-database-backup
5 - * Description: This plugin helps you to create/restore WordPress database backup.
6 - * Version: 6.0
5 + * Description: This plugin helps you to create/restore Unlimited WordPress Database & Files backup.
6 + * Version: 6.7
7 7 * Author: Backup for WP
8 8 * Author URI: https://backupforwp.com/
9 9 * Text Domain: wpdbbkp
10 10 * Domain Path: /lang
@@ -46,9 +46,9 @@
46 46 * Plugin version
47 47 *
48 48 * @var string
49 49 */
50 - public $version = '6.0';
50 + public $version = '6.7';
51 51
52 52 /**
53 53 * Plugin instance
54 54 *
@@ -93,13 +93,19 @@
93 93 if ( ! defined( 'WPDB_PLUGIN_URL' ) ) {
94 94 define( 'WPDB_PLUGIN_URL', WP_CONTENT_URL . '/plugins/wp-database-backup' );
95 95 }
96 96 define( 'WPDB_PLUGIN_FILE', __FILE__ );
97 + define('WP_BACKUP_PLUGIN_FILE',__FILE__ );
97 98 define( 'WPDB_PATH', plugin_dir_path( __FILE__ ) );
98 99 define( 'WPDB_ROOTPATH', str_replace( '\\', '/', ABSPATH ) );
99 100 define( 'WPDB_VERSION', $this->version );
100 101 define( 'WPDBPLUGIN_VERSION', WPDB_VERSION );
101 - define( 'NOTIFIER_XML_FILE_WPDB', 'http://wpseeds.com/notifier/wp-database-backup.xml' );
102 + $wp_all_backup_backups_dir=get_option('wp_db_backup_backups_dir');
103 + if(!empty($wp_all_backup_backups_dir)){
104 + define( 'WPDB_BACKUPS_DIR',$wp_all_backup_backups_dir);
105 + }else{
106 + define( 'WPDB_BACKUPS_DIR','db-backup');
107 + }
102 108 }
103 109
104 110 /**
105 111 * Include Requred files and lib.
@@ -110,8 +116,10 @@
110 116 include_once 'includes/admin/Destination/wp-backup-destination-upload-action.php';
111 117 include_once 'includes/class-wpdbbackuplog.php';
112 118 include_once 'includes/admin/filter.php';
113 119 include_once 'includes/admin/newsletter.php';
120 + include_once 'includes/admin/cron-create-full-backup.php';
121 + include_once 'includes/log_generate.php';
114 122
115 123 }
116 124 /**
117 125 * Installation setting at time of activation.
@@ -116,16 +124,19 @@
116 124 /**
117 125 * Installation setting at time of activation.
118 126 */
119 127 public function installation($flag=1) {
120 - add_option( 'wp_db_backup_destination_FTP', 1 );
121 - add_option( 'wp_db_backup_destination_Email', 1 );
122 - add_option( 'wp_db_backup_destination_s3', 1 );
123 - add_option( 'wp_db_remove_local_backup', 0 );
124 - if($flag!=2)
125 - {
126 - add_option( 'wpdbbkp_activation_redirect', true);
127 - }
128 + add_option( 'wp_db_backup_destination_SFTP', 0 ,false);
129 + add_option( 'wp_db_backup_destination_FTP', 0 ,false);
130 + add_option( 'wp_db_backup_destination_Email', 0,false);
131 + add_option( 'wp_db_backup_destination_s3', 0 ,false);
132 + add_option( 'wp_db_remove_local_backup', 0 ,false);
133 + add_option('wp_db_backup_backup_type','complete',false);
134 + add_option('wp_db_backup_exclude_dir',"wp-content/backupwordpress-728d36f682-backups|.git|db-backup",false);
135 + add_option('wp_db_backup_backups_dir','db-backup',false);
136 + if($flag!=2){
137 + add_option( 'wpdbbkp_activation_redirect', true,false);
138 + }
128 139 }
129 140
130 141 /**
131 142 * Logger.
@@ -145,5 +156,5 @@
145 156 return WPDatabaseBackup::instance();
146 157 }
147 158
148 159 // Global for backwards compatibility.
149 -$GLOBALS['wpdbplugin'] = wpdb();
160 +$GLOBALS['wpdbplugin'] = wpdb();