BackUpWordPress - Version 0.2.4

Version Description

Download this release

Release Info

Developer wpdprx
Plugin Icon 128x128 BackUpWordPress
Version 0.2.4
Comparing to
See all releases

Code changes from version 0.2.3 to 0.2.4

backupwordpress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackUpWordPress
4
  Plugin URI: http://wordpress.designpraxis.at
5
  Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
6
  Author: Roland Rust
7
- Version: 0.2.3
8
  Author URI: http://wordpress.designpraxis.at
9
  */
10
 
@@ -26,7 +26,7 @@ Author URI: http://wordpress.designpraxis.at
26
  */
27
  //return;
28
  $GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
29
- $GLOBALS['bkpwp_version'] = "0.2.3";
30
 
31
  // get the functions
32
  require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
4
  Plugin URI: http://wordpress.designpraxis.at
5
  Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
6
  Author: Roland Rust
7
+ Version: 0.2.4
8
  Author URI: http://wordpress.designpraxis.at
9
  */
10
 
26
  */
27
  //return;
28
  $GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
29
+ $GLOBALS['bkpwp_version'] = "0.2.4";
30
 
31
  // get the functions
32
  require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
bkpwp-classes/manage_backups.php CHANGED
@@ -468,10 +468,8 @@ class BKPWP_BACKUP {
468
  $log['filename'] = $backup_filename_short;
469
  $log['logfile'] = array();
470
  $log['preset'] = $preset['bkpwp_preset_name'];
471
- if (empty($preset['bkpwp_schedule'])) {
472
- $log['schedule'] = __("manually","bkpwp");
473
- } else {
474
- $log['schedule'] = $preset['bkpwp_schedule'];
475
  $preset['bkpwp_preset_options']['bkpwp_lastrun'] = time();
476
  $presets->bkpwp_update_preset($preset);
477
  }
@@ -615,10 +613,12 @@ class BKPWP_BACKUP {
615
  "filename" => $backup_filename_short);
616
  // start the output
617
  $backuprow = new BKPWP_BACKUP_ARCHIVE();
 
618
  ob_start();
619
  $backuprow->bkpwp_get_backup_row($backup,"new_row");
620
- $out = ob_get_contents();
621
  ob_end_clean();
 
622
 
623
  // mail it if bkpwp_automail is set
624
  $bkpwp_automail = get_option("bkpwp_automail");
468
  $log['filename'] = $backup_filename_short;
469
  $log['logfile'] = array();
470
  $log['preset'] = $preset['bkpwp_preset_name'];
471
+ $log['schedule'] = $preset['bkpwp_schedule'];
472
+ if ($preset['bkpwp_schedule'] != __("manually","bkpwp")) {
 
 
473
  $preset['bkpwp_preset_options']['bkpwp_lastrun'] = time();
474
  $presets->bkpwp_update_preset($preset);
475
  }
613
  "filename" => $backup_filename_short);
614
  // start the output
615
  $backuprow = new BKPWP_BACKUP_ARCHIVE();
616
+ $out = "<table class=\"widefat\">";
617
  ob_start();
618
  $backuprow->bkpwp_get_backup_row($backup,"new_row");
619
+ $out .= ob_get_contents();
620
  ob_end_clean();
621
+ $out .= "</table>";
622
 
623
  // mail it if bkpwp_automail is set
624
  $bkpwp_automail = get_option("bkpwp_automail");
bkpwp-pages/bkpwp_manage_backups.php CHANGED
@@ -247,9 +247,6 @@ if (count($backup_archives) < 1) {
247
  <?php } else { ?>
248
  preset = "full backup";
249
  <?php } ?>
250
- document.getElementById('bkpwp_manage_backups_newrow').style.display="table-row";
251
- document.getElementById('bkpwp_manage_backups_newrow').innerHTML="<th scope=\"row\"><?php echo date(get_option('date_format'))." ".date("H:i"); ?></th><td colspan=\"<?php if (!$backups->options->bkpwp_easy_mode()) { echo "8"; } else { echo "3"; } ?>\"><img src='<?php bloginfo("url"); ?>/wp-content/plugins/backupwordpress/images/loading.gif' /> <?php _e("Creating backup. Please wait."); ?> <?php _e("If nothing happens within 30 Seconds, reload this page manually."); ?></td>";
252
- sajax_target_id = 'bkpwp_manage_backups_newrow';
253
  x_bkpwp_ajax_create(preset,'');
254
  }
255
 
@@ -353,7 +350,7 @@ if (count($backup_archives) < 1) {
353
  </p>
354
  <?php }
355
  } ?>
356
- <button class="button" onclick="do_create(); sajax_target_id = ''; return false;"><?php _e("BackUp WordPress Now","bkpwp"); ?> &raquo;</button>
357
  <?php if (!$backups->options->bkpwp_easy_mode()) { ?>
358
  <button class="button" onclick="bkpwp_js_loading('<?php _e("Calculating used disk space","bkpwp"); ?>'); calculate(); sajax_target_id = ''; return false;"><?php _e("Recalculate Used Disk Space","bkpwp"); ?> &raquo;</button>
359
  <?php }
247
  <?php } else { ?>
248
  preset = "full backup";
249
  <?php } ?>
 
 
 
250
  x_bkpwp_ajax_create(preset,'');
251
  }
252
 
350
  </p>
351
  <?php }
352
  } ?>
353
+ <button class="button" onclick="bkpwp_js_loading('<?php _e("Your backup is being processed.","bkpwp"); ?>'); do_create(); sajax_target_id = ''; return false;"><?php _e("BackUp WordPress Now","bkpwp"); ?> &raquo;</button>
354
  <?php if (!$backups->options->bkpwp_easy_mode()) { ?>
355
  <button class="button" onclick="bkpwp_js_loading('<?php _e("Calculating used disk space","bkpwp"); ?>'); calculate(); sajax_target_id = ''; return false;"><?php _e("Recalculate Used Disk Space","bkpwp"); ?> &raquo;</button>
356
  <?php }
