BackWPup – WordPress Backup Plugin - Version 1.0.5

Version Description

  • some ABSPATH changes
Download this release

Release Info

Developer danielhuesken
Plugin Icon 128x128 BackWPup – WordPress Backup Plugin
Version 1.0.5
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.5

app/backwpup_dojob.php CHANGED
@@ -523,7 +523,7 @@ class backwpup_dojob {
523
 
524
  public function export_wp() {
525
  trigger_error(__('Run Wordpress Export to XML file...','backwpup'),E_USER_NOTICE);
526
- if (copy(plugins_url('wp_xml_export.php',__FILE__).'?ABSPATH='.ABSPATH.'&_nonce='.substr(md5(md5(SECURE_AUTH_KEY)),10,10),$this->tempdir.'/wordpress.' . date( 'Y-m-d' ) . '.xml')) {
527
  trigger_error(__('Export to XML done!','backwpup'),E_USER_NOTICE);
528
  //add database file to backupfiles
529
  trigger_error(__('Add XML Export to Backup:','backwpup').' wordpress.' . date( 'Y-m-d' ) . '.xml '.backwpup_formatBytes(filesize($this->tempdir.'/wordpress.' . date( 'Y-m-d' ) . '.xml')),E_USER_NOTICE);
@@ -584,7 +584,7 @@ class backwpup_dojob {
584
  if (false !== stripos($folder.'/'.$file,$exclusion) and !empty($exclusion) and $exclusion!='/')
585
  continue 2;
586
  }
587
- if (!$this->job['backuproot'] and false !== stripos($folder.'/'.$file,str_replace('\\','/',ABSPATH)) and false === stripos($folder.'/'.$file,str_replace('\\','/',WP_CONTENT_DIR)) and !is_dir($folder.'/'.$file))
588
  continue;
589
  if (!$this->job['backupcontent'] and false !== stripos($folder.'/'.$file,str_replace('\\','/',WP_CONTENT_DIR)) and false === stripos($folder.'/'.$file,str_replace('\\','/',WP_PLUGIN_DIR)) and !is_dir($folder.'/'.$file))
590
  continue;
523
 
524
  public function export_wp() {
525
  trigger_error(__('Run Wordpress Export to XML file...','backwpup'),E_USER_NOTICE);
526
+ if (copy(plugins_url('wp_xml_export.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&_nonce='.substr(md5(md5(SECURE_AUTH_KEY)),10,10),$this->tempdir.'/wordpress.' . date( 'Y-m-d' ) . '.xml')) {
527
  trigger_error(__('Export to XML done!','backwpup'),E_USER_NOTICE);
528
  //add database file to backupfiles
529
  trigger_error(__('Add XML Export to Backup:','backwpup').' wordpress.' . date( 'Y-m-d' ) . '.xml '.backwpup_formatBytes(filesize($this->tempdir.'/wordpress.' . date( 'Y-m-d' ) . '.xml')),E_USER_NOTICE);
584
  if (false !== stripos($folder.'/'.$file,$exclusion) and !empty($exclusion) and $exclusion!='/')
585
  continue 2;
586
  }
587
+ if (!$this->job['backuproot'] and false !== stripos($folder.'/'.$file,str_replace('\\','/',trailingslashit(ABSPATH))) and false === stripos($folder.'/'.$file,str_replace('\\','/',WP_CONTENT_DIR)) and !is_dir($folder.'/'.$file))
588
  continue;
589
  if (!$this->job['backupcontent'] and false !== stripos($folder.'/'.$file,str_replace('\\','/',WP_CONTENT_DIR)) and false === stripos($folder.'/'.$file,str_replace('\\','/',WP_PLUGIN_DIR)) and !is_dir($folder.'/'.$file))
590
  continue;
app/options-runnow-iframe.php CHANGED
@@ -1,13 +1,13 @@
1
  <?PHP
2
- if (is_dir($_GET['ABSPATH']) and is_numeric($_GET['jobid'])) {
3
- require_once($_GET['ABSPATH'].'/wp-load.php'); /** Setup WordPress environment */
4
  check_admin_referer('dojob-now_' . (int)$_GET['jobid']);
5
  backwpup_send_no_cache_header();
6
  ignore_user_abort(true);
7
  // flush any buffers and send the headers
8
- @apache_setenv('no-gzip', 1);
9
- @ini_set('zlib.output_compression', 0);
10
- @ini_set('implicit_flush', 1);
11
  @flush();
12
  @ob_flush();
13
 
@@ -25,6 +25,7 @@ if (is_dir($_GET['ABSPATH']) and is_numeric($_GET['jobid'])) {
25
  </html>
26
  <?PHP
27
  } else {
28
- header("HTTP/1.0 404 Not Found");
 
29
  }
30
  ?>
1
  <?PHP
2
+ if (file_exists($_GET['wpabs'].'wp-load.php') and is_numeric(trim($_GET['jobid']))) {
3
+ require_once($_GET['wpabs'].'wp-load.php'); /** Setup WordPress environment */
4
  check_admin_referer('dojob-now_' . (int)$_GET['jobid']);
5
  backwpup_send_no_cache_header();
6
  ignore_user_abort(true);
7
  // flush any buffers and send the headers
8
+ //@apache_setenv('no-gzip', 1);
9
+ //@ini_set('zlib.output_compression', 0);
10
+ //@ini_set('implicit_flush', 1);
11
  @flush();
12
  @ob_flush();
13
 
25
  </html>
26
  <?PHP
27
  } else {
28
+ //header("HTTP/1.0 404 Not Found");
29
+ echo "No Access!!!"
30
  }
31
  ?>
app/options-runnow.php CHANGED
@@ -17,5 +17,5 @@ if ( !defined('ABSPATH') )
17
  _e('Running Job','backwpup');
18
  echo ' <strong>'.$jobs[$jobid]['name'].'</strong>';
19
  ?></big>
20
- <iframe src="<?PHP echo wp_nonce_url(plugins_url('options-runnow-iframe.php',__FILE__).'?ABSPATH='.ABSPATH.'&jobid=' . $jobid, 'dojob-now_' . $jobid); ?>" name="Logframe" id="Logframe" width="100%" height="450" align="left" scrolling="auto" style="border: 1px solid gray" frameborder="0"></iframe>
21
  </div>
17
  _e('Running Job','backwpup');
18
  echo ' <strong>'.$jobs[$jobid]['name'].'</strong>';
19
  ?></big>
20
+ <iframe src="<?PHP echo wp_nonce_url(plugins_url('options-runnow-iframe.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&jobid=' . $jobid, 'dojob-now_' . $jobid); ?>" name="Logframe" id="Logframe" width="100%" height="450" align="left" scrolling="auto" style="border: 1px solid gray" frameborder="0"></iframe>
21
  </div>
app/options-view_log-iframe.php CHANGED
@@ -1,6 +1,6 @@
1
  <?PHP
2
- if (is_dir($_GET['ABSPATH']) and is_file($_GET['logfile'])) {
3
- require_once($_GET['ABSPATH'].'/wp-load.php'); /** Setup WordPress environment */
4
  check_admin_referer('viewlognow_'.basename($_GET['logfile']));
5
  readfile($_GET['logfile']);
6
  } else {
1
  <?PHP
2
+ if (file_exists($_GET['wpabs'].'wp-load.php') and file_exists($_GET['logfile'])) {
3
+ require_once($_GET['wpabs'].'wp-load.php'); /** Setup WordPress environment */
4
  check_admin_referer('viewlognow_'.basename($_GET['logfile']));
5
  readfile($_GET['logfile']);
6
  } else {
app/options-view_log.php CHANGED
@@ -17,5 +17,5 @@ if ( !defined('ABSPATH') )
17
  _e('View Log','backwpup');
18
  echo ' <strong>'.basename($_GET['logfile']).'</strong>';
19
  ?></big>
20
- <iframe src="<?PHP echo wp_nonce_url(plugins_url('options-view_log-iframe.php',__FILE__).'?ABSPATH='.ABSPATH.'&logfile=' . $_GET['logfile'], 'viewlognow_'.basename($_GET['logfile'])); ?>" name="Logframe" id="Logframe" width="100%" height="450" align="left" scrolling="auto" style="border: 1px solid gray" frameborder="0"></iframe>
21
  </div>
17
  _e('View Log','backwpup');
18
  echo ' <strong>'.basename($_GET['logfile']).'</strong>';
19
  ?></big>
20
+ <iframe src="<?PHP echo wp_nonce_url(plugins_url('options-view_log-iframe.php',__FILE__).'?wpabs='.trailingslashit(ABSPATH).'&logfile=' . $_GET['logfile'], 'viewlognow_'.basename($_GET['logfile'])); ?>" name="Logframe" id="Logframe" width="100%" height="450" align="left" scrolling="auto" style="border: 1px solid gray" frameborder="0"></iframe>
21
  </div>
app/wp_xml_export.php CHANGED
@@ -1,11 +1,11 @@
1
  <?PHP
2
- if (is_dir($_GET['ABSPATH'])) {
3
- require_once($_GET['ABSPATH'].'/wp-load.php'); /** Setup WordPress environment */
4
  } else {
5
  header("HTTP/1.0 404 Not Found");
6
  }
7
  if ($_GET['_nonce']==substr(md5(md5(SECURE_AUTH_KEY)),10,10)) {
8
- require_once($_GET['ABSPATH'].'/wp-admin/includes/export.php');
9
  export_wp();
10
  } else {
11
  header("HTTP/1.0 404 Not Found");
1
  <?PHP
2
+ if (file_exists($_GET['wpabs'].'wp-load.php')) {
3
+ require_once($_GET['wpabs'].'wp-load.php'); /** Setup WordPress environment */
4
  } else {
5
  header("HTTP/1.0 404 Not Found");
6
  }
7
  if ($_GET['_nonce']==substr(md5(md5(SECURE_AUTH_KEY)),10,10)) {
8
+ require_once($_GET['wpabs'].'wp-admin/includes/export.php');
9
  export_wp();
10
  } else {
11
  header("HTTP/1.0 404 Not Found");
backwpup.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackWPup
4
  Plugin URI: http://danielhuesken.de/portfolio/backwpup/
5
  Description: Backup and more of your WordPress Blog Database and Files.
6
  Author: Daniel H&uuml;sken
7
- Version: 1.0.4
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
@@ -35,7 +35,7 @@ if ( !defined('ABSPATH') )
35
  //Set plugin dirname
36
  define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
37
  //Set Plugin Version
38
- define('BACKWPUP_VERSION', '1.0.4');
39
  //load Text Domain
40
  load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_BASEDIR.'/lang');
41
  //Load functions file
4
  Plugin URI: http://danielhuesken.de/portfolio/backwpup/
5
  Description: Backup and more of your WordPress Blog Database and Files.
6
  Author: Daniel H&uuml;sken
7
+ Version: 1.0.5
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
35
  //Set plugin dirname
36
  define('BACKWPUP_PLUGIN_BASEDIR', dirname(plugin_basename(__FILE__)));
37
  //Set Plugin Version
38
+ define('BACKWPUP_VERSION', '1.0.5');
39
  //load Text Domain
40
  load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_BASEDIR.'/lang');
41
  //Load functions file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=danie
4
  Tags: backup, admin, file, Database, mysql, cron, ftp, S3, export
5
  Requires at least: 2.8
6
  Tested up to: 3.0.0
7
- Stable tag: 1.0.4
8
 
9
  Backup and more of your WordPress Blog Database and Files
10
 
@@ -81,6 +81,9 @@ Pleace mail only littele archives
81
  1. Job Page
82
 
83
  == Changelog ==
 
 
 
84
  = 1.0.4 =
85
  * fixed bugs in DB restore
86
  * use WP functions to get plugin dirs
4
  Tags: backup, admin, file, Database, mysql, cron, ftp, S3, export
5
  Requires at least: 2.8
6
  Tested up to: 3.0.0
7
+ Stable tag: 1.0.5
8
 
9
  Backup and more of your WordPress Blog Database and Files
10
 
81
  1. Job Page
82
 
83
  == Changelog ==
84
+ = 1.0.5 =
85
+ * some ABSPATH changes
86
+
87
  = 1.0.4 =
88
  * fixed bugs in DB restore
89
  * use WP functions to get plugin dirs