Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.7.5.1

Version Description

  • This is a minor release with some small UI fixes.
  • Feature: Add lite registration
  • Fix: correct license expiration month
  • Fix: added namespace prefix to all ajax actions
Download this release

Release Info

Developer cssimmon
Plugin Icon 128x128 Backup and Restore WordPress – WPBackItUp Backup Plugin
Version 1.7.5.1
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.5.1

css/{admin.css → wpbackitup_admin.css} RENAMED
File without changes
js/{admin.js → wpbackitup_admin.js} RENAMED
@@ -6,6 +6,7 @@
6
  */
7
 
8
  (function($){
 
9
 
10
  //Add View Log Click event to backup page
11
  add_viewlog_onclick();
@@ -34,12 +35,12 @@
34
 
35
  /* define logreader variables */
36
  var response_reader = {
37
- action: 'response_reader'
38
  };
39
 
40
  /* define logreader variables */
41
  var status_reader = {
42
- action: 'status_reader'
43
  };
44
 
45
  function add_viewlog_onclick(){
@@ -129,7 +130,7 @@
129
  var jqxhr = $.ajax({
130
  url: ajaxurl,
131
  type: 'POST',
132
- data: {action: "response_reader"},
133
  dataType: "json"
134
  });
135
 
@@ -179,7 +180,7 @@
179
  var jqxhr = $.ajax({
180
  url: ajaxurl,
181
  type: 'POST',
182
- data: {action: "backup"},
183
  cache: false,
184
  dataType: "json",
185
 
@@ -232,7 +233,7 @@
232
  $.ajax({
233
  url: ajaxurl,
234
  type: 'post',
235
- data: {action: "restore", selected_file: filename,user_id: userid},
236
  success: function(response) {
237
  /* Return PHP messages, used for development */
238
  $("#php").html(response);
@@ -277,7 +278,7 @@
277
  jQuery.each($('#wpbackitup-zip')[0].files, function(i, file) {
278
  formData.append('uploadFile-'+i, file);
279
  });
280
- formData.append('action', 'upload');
281
  formData.append('_wpnonce', $('#_wpnonce').val());
282
  formData.append('_wp_http_referer',$("[name='_wp_http_referer']").val());
283
 
@@ -371,7 +372,7 @@
371
  $.ajax({
372
  url: ajaxurl,
373
  type: 'post',
374
- data: {action: "delete_file", filed: filename},
375
  success: function(data) {
376
  if (data === 'deleted')
377
  {
@@ -496,4 +497,8 @@
496
  return false;
497
  }
498
 
 
 
 
 
499
  })(jQuery);
6
  */
7
 
8
  (function($){
9
+ var namespace = 'wp-backitup';
10
 
11
  //Add View Log Click event to backup page
12
  add_viewlog_onclick();
35
 
36
  /* define logreader variables */
37
  var response_reader = {
38
+ action: get_action_name('response_reader')
39
  };
40
 
41
  /* define logreader variables */
42
  var status_reader = {
43
+ action: get_action_name('status_reader')
44
  };
45
 
46
  function add_viewlog_onclick(){
130
  var jqxhr = $.ajax({
131
  url: ajaxurl,
132
  type: 'POST',
133
+ data: {action: get_action_name('response_reader')},
134
  dataType: "json"
135
  });
136
 
180
  var jqxhr = $.ajax({
181
  url: ajaxurl,
182
  type: 'POST',
183
+ data: {action: get_action_name('backup')},
184
  cache: false,
185
  dataType: "json",
186
 
233
  $.ajax({
234
  url: ajaxurl,
235
  type: 'post',
236
+ data: {action: get_action_name('restore'), selected_file: filename,user_id: userid},
237
  success: function(response) {
238
  /* Return PHP messages, used for development */
239
  $("#php").html(response);
278
  jQuery.each($('#wpbackitup-zip')[0].files, function(i, file) {
279
  formData.append('uploadFile-'+i, file);
280
  });
281
+ formData.append('action', get_action_name('upload'));
282
  formData.append('_wpnonce', $('#_wpnonce').val());
283
  formData.append('_wp_http_referer',$("[name='_wp_http_referer']").val());
284
 
372
  $.ajax({
373
  url: ajaxurl,
374
  type: 'post',
375
+ data: {action: get_action_name('delete_file'), filed: filename},
376
  success: function(data) {
377
  if (data === 'deleted')
378
  {
497
  return false;
498
  }
499
 
500
+ function get_action_name(action) {
501
+ return namespace + '_' + action;
502
+ }
503
+
504
  })(jQuery);
lib/includes/backup.php CHANGED
@@ -400,7 +400,9 @@ function send_backup_notification_email($err, $status)
400
  }
401
  }
402
 
403
- $message .='<br/><br/>Checkout <a href="https://www.wpbackitup.com">www.wpbackitup.com</a> for info about WP BackItUp and our other products.<br/>';
 
 
404
 
405
  $notification_email = $WPBackitup->get_option('notification_email');
406
  if($notification_email)
400
  }
401
  }
402
 
403
+ $term='success';
404
+ if(!$status)$term='error';
405
+ $message .='<br/><br/>Checkout '. $WPBackitup->get_anchor_with_utm('www.wpbackitup.com', '', 'notification+email', $term) .' for info about WP BackItUp and our other products.<br/>';
406
 
407
  $notification_email = $WPBackitup->get_option('notification_email');
408
  if($notification_email)
lib/includes/class-wpbackitup-admin.php CHANGED
@@ -48,6 +48,7 @@ class WPBackitup_Admin {
48
  'notification_email' => "",
49
  'backup_retained_number' => "3",
50
  'lite_backup_retained_number' => "1",
 
51
  'backup_count'=>0,
52
  'successful_backup_count'=>0,
53
  'stats_last_check_date'=> "1970-01-01 00:00:00",
@@ -101,21 +102,21 @@ class WPBackitup_Admin {
101
  add_action( 'admin_enqueue_scripts', array( &$this, 'load_resources' ) );
102
 
103
  //Load the backup action
104
- add_action('wp_ajax_backup', array( &$this, 'ajax_backup' ));
105
 
106
  //Load the restore action
107
- add_action('wp_ajax_restore', array( &$this, 'ajax_restore' ));
108
 
109
  //Load the upload action
110
- add_action('wp_ajax_upload', array( &$this, 'ajax_upload' ));
111
 
112
  //Status reader for UI
113
- add_action('wp_ajax_status_reader', array( &$this,'ajax_status_reader'));
114
 
115
- add_action('wp_ajax_response_reader', array( &$this,'ajax_response_reader'));
116
 
117
  //Delete File Action
118
- add_action('wp_ajax_delete_file', array( &$this,'ajax_delete_file'));
119
 
120
  //View Log Action
121
  add_action('admin_post_viewlog', array( &$this,'admin_viewlog'));
@@ -172,11 +173,11 @@ class WPBackitup_Admin {
172
 
173
  public function load_resources() {
174
  // Admin JavaScript
175
- wp_register_script( "{$this->namespace}-admin", WPBACKITUP__PLUGIN_URL . "/js/admin.js", array( 'jquery' ), $this->version, true );
176
  //wp_register_script( "{$this->namespace}-admin-viewlog", WPBACKITUP__PLUGIN_URL . "/js/admin_test.js", array( 'jquery' ), $this->version, true );
177
 
178
  // Admin Stylesheet
179
- wp_register_style( "{$this->namespace}-admin", WPBACKITUP__PLUGIN_URL . "/css/admin.css", array(), $this->version, 'screen' );
180
 
181
  wp_register_style( 'google-fonts', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');
182
  wp_enqueue_style( 'google-fonts' );
@@ -267,6 +268,10 @@ class WPBackitup_Admin {
267
  if( wp_verify_nonce( $nonce, "{$this->namespace}-update-options" ) ) {
268
  $this->_admin_options_update();
269
  }
 
 
 
 
270
  }
271
  // Handle GET requests
272
  else {
@@ -298,7 +303,7 @@ class WPBackitup_Admin {
298
  if(file_exists($log) ) {
299
  readfile($log);
300
  }
301
- die();
302
  }
303
 
304
  public function ajax_response_reader() {
@@ -310,7 +315,7 @@ class WPBackitup_Admin {
310
  $rtnData->message = 'No response log found.';
311
  echo json_encode($rtnData);
312
  }
313
- die();
314
  }
315
 
316
  public function ajax_delete_file()
@@ -421,6 +426,92 @@ class WPBackitup_Admin {
421
  }
422
  }
423
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  /**
425
  * Hook into plugin_action_links filter
426
  *
@@ -613,6 +704,20 @@ class WPBackitup_Admin {
613
  return $this->get('successful_backup_count');
614
  }
615
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
  /**---------- END GETTERS --------------- **/
617
 
618
  /**---------- SETTERS --------------- **/
@@ -761,11 +866,11 @@ class WPBackitup_Admin {
761
  $logger->log('Current Month: ' .date('m'));
762
 
763
  //only EXPIRE current month
764
- if ($expire_date_array[month]==date('m')) {
765
  $data['license_status'] ='expired';
766
  $data['license_status_message'] ='License has expired.';
767
  $logger->log('Expire License.');
768
- }
769
  }
770
 
771
  if (($license_data->license=='invalid') && ($license_data->error=='no_activations_left')){
@@ -962,10 +1067,17 @@ class WPBackitup_Admin {
962
  return true;
963
  }
964
 
965
- function get_anchor_with_utm($pretty,$page,$campaign,$content=null, $term=null ){
 
 
 
 
 
 
 
966
 
967
- $medium='plugin';
968
- $source=$this->namespace;
969
 
970
  $utm_url = WPBACKITUP__SITE_URL .'/' .$page .'/?utm_medium=' .$medium . '&utm_source=' .$source .'&utm_campaign=' .$campaign;
971
 
48
  'notification_email' => "",
49
  'backup_retained_number' => "3",
50
  'lite_backup_retained_number' => "1",
51
+ 'lite_registration_email' => "",
52
  'backup_count'=>0,
53
  'successful_backup_count'=>0,
54
  'stats_last_check_date'=> "1970-01-01 00:00:00",
102
  add_action( 'admin_enqueue_scripts', array( &$this, 'load_resources' ) );
103
 
104
  //Load the backup action
105
+ add_action('wp_ajax_wp-backitup_backup', array( &$this, 'ajax_backup' ));
106
 
107
  //Load the restore action
108
+ add_action('wp_ajax_wp-backitup_restore', array( &$this, 'ajax_restore' ));
109
 
110
  //Load the upload action
111
+ add_action('wp_ajax_wp-backitup_upload', array( &$this, 'ajax_upload' ));
112
 
113
  //Status reader for UI
114
+ add_action('wp_ajax_wp-backitup_status_reader', array( &$this,'ajax_status_reader'));
115
 
116
+ add_action('wp_ajax_wp-backitup_response_reader', array( &$this,'ajax_response_reader'));
117
 
118
  //Delete File Action
119
+ add_action('wp_ajax_wp-backitup_delete_file', array( &$this,'ajax_delete_file'));
120
 
121
  //View Log Action
122
  add_action('admin_post_viewlog', array( &$this,'admin_viewlog'));
173
 
174
  public function load_resources() {
175
  // Admin JavaScript
176
+ wp_register_script( "{$this->namespace}-admin", WPBACKITUP__PLUGIN_URL . "js/wpbackitup_admin.js", array( 'jquery' ), $this->version, true );
177
  //wp_register_script( "{$this->namespace}-admin-viewlog", WPBACKITUP__PLUGIN_URL . "/js/admin_test.js", array( 'jquery' ), $this->version, true );
178
 
179
  // Admin Stylesheet
180
+ wp_register_style( "{$this->namespace}-admin", WPBACKITUP__PLUGIN_URL . "css/wpbackitup_admin.css", array(), $this->version, 'screen' );
181
 
182
  wp_register_style( 'google-fonts', '//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');
183
  wp_enqueue_style( 'google-fonts' );
268
  if( wp_verify_nonce( $nonce, "{$this->namespace}-update-options" ) ) {
269
  $this->_admin_options_update();
270
  }
271
+
272
+ if( wp_verify_nonce( $nonce, "{$this->namespace}-register-lite" ) ) {
273
+ $this->_admin_register_lite();
274
+ }
275
  }
276
  // Handle GET requests
277
  else {
303
  if(file_exists($log) ) {
304
  readfile($log);
305
  }
306
+ exit;
307
  }
308
 
309
  public function ajax_response_reader() {
315
  $rtnData->message = 'No response log found.';
316
  echo json_encode($rtnData);
317
  }
318
+ exit;
319
  }
320
 
321
  public function ajax_delete_file()
426
  }
427
  }
428
 
429
+ /**
430
+ * Process registration page form submissions
431
+ *
432
+ */
433
+ public function _admin_register_lite() {
434
+ // Verify submission for processing using wp_nonce
435
+ if( wp_verify_nonce( $_REQUEST['_wpnonce'], "{$this->namespace}-register-lite" ) ) {
436
+
437
+ /**
438
+ * Loop through each POSTed value and sanitize it to protect against malicious code. Please
439
+ * note that rich text (or full HTML fields) should not be processed by this function and
440
+ * dealt with directly.
441
+ */
442
+
443
+ $logger = new WPBackItUp_Logger(false);
444
+ $logger->log("Register WP BackItUp Lite");
445
+ $logger->log($_POST);
446
+
447
+ $val = $_POST['email'];
448
+ $email = $this->_sanitize($val);
449
+ if (!empty($email) && filter_var($email, FILTER_VALIDATE_EMAIL)){
450
+ $urlparts = parse_url(site_url());
451
+ $domain = $urlparts['host'];
452
+ $logger->log('Lite Registration Values: ' .$domain .':' .$email);
453
+
454
+ //Not capturing these yet
455
+ $first_name='';
456
+ $last_name='';
457
+
458
+ //save option to DB
459
+ $this->set_option('lite_registration_email', $email);
460
+
461
+ //register with mail chimp
462
+ $mailchimp_form_id = '5e70c18c53'; //DEV
463
+ $mailchimp_form_id = '8e8e45c83b'; //PRD
464
+
465
+
466
+ $form_data = array(
467
+ 'yks-mailchimp-list-ct'=>'0',
468
+ 'yks-mailchimp-list-id'=>$mailchimp_form_id,
469
+ $mailchimp_form_id .'EMAIL' => $email,
470
+ $mailchimp_form_id .'WEBSITE' => $domain,
471
+ $mailchimp_form_id .'FNAME' => $first_name,
472
+ $mailchimp_form_id .'LNAME' => $last_name
473
+ );
474
+
475
+ //URL Encode the Form Data
476
+ $form_data=http_build_query($form_data);
477
+
478
+ $post_url=WPBACKITUP__SECURESITE_URL . '/wp-admin/admin-ajax.php';
479
+
480
+ $logger->log('Lite User Registration Post URL: ' .$post_url);
481
+ $logger->log('Lite User Registration Post Form Data: ' .$form_data);
482
+
483
+ $response = wp_remote_post( $post_url, array(
484
+ 'method' => 'POST',
485
+ 'timeout' => 45,
486
+ 'redirection' => 5,
487
+ 'httpversion' => '1.0',
488
+ 'blocking' => true,
489
+ 'headers' => array(),
490
+ 'body' => array(
491
+ 'action' => 'yks_mailchimp_form'
492
+ , 'form_action' => 'frontend_submit_form'
493
+ , 'form_data' => $form_data
494
+ ),
495
+ 'cookies' => array()
496
+ )
497
+ );
498
+
499
+ if ( is_wp_error( $response ) ) {
500
+ $error_message = $response->get_error_message();
501
+ $logger->log('Lite User Registration Error: ' .$error_message);
502
+ } else {
503
+ $logger->log('Lite User Registered Successfully:');
504
+ $logger->log($response);
505
+ }
506
+
507
+ }
508
+
509
+ // Redirect back to the options page with the message flag to show the saved message
510
+ wp_safe_redirect( $_REQUEST['_wp_http_referer'] . '&update=1' );
511
+ exit;
512
+ }
513
+ }
514
+
515
  /**
516
  * Hook into plugin_action_links filter
517
  *
704
  return $this->get('successful_backup_count');
705
  }
706
 
707
+ function lite_registration_email(){
708
+ return $this->get('lite_registration_email');
709
+ }
710
+
711
+ function is_lite_registered(){
712
+ $lite_email_registration= $this->lite_registration_email();
713
+ if (!empty($lite_email_registration)) {
714
+ return true;
715
+ } else {
716
+ return false;
717
+ }
718
+
719
+ }
720
+
721
  /**---------- END GETTERS --------------- **/
722
 
723
  /**---------- SETTERS --------------- **/
866
  $logger->log('Current Month: ' .date('m'));
867
 
868
  //only EXPIRE current month
869
+ //if ($expire_date_array[month]==date('m')) {
870
  $data['license_status'] ='expired';
871
  $data['license_status_message'] ='License has expired.';
872
  $logger->log('Expire License.');
873
+ //}
874
  }
875
 
876
  if (($license_data->license=='invalid') && ($license_data->error=='no_activations_left')){
1067
  return true;
1068
  }
1069
 
1070
+ //Pretty= Pretty version of anchor
1071
+ //Page = page to link to
1072
+ //content = Widget Name(where)
1073
+ //term = pinpoint where in widget
1074
+ function get_anchor_with_utm($pretty, $page, $content = null, $term = null){
1075
+
1076
+ $medium='plugin'; //Campaign Medium
1077
+ $source=$this->namespace; //plugin name
1078
 
1079
+ $campaign='lite';
1080
+ if ($this->license_active()) $campaign='premium';
1081
 
1082
  $utm_url = WPBACKITUP__SITE_URL .'/' .$page .'/?utm_medium=' .$medium . '&utm_source=' .$source .'&utm_campaign=' .$campaign;
1083
 
readme.txt CHANGED
@@ -5,86 +5,141 @@ Tags: backup, back up, backups, backup wordpress, backup database, backup plugin
5
  backup buddy,
6
  Requires at least: 3.8.0
7
  Tested up to: 3.9.1
8
- Stable tag: 1.7.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
- Create a backup zip of your content and settings with a single click that can be used to restore your site quickly and easily.
13
 
14
  == Description ==
15
 
16
- = The Simple Way to Backup Your Site =
17
- WP Backitup creates a backup zip of your site&apos;s content and configuration in just a single click,
18
- right from your Wordpress dashboard. There is no need to FTP into your site and no knowledge of MySQL or PHPMyAdmin is required. You can use your backup zip to restore your site or to clone a site&apos;s content and settings when setting up a new one.
19
 
20
- = Automatically Restore Your Backup Zips =
21
- Tired of messing around in PHPMyAdmin and with FTP trying to restore you backups? WP Backitup features a premium restoration feature that allows your backup zips to be restored right from the Wordpress interface. No need to worry about FTP, cPanel or PHPMyAdmin!
22
 
23
- = Easy To Install and Use =
24
- Simply install the plugin directly to Wordpress and browse to the new menu 'WP Backitup'. From there, just follow the on-screen instructions and watch as WP Backitup creates a backup of you site's plugins, themes and uploads as well as you content and settings (including all custom widgets and settings for any additional plugins).
25
 
26
- = Where can I purchase a license? =
27
- You can <a href="http://www.wpbackitup.com">purchase a no-risk WP Backitup license</a> from the WP Backitup site. This will allow you to restore your backups from the Wordpress dashboard in minutes or get a full money-back refund.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  = More questions? =
30
- Please ask them in the <a href="http://wordpress.org/support/plugin/wp-backitup">support forum</a>.
31
 
32
  == Installation ==
33
 
34
- Installation of the plugin is straightforward:
35
 
36
- 1. Upload the plugin to your plugins directory via FTP or through the Wordpress dashboard.
37
  1. Activate the plugin.
38
- 1. A new menu called 'WP Backitup' will be added to your toolbar.
39
  1. Click 'WP Backitup' to access the backup interface.
40
- 1. Enter your license key to unlock the restoration features.
 
 
41
 
42
  == Frequently Asked Questions ==
43
 
44
- = Can I manually restore my backup zips? =
45
- Sure! The backup zips generated by WP Backitup contain a database dump and a copy of your wp-content directory. Simply upload your files and import your database.
 
 
 
 
 
46
 
47
  = Is there an easier way to restore my backup zips? =
48
- Yes, purchase and download <a href="http://www.wpbackitup.com" title="WP Backitup">WP Backitup</a>. Once installed, you'll be able to restore you backup zips without FTP or MySQL.
 
 
 
49
 
50
- = Will the plugin work on shared hosting/sub domains/webhost xxx? =
51
- Yes.
52
 
53
- = Will WP Backitup work on Windows hosting? =
54
- Yes.
55
 
56
- = Can this plugin backup to Amazon S3, dropbox or google drive? =
57
- This will feature in an upcoming version of WP Backitup.
58
 
59
  = Is there an auto back up schedule feature? =
60
- It is likely this will feature in a new version of WP Backitup.
61
 
62
- = Will the plugin work with Wordpres version x.x? =
63
- The plugin works on the latest release of WordPress and is updated to function with all new releases.
64
 
65
- = Can this backup one version of WordPress to a different version? =
66
- No. It is absolutely critical that your WordPress versions are exactly the same.
67
 
68
  = Will WP Backitup work on WordPress Multisite? =
69
- WP Backitup cannot yet backup/restore entire networks but it is compatible with WPMS sites.
 
 
 
 
70
 
71
- = Does the plugin copy the database details as well? =
72
- Yes, a database dump is created with each backup.
73
 
74
- = Can I make a basic WordPress site, with all my desired plugins and settings, make a few pages, setup permalinks, remove all the default junk and load in a basic themplate? =
75
- Yes. WP Backitup can be used to create a good starting point for any and all sites you work on.
76
 
77
- = Does WP Backitup need to be installed? =
78
- Yes. You must install the WP Backitup plugin on the site you wish to backup and the site you wish to restore to. Its just a simple plugin.
79
 
80
  = Does WP Backitup backup plugins settings or just the plugins themselves? =
81
- WP Backitup creates a database dump and a backup of all your themes, plugins and uploads.
82
 
83
- = Do you have any ideas about how large a blog is too big for WP Backitup to handle? =
84
- I`ve tested up to 5 themes, 20 plugins and 100 posts/pages without any issues.
85
 
86
  = Do you do regularly update this product to match with WP version updates? =
87
- Yes.
 
 
 
 
 
 
 
 
 
88
 
89
  == Screenshots ==
90
  1. Once activated, the plugin loads a new menu into your toolbar.
@@ -92,6 +147,12 @@ Yes.
92
  3. When the backup has been created, click the download link to access a zipped backup of your site.
93
 
94
  == Changelog ==
 
 
 
 
 
 
95
  = 1.7.5 =
96
  * Feature: Add exclusion of non-WP Backitup backups to increase performance
97
  * Fix: correct date issue for php 5.2 users
@@ -120,7 +181,7 @@ Yes.
120
  * Major user interface improvements
121
  * Improvements to upload functionality
122
  * Add Feature: Backup Email Notifications
123
- * Add Feature: Backup Retention
124
  * Bug fix: Create Backup & Restore folders on activation
125
  * Updates to license activation
126
 
@@ -144,12 +205,12 @@ Yes.
144
  * Fixed issue with version 1.6.1 update.
145
 
146
  = 1.6.1 =
147
- * This release is mostly cosmetic changes and minor fixes to v1.6.0
148
  * Corrected path issue occurring on unix platform
149
  * Updated backup zip to remove blanks in file name
150
  * Changed backup suffix to backup instead of export
151
  * Corrected backup.sql export file size check
152
- * Fix license check for restore option
153
  * Update usage tracking default to off
154
  * Correct issue with manual data export that contain non-ascii characters
155
  * Add Date Time stamp on SQL restore export
@@ -190,34 +251,34 @@ Fixed status reporting for backup/restore process and built-in localization.
190
  = 1.3.0 =
191
  Recommended upgrade: Amalgameted lite and pro versions of the plugin.
192
 
193
- = 1.2.2 =
194
  Major updates to improve plugin performance and stability.
195
 
196
- = 1.2.1 =
197
  Minor updates to plugin functionality.
198
 
199
- = 1.2.0 =
200
  Brought versioning inline with WP Backitup Lite. Fixed incorrecy message on restore interface. Fixed restorationcess.
201
 
202
- = 1.1.0 =
203
  Backup from mysqldump, restore from mysql command line, restore functionality from uploaded files, file size limit check according to server before uploads, setInterval termination after operation, status update as the task completes using XML.
204
 
205
- = 1.0.9 =
206
  Introduced mysqldump for backup and shell exec for copy/delete operations.
207
 
208
- = 1.0.8 =
209
  Added ability to restore from server.
210
 
211
- = 1.0.7 =
212
  Improved auto-update facility and plugin stability.
213
 
214
- = 1.0.6 =
215
  Fixed critical issues the auto-upgradecess.
216
 
217
- = 1.0.5 =
218
  Fixed critical issues the auto-upgradecess.
219
 
220
- = 1.0.4 =
221
  Fixed issues with the restorationcess.
222
 
223
  = 1.0.3 =
@@ -230,7 +291,7 @@ Minor bugs patched for auto-update engine.
230
  WP Backitup integrated with licensing and auto-update engine.
231
 
232
  = 1.0.0 =
233
- Initial version of the plugin released.
234
 
235
  == Upgrade Notice ==
236
 
@@ -270,31 +331,31 @@ Recommended upgrade: Minor update to plugin structure.
270
  = 1.1.0 =
271
  Critical upgrade: Improved plugin performance.
272
 
273
- = 1.0.9 =
274
  Recommended upgrade: Improved reliability and performance.
275
 
276
- = 1.0.8 =
277
  Recommended upgrade: Improved functionality
278
 
279
- = 1.0.7 =
280
- Critical upgrade: Fixed major bugs with auto-upgradecess.
281
 
282
- = 1.0.6 =
283
- Critical upgrade: Fixed major bugs with auto-upgradecess.
284
 
285
- = 1.0.5 =
286
- Critical upgrade: Fixed major bugs with auto-upgradecess.
287
 
288
- = 1.0.4 =
289
- Critical upgrade: Fixed major bugs with restorationcess.
290
 
291
  = 1.0.3 =
292
- Critical upgrade: Patched auto-update engine.
293
 
294
- = 1.0.2 =
295
  Non-critical upgrade: Patched auto-update engine.
296
 
297
- = 1.0.1 =
298
  Recommended upgrade: Added the licensing and auto-update engine.
299
 
300
  = 1.0.0 =
5
  backup buddy,
6
  Requires at least: 3.8.0
7
  Tested up to: 3.9.1
8
+ Stable tag: 1.7.5.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
+ Simple & complete backups of your WordPress website with this easy to use plugin.
13
 
14
  == Description ==
15
 
16
+ = The Simplest Way to Backup Your Wordpress Site =
17
+ Backing up your Wordpress website is easy with WP BackItUp. Simply install WP BackItUp and within minutes you will have a complete backup of your entire site. No complex configuration to deal with. No advanced knowledge of Wordpress required. No FTP, cPanel , MySQL, or PHPMyAdmin involved. If you can press a button then you can backup your Wordpress site with WP BackItUp.
 
18
 
19
+ WP BackItUp creates a backup archive (zip) of your entire website (database, plugins, themes, uploads, content) with a single click. Backup archives can be quickly and easily downloaded so that they can be stored securely and separately from your hosted Wordpress site.
 
20
 
21
+ Here are just a few of our incredible features.
 
22
 
23
+ **Features**
24
+ ------------
25
+ * **Easy to use**, just one click and your site is backed up
26
+ * **Easy to setup** because there is no setup required
27
+ * **Simple** & easy to understand interface
28
+ * **Fast** backups
29
+ * Support if you run into any trouble
30
+ * Status notifications by email
31
+ * Works in low memory & shared hosting environments
32
+ * Works on all Wordpress platforms (Linux & Windows Server)
33
+ * **Complete backup**, which includes database, plugins, themes, uploads, everything
34
+ * Compresses(zip) your backups to **save** you **space**
35
+ * Stores backups to a folder on your server
36
+ * Download backup archives right from your WordPress dashboard
37
+ * Cleans up all work files to save space
38
+ * Simple **restore** right from your Wordpress dashboard(premium only)
39
+ * Debug mode that provides full logging of the backup
40
+ * Tested and supported on all current PHP versions (5.2, 5.3, 5.4, 5.5)
41
+ * Premium version and priority support available
42
+
43
+
44
+ = Don't Risk Losing Your Website =
45
+ Does the thought of losing your website keep you up at night? All the time, effort and money you've invested, gone in an instant. Wordpress is an incredible product but there are many things that can cause you to lose your website. You could get hacked, your hosting company could go out of business, you could install a bad plugin or theme, the list is endless and without good backups, you could lose everything. If this isn't one of the things keeping you up at night, then it really should be. It was keeping us up at night so we decided to do something about it.
46
+
47
+ In 2012 we created the WP BackItUp plugin and made it freely available to the Wordpress community so that we can all sleep better at night knowing our content is safe. Since 2012 we have added many incredible features and even created a premium version, but our fundamental goal is still the same. We want to make Wordpress backups as **simple**, **effective** and **easy** as possible because we don’t want anything to stop you from backing up your Wordpress site regularly. We offer this plugin to you for free so that you will **BackItUp** and sleep better at night.
48
+
49
+ = Automatically Restore/Clone/Migrate your Website? =
50
+ Need to restore, clone or migrate your website to another host, we make that easy too. The premium version of WP BackItUp will allow you to restore your site from backup with a single click. All you need to do is select the backup you want to restore and click restore, right from your Wordpress dashboard. That’s it, your site is back up and running in minutes.
51
+
52
+ = Free Support =
53
+ We offer free support via the Wordpress [support forum](http://wordpress.org/support/plugin/wp-backitup) for this plugin but before posting a question please make sure you are running the current version of WP BackItUp. We make frequent releases to add features and fix issues so please make sure you are up to date before posting an issue. We also ask that you review the [online documentation](http://www.wpbackitup.com/documentation/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=description&utm_term=free+support+doc) and [FAQ's](https://www.wpbackitup.com/documentation/faqs/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=description&utm_term=free+support+faq) sections of [www.wpbackitup.com](http://www.wpbackitup.com/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=description&utm_term=free+support+a) before posting your questions.
54
+
55
+ = Professional Support =
56
+ WP BackItUp is supported by a team of professional developers. If you are using WP BackItUp to secure your business website then professional support is available to our premium customers. Please see [www.wpbackitup.com](http://www.wpbackitup.com/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=description&utm_term=professional+support+a) for details.
57
+
58
+ = Premium Plugin Available =
59
+ WP BackItUp premium allows you to restore your backups from the WordPress dashboard in minutes or get a full money-back refund. You can purchase a [no-risk WP Backitup license](https://www.wpbackitup.com/pricing-purchase/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=description&utm_term=premium+plugin+no+risk) anytime from the WP Backitup site.
60
 
61
  = More questions? =
62
+ Please review our [FAQ’s](http://wordpress.org/plugins/wp-backitup/faq/) or ask them in the [support forum](http://wordpress.org/support/plugin/wp-backitup).
63
 
64
  == Installation ==
65
 
66
+ Installing WP-BackItUp is very easy and straightforward.
67
 
68
+ 1. Search for 'WP BackItUp' in the WordPress.org plugin directory and click install. Or, upload the files to your wp-content/wp-backitup/ folder.
69
  1. Activate the plugin.
70
+ 1. A new menu called 'WP Backitup' will be added to the left side navigation of your WordPress dashboard.
71
  1. Click 'WP Backitup' to access the backup interface.
72
+ 1. Enter your sites license key for premium features. You may purchase a license key at [www.wpbackitup.com](https://www.wpbackitup.com/pricing-purchase/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=installation&utm_term=install+license)
73
+
74
+ You can find more detailed instructions at [www.wpbackitup.com](http://wpbackitup.com/documentation/faqs/install/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=installation&utm_term=install+instructions)
75
 
76
  == Frequently Asked Questions ==
77
 
78
+ = Is WP BackItUp really free? =
79
+ Yes, we have provided WP BackItUp free to the WordPress community since 2012. We do this because we don't want there to be any reason **you** aren't backing up your WordPress site, it's that important.
80
+
81
+ The free version is made possible by our generous premium customers. Please use WP BackItUp free for as long as needed but if you are able, consider supporting our community by becoming a premium customer. See [www.wpbackitup.com/premium](https://www.wpbackitup.com/pricing-purchase/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=free+pricing) for details.
82
+
83
+ = Can I manually restore my WP BackItUp archive(zip)? =
84
+ Sure! The backup archive generated by WP BackItUp contains everything you need to restore your WordPress site. We even created a guide to help you. Please see [www.wpbackitup.com/manual-restore](https://www.wpbackitup.com/documentation/restore/how-to-manually-restore-your-wordpress-database/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=manual+restore) for details.
85
 
86
  = Is there an easier way to restore my backup zips? =
87
+ Yes, the premium version of WP BackItUp provides a one click restore option. If you can click a button then you can restore your site. Please see [www.wpbackitup.com](https://www.wpbackitup.com/pricing-purchase/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=easy+restore+pricing) for pricing info and our [no-risk offer](https://www.wpbackitup.com/pricing-purchase/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=easy+restore+no+risk).
88
+
89
+ = How long do backups take? =
90
+ WP BackItUp is really fast. Unless your site is extremely large(many gigabytes) it should only take a few minutes for your backup to complete. If your back up has been running for longer than 15 minutes then there may be an issue. Before contacting support please close your browser and try the backup again. If it continues happening, contact support.
91
 
92
+ = Will the plugin work on shared hosts, sub domains or my host? =
93
+ Yes, WP BackItUp has been around since 2012 and has over 30,000 installs all over the world. WP BackItUp can be used safely and easily on most hosts and set-ups.
94
 
95
+ = Will WP BackItUp work on Windows hosting? =
96
+ Yes. WP BackItUp works on both Windows and Linux hosts. WP BackItUp even works with WordPress sites hosted on Windows Azure.
97
 
98
+ = Does this plugin backup to Amazon S3, dropbox or google drive? =
99
+ Not yet but this feature will be available in an upcoming version of WP BackItUp. We listen to requests so if this is an important feature to you then please let us know by submitting a [feature request](https://www.wpbackitup.com/feature-request/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=dropbox+feature+request).
100
 
101
  = Is there an auto back up schedule feature? =
102
+ Not yet but this feature will be available in an upcoming version of WP BackItUp. We listen to requests so if this is an important feature to you then please let us know by submitting a [feature request](https://www.wpbackitup.com/feature-request/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=dropbox+feature+request).
103
 
104
+ = Will WP BackItUp work with WordPress version x.x? =
105
+ WP BackItUp works on the current release of WordPress and is updated to function with all new releases.
106
 
107
+ = Can my backup be used to restore to a different version of WordPress? =
108
+ This is a tough one. In many cases the backups created by WP BackItUp can be used to restore to a different version of WordPress but this is **not recommended**. It is very important that you keep all your WordPress versions the same but if you find yourself in this situation then all may not be lost. Please contact support [www.wpbackitup.com/support](https://www.wpbackitup.com/support/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=different+version+support) before attempting this on your own.
109
 
110
  = Will WP Backitup work on WordPress Multisite? =
111
+ WP Backitup cannot yet backup/restore entire networks but it is compatible with WordPress MultiSite (WPMS) installs.
112
+
113
+ = Does WP BackItUp backup the WordPress database? =
114
+ Yes it does. Your entire database will be exported into a SQL file and saved in the backup archive created by WP BackItUp. This file is used by WP BackItUp premium to restore your site and may be also be used for manual restores.
115
+ Please see [www.wpbackitup.com](https://www.wpbackitup.com/pricing-purchase/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=database+pricing) for information about WP BackItUp premium or for [manual-restore instructions](https://www.wpbackitup.com/documentation/restore/how-to-manually-restore-your-wordpress-database/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=database+manual+restore)
116
 
117
+ = Does the plugin backup the database details as well? =
118
+ Yes, the database export contains everything related to the database.
119
 
120
+ = Can I make a basic WordPress site, with all my desired plugins and settings, make a few pages, setup permalinks, remove all the default junk and then use it as a template for all my new WordPress sites? =
121
+ Yes. WP BackItUp is used by many professional designers & developers just this way. Once you have your Wordpress site setup the way you want, just BackItUp and use that backup archive as a starting point for all your new sites.
122
 
123
+ = Does WP BackItUp need to be installed? =
124
+ Yes, WP BackItUp is just like any other WordPress plugin. You must install it on any site that you wish to perform a backup or restore.
125
 
126
  = Does WP Backitup backup plugins settings or just the plugins themselves? =
127
+ WP Backitup creates a backup of **everything**. This includes plugins, plugin settings, themes, theme settings, pages, posts, users, uploads, everything.
128
 
129
+ = Do you have any idea when a WordPress site becomes too large for WP BackItUp to handle? =
130
+ WP BackItUp can be used to backup very large sites. We`ve tested up to 5 themes, 20 plugins and more than 100 posts/pages without any issues.
131
 
132
  = Do you do regularly update this product to match with WP version updates? =
133
+ Yes. We continually improve WP BackItUp and test it with every new version ow Wordpress.
134
+
135
+ = I am not running the most recent version of WP BackItUp. Should I upgrade? =
136
+ Yes, please make sure you are always running the current version of WP BackItUp.
137
+
138
+ = Further Support & Feedback =
139
+ General support questions should be posted in the WordPress support forums. If you are WP BackItup premium customer then support requests may be submitted to [www.wpbackitup.com/support](https://www.wpbackitup.com/support/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=further+support+support)
140
+
141
+ Our online documentation and full list of FAQs can be found at [www.wpbackitup.com/help](https://www.wpbackitup.com/documentation/?utm_medium=partner&utm_source=wordpress.org&utm_campaign=plugin+directory&utm_content=faq&utm_term=further+support+help)
142
+
143
 
144
  == Screenshots ==
145
  1. Once activated, the plugin loads a new menu into your toolbar.
147
  3. When the backup has been created, click the download link to access a zipped backup of your site.
148
 
149
  == Changelog ==
150
+ = 1.7.5.1 =
151
+ * This is a minor release with some small UI fixes.
152
+ * Feature: Add lite registration
153
+ * Fix: correct license expiration month
154
+ * Fix: added namespace prefix to all ajax actions
155
+
156
  = 1.7.5 =
157
  * Feature: Add exclusion of non-WP Backitup backups to increase performance
158
  * Fix: correct date issue for php 5.2 users
181
  * Major user interface improvements
182
  * Improvements to upload functionality
183
  * Add Feature: Backup Email Notifications
184
+ * Add Feature: Backup Retention
185
  * Bug fix: Create Backup & Restore folders on activation
186
  * Updates to license activation
187
 
205
  * Fixed issue with version 1.6.1 update.
206
 
207
  = 1.6.1 =
208
+ * This release is mostly cosmetic changes and minor fixes to v1.6.0
209
  * Corrected path issue occurring on unix platform
210
  * Updated backup zip to remove blanks in file name
211
  * Changed backup suffix to backup instead of export
212
  * Corrected backup.sql export file size check
213
+ * Fix license check for restore option
214
  * Update usage tracking default to off
215
  * Correct issue with manual data export that contain non-ascii characters
216
  * Add Date Time stamp on SQL restore export
251
  = 1.3.0 =
252
  Recommended upgrade: Amalgameted lite and pro versions of the plugin.
253
 
254
+ = 1.2.2 =
255
  Major updates to improve plugin performance and stability.
256
 
257
+ = 1.2.1 =
258
  Minor updates to plugin functionality.
259
 
260
+ = 1.2.0 =
261
  Brought versioning inline with WP Backitup Lite. Fixed incorrecy message on restore interface. Fixed restorationcess.
262
 
263
+ = 1.1.0 =
264
  Backup from mysqldump, restore from mysql command line, restore functionality from uploaded files, file size limit check according to server before uploads, setInterval termination after operation, status update as the task completes using XML.
265
 
266
+ = 1.0.9 =
267
  Introduced mysqldump for backup and shell exec for copy/delete operations.
268
 
269
+ = 1.0.8 =
270
  Added ability to restore from server.
271
 
272
+ = 1.0.7 =
273
  Improved auto-update facility and plugin stability.
274
 
275
+ = 1.0.6 =
276
  Fixed critical issues the auto-upgradecess.
277
 
278
+ = 1.0.5 =
279
  Fixed critical issues the auto-upgradecess.
280
 
281
+ = 1.0.4 =
282
  Fixed issues with the restorationcess.
283
 
284
  = 1.0.3 =
291
  WP Backitup integrated with licensing and auto-update engine.
292
 
293
  = 1.0.0 =
294
+ Initial version of the plugin released.
295
 
296
  == Upgrade Notice ==
297
 
331
  = 1.1.0 =
332
  Critical upgrade: Improved plugin performance.
333
 
334
+ = 1.0.9 =
335
  Recommended upgrade: Improved reliability and performance.
336
 
337
+ = 1.0.8 =
338
  Recommended upgrade: Improved functionality
339
 
340
+ = 1.0.7 =
341
+ Critical upgrade: Fixed major bugs with auto-upgradecess.
342
 
343
+ = 1.0.6 =
344
+ Critical upgrade: Fixed major bugs with auto-upgradecess.
345
 
346
+ = 1.0.5 =
347
+ Critical upgrade: Fixed major bugs with auto-upgradecess.
348
 
349
+ = 1.0.4 =
350
+ Critical upgrade: Fixed major bugs with restorationcess.
351
 
352
  = 1.0.3 =
353
+ Critical upgrade: Patched auto-update engine.
354
 
355
+ = 1.0.2 =
356
  Non-critical upgrade: Patched auto-update engine.
357
 
358
+ = 1.0.1 =
359
  Recommended upgrade: Added the licensing and auto-update engine.
360
 
361
  = 1.0.0 =
views/backup.php CHANGED
@@ -9,7 +9,7 @@
9
  //Get license info
10
  $version = $this->version;
11
  $license_key = $this->license_key();
12
- $license_active = $this->license_active();
13
 
14
  $license_type = $this->license_type();
15
  $license_type_description = $this->license_type_description();
@@ -26,8 +26,8 @@
26
  // get retention number set
27
  $retain_archives = $this->backup_retained_number();
28
 
29
- $campaign='lite';
30
- if ($license_active) $campaign='premium';
31
 
32
  //Make sure backup folder exists
33
  $backup_dir = WPBACKITUP__CONTENT_PATH . '/' . WPBACKITUP__BACKUP_FOLDER;
@@ -47,7 +47,7 @@
47
  //Fatal Error - no backup folder
48
  if (!$backup_folder_exists) {
49
  echo '<div class="error"><p><strong>Error: Backup folder does not exist. Please contact ';
50
- echo($this->get_anchor_with_utm('support','support' ,$campaign,'backup+error','no+backup+folder'));
51
  echo ' for assistance.</strong></p></div>';
52
  }
53
  ?>
@@ -68,7 +68,7 @@ if (!$backup_folder_exists) {
68
  <?php
69
  //Display a note for lite customers
70
  if (!$license_active)
71
- echo '<p> * WP BackItUp Lite customers may use these backup files to manually restore their site. Please visit ' .$this->get_anchor_with_utm(WPBACKITUP__SITE_URL,'documentation/restore',$campaign,'backup','manual+restore') .' for manual restore instructions.</p>';
72
  ?>
73
  </div>
74
 
@@ -142,7 +142,7 @@ if (!$backup_folder_exists) {
142
  <?php
143
  //Display restore note for lite customers
144
  if (!$license_active)
145
- echo '<p>* The automated restore feature is only available to licensed WP BackItUp customers. Please visit ' .$this->get_anchor_with_utm(WPBACKITUP__SITE_URL,'pricing-purchase',$campaign,'available+backups','risk+free') . ' to get WP BackItUp risk free for 30 days.</p>';
146
  ?>
147
  </div>
148
 
@@ -204,11 +204,23 @@ if (!$backup_folder_exists) {
204
  <div id="sidebar">
205
  <!-- Display opt-in form if the user is unregistered -->
206
  <?php if (!$license_active) : ?>
207
- <div class="widget">
208
- <h3 class="promo"><?php _e('Get a license', $namespace); ?></h3>
209
- <p><?php _e('Tired of messing with FTP, MySQL and PHPMyAdmin? Restore your backups from this page in minutes or your money back', $namespace); ?>.</p>
210
- <?php echo($this->get_anchor_with_utm('Purchase a license for WP BackItUp','pricing-purchase',$campaign,'get+license','purchase')) ?>
211
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
212
  <?php endif; ?>
213
 
214
 
@@ -257,11 +269,12 @@ if (!$backup_folder_exists) {
257
  <?php endif; ?>
258
 
259
  <?php if ($license_status=='invalid' || $license_status==''): ?>
260
- <p>Purchase a <?php echo($this->get_anchor_with_utm('no-risk','pricing-purchase',$campaign,'license','no+risk'))?> license using the purchase link above.</p>
261
  <?php endif; ?>
262
 
263
  <?php if ($license_status=='expired'): ?>
264
- <div>License expired? <?php echo($this->get_anchor_with_utm('here','documentation/faqs/expired-license',$campaign,'license','license+expired'))?> for more info.</div>
 
265
  <?php endif; ?>
266
 
267
 
@@ -272,12 +285,16 @@ if (!$backup_folder_exists) {
272
  <h3 class="promo"><?php _e('Useful Links', $namespace); ?></h3>
273
  <ul>
274
  <?php if ($license_active) : ?>
275
- <li><?php echo($this->get_anchor_with_utm('Your account','your-account',$campaign,'useful+links','your+account'))?></li>
276
- <li><?php echo($this->get_anchor_with_utm('Upgrade your license','pricing-purchase',$campaign,'useful+links','upgrade+license'))?></li>
277
  <?php endif; ?>
278
- <li><?php echo($this->get_anchor_with_utm('Documentation','documentation',$campaign,'useful+links','help'))?></li>
279
- <li><?php echo($this->get_anchor_with_utm('Get support','support' ,$campaign,'useful+links','get+support'))?></li>
280
- <li><?php echo($this->get_anchor_with_utm('Feature request','feature-request' ,$campaign,'useful+links','feature+request'))?></li>
 
 
 
 
281
  <li>Have a suggestion? Why not submit a feature request.</li>
282
  </ul>
283
  </div>
9
  //Get license info
10
  $version = $this->version;
11
  $license_key = $this->license_key();
12
+ $license_active = $this->license_active();
13
 
14
  $license_type = $this->license_type();
15
  $license_type_description = $this->license_type_description();
26
  // get retention number set
27
  $retain_archives = $this->backup_retained_number();
28
 
29
+ $lite_registration_email = $this->lite_registration_email();
30
+ $is_lite_registered = $this->is_lite_registered();
31
 
32
  //Make sure backup folder exists
33
  $backup_dir = WPBACKITUP__CONTENT_PATH . '/' . WPBACKITUP__BACKUP_FOLDER;
47
  //Fatal Error - no backup folder
48
  if (!$backup_folder_exists) {
49
  echo '<div class="error"><p><strong>Error: Backup folder does not exist. Please contact ';
50
+ echo($this->get_anchor_with_utm('support','support','backup+error','no+backup+folder'));
51
  echo ' for assistance.</strong></p></div>';
52
  }
53
  ?>
68
  <?php
69
  //Display a note for lite customers
70
  if (!$license_active)
71
+ echo '<p> * WP BackItUp Lite customers may use these backup files to manually restore their site. Please visit ' .$this->get_anchor_with_utm(WPBACKITUP__SITE_URL,'documentation/restore/how-to-manually-restore-your-wordpress-database','backup','manual+restore') .' for manual restore instructions.</p>';
72
  ?>
73
  </div>
74
 
142
  <?php
143
  //Display restore note for lite customers
144
  if (!$license_active)
145
+ echo '<p>* The automated restore feature is only available to licensed WP BackItUp customers. Please visit ' .$this->get_anchor_with_utm(WPBACKITUP__SITE_URL,'pricing-purchase','available+backups','risk+free') . ' to get WP BackItUp risk free for 30 days.</p>';
146
  ?>
147
  </div>
148
 
204
  <div id="sidebar">
205
  <!-- Display opt-in form if the user is unregistered -->
206
  <?php if (!$license_active) : ?>
207
+ <?php if (!$is_lite_registered) : ?>
208
+ <form action="" method="post" id="<?php echo $namespace; ?>-form">
209
+ <?php wp_nonce_field($namespace . "-register-lite"); ?>
210
+ <div class="widget">
211
+ <h3 class="promo"><?php _e('Register WP BackItUp', $namespace); ?></h3>
212
+ <p><?php _e('Enter your email address to register your version of WP BackItUp. Registered users will receive <b>special offers</b> and access to our world class <b>support</b> team.', $namespace); ?></p>
213
+ <input type="text" name="email" id="email" placeholder="email address" value="<?php echo($lite_registration_email) ?>" />
214
+ <div class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e("Register", $namespace) ?>" /></div>
215
+ </div>
216
+ </form>
217
+ <?php else : ?>
218
+ <div class="widget">
219
+ <h3 class="promo"><?php _e('Get a license', $namespace); ?></h3>
220
+ <p><?php _e('Tired of messing with FTP, MySQL and PHPMyAdmin? Restore your backups from this page in minutes or your money back', $namespace); ?>.</p>
221
+ <?php echo($this->get_anchor_with_utm('Purchase a license for WP BackItUp','pricing-purchase','get+license','purchase')) ?>
222
+ </div>
223
+ <?php endif ?>
224
  <?php endif; ?>
225
 
226
 
269
  <?php endif; ?>
270
 
271
  <?php if ($license_status=='invalid' || $license_status==''): ?>
272
+ <p>Purchase a <?php echo($this->get_anchor_with_utm('no-risk','pricing-purchase','license','no+risk'))?> license using the purchase link above.</p>
273
  <?php endif; ?>
274
 
275
  <?php if ($license_status=='expired'): ?>
276
+ <div>License expired? <?php echo($this->get_anchor_with_utm('Renew Now ','documentation/faqs/expired-license','license','license+expired'))?> and save 20%.</div>
277
+ <div>* Offer valid for a limited time!</div>
278
  <?php endif; ?>
279
 
280
 
285
  <h3 class="promo"><?php _e('Useful Links', $namespace); ?></h3>
286
  <ul>
287
  <?php if ($license_active) : ?>
288
+ <li><?php echo($this->get_anchor_with_utm('Your account','your-account','useful+links','your+account'))?></li>
289
+ <li><?php echo($this->get_anchor_with_utm('Upgrade your license','pricing-purchase','useful+links','upgrade+license'))?></li>
290
  <?php endif; ?>
291
+ <li><?php echo($this->get_anchor_with_utm('Documentation','documentation','useful+links','help'))?></li>
292
+
293
+ <?php if ($license_active || $is_lite_registered) : ?>
294
+ <li><?php echo($this->get_anchor_with_utm('Get support','support' ,'useful+links','get+support'))?></li>
295
+ <?php endif; ?>
296
+
297
+ <li><?php echo($this->get_anchor_with_utm('Feature request','feature-request' ,'useful+links','feature+request'))?></li>
298
  <li>Have a suggestion? Why not submit a feature request.</li>
299
  </ul>
300
  </div>
views/restore.php CHANGED
@@ -7,8 +7,6 @@
7
  $backup_folder_root = WPBACKITUP__BACKUP_PATH .'/';
8
 
9
  $license_active = $this->license_active();
10
- $campaign='lite';
11
- if ($license_active) $campaign='premium';
12
 
13
  //Make sure backup folder exists
14
  $backup_dir = WPBACKITUP__CONTENT_PATH . '/' . WPBACKITUP__BACKUP_FOLDER;
@@ -38,14 +36,14 @@
38
  //Fatal Error - no backup folder
39
  if (!$backup_folder_exists) {
40
  echo '<div class="error"><p><strong>Error: Backup folder does not exist. Please contact ';
41
- echo($this->get_anchor_with_utm('support','support' ,$campaign,'restore+error','no+backup+folder'));
42
  echo ' for assistance.</strong></p></div>';
43
  }
44
 
45
  //Fatal Error - no restore folder
46
  if (!$restore_folder_exists) {
47
  echo '<div class="error"><p><strong>Error: Restore folder does not exist. Please contact ';
48
- echo($this->get_anchor_with_utm('support','support' ,$campaign,'restore+error','no+restore+folder'));
49
  echo ' for assistance.</strong></p></div>';
50
  }
51
  ?>
7
  $backup_folder_root = WPBACKITUP__BACKUP_PATH .'/';
8
 
9
  $license_active = $this->license_active();
 
 
10
 
11
  //Make sure backup folder exists
12
  $backup_dir = WPBACKITUP__CONTENT_PATH . '/' . WPBACKITUP__BACKUP_FOLDER;
36
  //Fatal Error - no backup folder
37
  if (!$backup_folder_exists) {
38
  echo '<div class="error"><p><strong>Error: Backup folder does not exist. Please contact ';
39
+ echo($this->get_anchor_with_utm('support','support' ,'restore+error','no+backup+folder'));
40
  echo ' for assistance.</strong></p></div>';
41
  }
42
 
43
  //Fatal Error - no restore folder
44
  if (!$restore_folder_exists) {
45
  echo '<div class="error"><p><strong>Error: Restore folder does not exist. Please contact ';
46
+ echo($this->get_anchor_with_utm('support','support' ,'restore+error','no+restore+folder'));
47
  echo ' for assistance.</strong></p></div>';
48
  }
49
  ?>
views/settings.php CHANGED
@@ -3,29 +3,44 @@
3
  $page_title = $this->friendly_name . ' Settings';
4
  $namespace = $this->namespace;
5
 
 
 
 
 
 
 
 
 
 
6
  ?>
7
 
8
  <div class="wrap">
9
  <h2><?php echo $page_title; ?></h2>
10
  <div id="content">
11
 
12
- <!-- Display Settings widget -->
13
- <form action="admin-post.php" method="post" id="<?php echo $namespace; ?>-form">
14
- <?php wp_nonce_field($namespace . "-update-options"); ?>
15
- <div class="widget">
16
- <h3 class="promo"><i class="fa fa-envelope"></i> Email Notifications</h3>
17
- <p><b>Please enter your email address if you would like to receive backup email notifications.</b></p>
18
- <p><?php _e('Backup email notifications will be sent for every backup and will contain status information related to the backup.', $namespace); ?></p>
19
- <p><input type="text" name="data[notification_email]" value="<?php echo $this->notification_email(); ?>" size="30"></p>
20
- <div class="submit"><input type="submit" name="Save_Email" class="button-primary" value="<?php _e("Save", $namespace) ?>" /></div>
21
- <?php
22
- if ( false !== ( $msg = get_transient('settings-error-email') ) && $msg)
23
- {
24
- echo '<p class="error">'.$msg.'</p>';
25
- delete_transient('settings-error-email');
26
- }
27
- ?>
28
- </div>
 
 
 
 
 
 
29
 
30
  <div class="widget">
31
  <h3 class="promo"><i class="fa fa-trash-o"></i> Backup Retention</h3>
3
  $page_title = $this->friendly_name . ' Settings';
4
  $namespace = $this->namespace;
5
 
6
+ $license_active = $this->license_active();
7
+ $is_lite_registered = $this->is_lite_registered();
8
+
9
+ //Hold off on this for a bit
10
+ $disabled='';
11
+ // if (!$license_active && !$is_lite_registered){
12
+ // $disabled='disabled';
13
+ // }
14
+
15
  ?>
16
 
17
  <div class="wrap">
18
  <h2><?php echo $page_title; ?></h2>
19
  <div id="content">
20
 
21
+
22
+ <!-- Display Settings widget -->
23
+ <form action="admin-post.php" method="post" id="<?php echo $namespace; ?>-form">
24
+ <?php wp_nonce_field($namespace . "-update-options"); ?>
25
+ <div class="widget">
26
+ <h3 class="promo"><i class="fa fa-envelope"></i> Email Notifications</h3>
27
+ <p><b>Please enter your email address if you would like to receive backup email notifications.</b></p>
28
+ <p><?php _e('Backup email notifications will be sent for every backup and will contain status information related to the backup.', $namespace); ?></p>
29
+ <p><input type="text" name="data[notification_email]" value="<?php echo $this->notification_email(); ?>" size="30"></p>
30
+ <div class="submit"><input <?php echo($disabled) ; ?> type="submit" name="Save_Email" class="button-primary" value="<?php _e("Save", $namespace) ?>" />
31
+ <!-- --><?php //if (!$license_active && !$is_lite_registered) : ?>
32
+ <!-- * Please register WP BackItUp to use this feature.-->
33
+ <!-- --><?php //endif; ?>
34
+ </div>
35
+ <?php
36
+ if ( false !== ( $msg = get_transient('settings-error-email') ) && $msg)
37
+ {
38
+ echo '<p class="error">'.$msg.'</p>';
39
+ delete_transient('settings-error-email');
40
+ }
41
+ ?>
42
+ </div>
43
+
44
 
45
  <div class="widget">
46
  <h3 class="promo"><i class="fa fa-trash-o"></i> Backup Retention</h3>
wp-backitup.php CHANGED
@@ -12,7 +12,7 @@
12
  Plugin Name: WP Backitup
13
  Plugin URI: http://www.wpbackitup.com
14
  Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
15
- Version: 1.7.5
16
  Author: Chris Simmons
17
  Author URI: http://www.wpbackitup.com
18
  License: GPL3
@@ -34,7 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
34
  */
35
 
36
  define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
37
- define( 'WPBACKITUP__VERSION', '1.7.5');
38
  define( 'WPBACKITUP__DEBUG', false );
39
  define( 'WPBACKITUP__MINIMUM_WP_VERSION', '3.0' );
40
  define( 'WPBACKITUP__ITEM_NAME', 'WP Backitup' );
12
  Plugin Name: WP Backitup
13
  Plugin URI: http://www.wpbackitup.com
14
  Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
15
+ Version: 1.7.5.1
16
  Author: Chris Simmons
17
  Author URI: http://www.wpbackitup.com
18
  License: GPL3
34
  */
35
 
36
  define( 'WPBACKITUP__NAMESPACE', 'wp-backitup' );
37
+ define( 'WPBACKITUP__VERSION', '1.7.5.1');
38
  define( 'WPBACKITUP__DEBUG', false );
39
  define( 'WPBACKITUP__MINIMUM_WP_VERSION', '3.0' );
40
  define( 'WPBACKITUP__ITEM_NAME', 'WP Backitup' );