functions.php CHANGED
@@ -245,6 +245,7 @@ function bkpwp_ajax_create($preset="") {
245
  $backup = new BKPWP_BACKUP();
246
  $backup->preset = new BKPWP_MANAGE();
247
  $preset = $backup->preset->bkpwp_get_preset($preset);
 
248
  $ret = $backup->bkpwp_do_backup($preset);
249
  return $ret;
250
  }
245
  $backup = new BKPWP_BACKUP();
246
  $backup->preset = new BKPWP_MANAGE();
247
  $preset = $backup->preset->bkpwp_get_preset($preset);
248
+ $preset['bkpwp_schedule'] = __("manually","bkpwp");
249
  $ret = $backup->bkpwp_do_backup($preset);
250
  return $ret;
251
  }
readme.txt CHANGED
@@ -63,6 +63,8 @@ BackUpWordPress utilizes several Open Source Tools:
63
  + [bigdump](http://www.ozerov.de/bigdump.php) for staggered sql import
64
  + [Sajax](http://www.modernmethod.com/sajax/) for ajax support
65
 
 
 
66
  + backupwordpress\Archive\Writer\Tar.php has been debugged around line 80 to handle long filenames according to http://pear.php.net/bugs/bug.php?id=10144&edit=3
67
 
68
  == Changelog ==
@@ -70,30 +72,40 @@ BackUpWordPress utilizes several Open Source Tools:
70
 
71
  Changelog:
72
 
 
 
 
 
73
  Changes in 0.2.3:
 
74
  + Mailing options: multiple email addresses supported
75
  + Backup file size reports also display the size of the database
76
  + Backup archive filesize is estimated
77
  + schedule table rows display the lastrun-timestamp of the last running backup
78
 
79
  Changes in 0.2.2:
 
80
  + Manage Backups now display the type, either scheduled or manual for Advanced as well as EasyMode
81
  + logfile prints out WordPress and BackUpWordPress version for easier posting at http://wpforum.designpraxis.at/
82
  + BackUpWordPress displays "Your backup is being processed" instead of the actions links on the Manage Backups screen as long as archiving is not finished
83
 
84
  Changes in 0.2.1:
 
85
  + old Logfiles are deleted. 10 times the amount of the configured amount of backups to keep is kept.
86
  + feature: backups are done in kind of a staggered process: if BackUpWordPress runs into a server side time-out, BackUpWordPress tries to trigger an single scheduled event for finishing the task. Corresponding dialoques appear on the *Manage Backups* - screen.
87
 
88
  Changes in 0.1.4:
 
89
  + @set_time_limit(0) in functions.php line 277 supresses the 'Cannot set time limit in safe mode' warning
90
  + dialoques streamlined: e.g. when you click "delete" on a backup archive, you just need to hit enter to delete it
91
 
92
  Changes in 0.1.3:
 
93
  + ajax problems fixed
94
  + schedules last run timestamp fixed
95
 
96
  Changes in 0.1.2:
 
97
  + bug fixed: Backup-Now doesn't call Sajax
98
  + bkpwp_delete_old() refactored
99
  + bug fixed: table data is not dumped
63
  + [bigdump](http://www.ozerov.de/bigdump.php) for staggered sql import
64
  + [Sajax](http://www.modernmethod.com/sajax/) for ajax support
65
 
66
+ Some pieces of code have been modified:
67
+
68
  + backupwordpress\Archive\Writer\Tar.php has been debugged around line 80 to handle long filenames according to http://pear.php.net/bugs/bug.php?id=10144&edit=3
69
 
70
  == Changelog ==
72
 
73
  Changelog:
74
 
75
+ Changes in 0.2.4:
76
+
77
+ + Internet Explorer ajax issue with not being able to do backups manually fixed
78
+
79
  Changes in 0.2.3:
80
+
81
  + Mailing options: multiple email addresses supported
82
  + Backup file size reports also display the size of the database
83
  + Backup archive filesize is estimated
84
  + schedule table rows display the lastrun-timestamp of the last running backup
85
 
86
  Changes in 0.2.2:
87
+
88
  + Manage Backups now display the type, either scheduled or manual for Advanced as well as EasyMode
89
  + logfile prints out WordPress and BackUpWordPress version for easier posting at http://wpforum.designpraxis.at/
90
  + BackUpWordPress displays "Your backup is being processed" instead of the actions links on the Manage Backups screen as long as archiving is not finished
91
 
92
  Changes in 0.2.1:
93
+
94
  + old Logfiles are deleted. 10 times the amount of the configured amount of backups to keep is kept.
95
  + feature: backups are done in kind of a staggered process: if BackUpWordPress runs into a server side time-out, BackUpWordPress tries to trigger an single scheduled event for finishing the task. Corresponding dialoques appear on the *Manage Backups* - screen.
96
 
97
  Changes in 0.1.4:
98
+
99
  + @set_time_limit(0) in functions.php line 277 supresses the 'Cannot set time limit in safe mode' warning
100
  + dialoques streamlined: e.g. when you click "delete" on a backup archive, you just need to hit enter to delete it
101
 
102
  Changes in 0.1.3:
103
+
104
  + ajax problems fixed
105
  + schedules last run timestamp fixed
106
 
107
  Changes in 0.1.2:
108
+
109
  + bug fixed: Backup-Now doesn't call Sajax
110
  + bkpwp_delete_old() refactored
111
  + bug fixed: table data is not dumped