| @@ -1,10 +1,10 @@ | ||
| 1 | -<?php | |
| 1 | +<?php // phpcs:ignore | |
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Backup For WP |
| 4 | 4 | * Plugin URI:https://wordpress.org/plugins/wp-database-backup |
| 5 | 5 | * Description: This plugin helps you to create/restore Unlimited WordPress Database & Files backup. |
| 6 | - * Version: 6.12 | |
| 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 |
| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | * Domain Path: /lang |
| 11 | 11 | * |
| 12 | 12 | * This plugin helps you to create Database Backup easily. |
| 13 | 13 | * |
| 14 | - * License: GPL v2 | |
| 14 | + * License: GPL v3 | |
| 15 | 15 | * |
| 16 | 16 | * This program is free software: you can redistribute it and/or modify |
| 17 | 17 | * it under the terms of the GNU General Public License as published by |
| 18 | 18 | * the Free Software Foundation, either version 3 of the License, or |
| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | * Plugin version |
| 47 | 47 | * |
| 48 | 48 | * @var string |
| 49 | 49 | */ |
| 50 | - public $version = '6.12'; | |
| 50 | + public $version = '6.7'; | |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Plugin instance |
| 54 | 54 | * |
| @@ -115,11 +115,11 @@ | ||
| 115 | 115 | include_once 'includes/admin/class-wpdb-admin.php'; |
| 116 | 116 | include_once 'includes/admin/Destination/wp-backup-destination-upload-action.php'; |
| 117 | 117 | include_once 'includes/class-wpdbbackuplog.php'; |
| 118 | 118 | include_once 'includes/admin/filter.php'; |
| 119 | - include_once 'includes/admin/class-wpdbbkp-newsletter.php'; | |
| 119 | + include_once 'includes/admin/newsletter.php'; | |
| 120 | 120 | include_once 'includes/admin/cron-create-full-backup.php'; |
| 121 | - include_once 'includes/class-wpdbfullbackuplog.php'; | |
| 121 | + include_once 'includes/log_generate.php'; | |
| 122 | 122 | |
| 123 | 123 | } |
| 124 | 124 | /** |
| 125 | 125 | * Installation setting at time of activation. |
| @@ -124,22 +124,18 @@ | ||
| 124 | 124 | /** |
| 125 | 125 | * Installation setting at time of activation. |
| 126 | 126 | */ |
| 127 | 127 | public function installation($flag=1) { |
| 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_remove_on_uninstall', 0 , '' , false ); | |
| 134 | - add_option('wp_db_backup_backup_type','complete', '' , false ); | |
| 135 | - add_option('wp_db_backup_exclude_dir',"wp-content/backupwordpress-728d36f682-backups|.git|db-backup", '' , false ); | |
| 136 | - add_option('wp_db_backup_backups_dir','db-backup', '' , false ); | |
| 137 | - add_option('bb_last_backup_timestamp',0, '' , false ); | |
| 138 | - add_option('wp_db_backup_sftp_details',null, '' , false ); | |
| 139 | - | |
| 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); | |
| 140 | 136 | if($flag!=2){ |
| 141 | - add_option( 'wpdbbkp_activation_redirect', true, '' , false ); | |
| 137 | + add_option( 'wpdbbkp_activation_redirect', true,false); | |
| 142 | 138 | } |
| 143 | 139 | } |
| 144 | 140 | |
| 145 | 141 | /** |