BackWPup – WordPress Backup Plugin - Version 1.0.2

Version Description

  • fiexd bug for file excludes
Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

Files changed (4) hide show
  1. app/backwpup_dojob.php +6 -5
  2. app/options-jobs.php +1 -1
  3. backwpup.php +2 -2
  4. readme.txt +4 -1
app/backwpup_dojob.php CHANGED
@@ -143,7 +143,7 @@ class backwpup_dojob {
143
  //set Backup Dir
144
  $this->backupdir=untrailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes($this->job['backupdir']))));
145
  if (empty($this->backupdir))
146
- $this->backupdir=get_temp_dir().'backwpup';
147
  //set Logs Dir
148
  $this->logdir=untrailingslashit($this->cfg['dirlogs']);
149
  if (empty($this->logdir))
@@ -581,7 +581,7 @@ class backwpup_dojob {
581
  if ( in_array($file, array('.', '..','.svn') ) )
582
  continue;
583
  foreach ($excludes as $exclusion) { //exclude dirs and files
584
- if (false !== stripos($folder.'/'.$file,$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))
@@ -608,18 +608,19 @@ class backwpup_dojob {
608
  }
609
 
610
  public function file_list() {
 
611
  //Make filelist
612
  trigger_error(__('Make a list of files to Backup ....','backwpup'),E_USER_NOTICE);
613
  $backwpup_exclude=array(); $dirinclude=array();
614
-
615
  if (!empty($this->job['fileexclude']))
616
- $backwpup_exclude=explode(',',$this->job['fileexclude']);
617
  //Exclude Temp dir
618
  $backwpup_exclude[]=$this->tempdir;
619
  //Exclude Backup dirs
620
  $jobs=get_option('backwpup_jobs');
621
  foreach($jobs as $jobsvale) {
622
- if (!empty($jobsvale['backupdir']))
623
  $backwpup_exclude[]=$jobsvale['backupdir'];
624
  }
625
  $backwpup_exclude=array_unique($backwpup_exclude);
143
  //set Backup Dir
144
  $this->backupdir=untrailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes($this->job['backupdir']))));
145
  if (empty($this->backupdir))
146
+ $this->backupdir=$this->tempdir;
147
  //set Logs Dir
148
  $this->logdir=untrailingslashit($this->cfg['dirlogs']);
149
  if (empty($this->logdir))
581
  if ( in_array($file, array('.', '..','.svn') ) )
582
  continue;
583
  foreach ($excludes as $exclusion) { //exclude dirs and files
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))
608
  }
609
 
610
  public function file_list() {
611
+
612
  //Make filelist
613
  trigger_error(__('Make a list of files to Backup ....','backwpup'),E_USER_NOTICE);
614
  $backwpup_exclude=array(); $dirinclude=array();
615
+
616
  if (!empty($this->job['fileexclude']))
617
+ $backwpup_exclude=explode(',',trim($this->job['fileexclude']));
618
  //Exclude Temp dir
619
  $backwpup_exclude[]=$this->tempdir;
620
  //Exclude Backup dirs
621
  $jobs=get_option('backwpup_jobs');
622
  foreach($jobs as $jobsvale) {
623
+ if (!empty($jobsvale['backupdir']) and $jobsvale['backupdir']!='/')
624
  $backwpup_exclude[]=$jobsvale['backupdir'];
625
  }
626
  $backwpup_exclude=array_unique($backwpup_exclude);
app/options-jobs.php CHANGED
@@ -142,7 +142,7 @@ $todo=explode('+',$jobs[$jobid]['type']);
142
  <div id="titlediv">
143
  <div id="titlewrap">
144
  <label class="hide-if-no-js" style="visibility:hidden" id="title-prompt-text" for="title"><?PHP _e('Enter Job name here','backwpup'); ?></label>
145
- <input type="text" name="name" size="30" tabindex="1" placeholder="<?PHP _e('Enter Job name here','backwpup'); ?>" value="<?PHP echo $jobs[$jobid]['name'];?>" id="title" autocomplete="off" />
146
  </div>
147
  </div>
148
 
142
  <div id="titlediv">
143
  <div id="titlewrap">
144
  <label class="hide-if-no-js" style="visibility:hidden" id="title-prompt-text" for="title"><?PHP _e('Enter Job name here','backwpup'); ?></label>
145
+ <input type="text" name="name" size="30" tabindex="1" value="<?PHP echo $jobs[$jobid]['name'];?>" id="title" autocomplete="off" />
146
  </div>
147
  </div>
148
 
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.1
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_DIR', dirname(plugin_basename(__FILE__)));
37
  //Set Plugin Version
38
- define('BACKWPUP_VERSION', '1.0.1');
39
  //load Text Domain
40
  load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_DIR.'/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.2
8
  Author URI: http://danielhuesken.de
9
  Text Domain: backwpup
10
  Domain Path: /lang/
35
  //Set plugin dirname
36
  define('BACKWPUP_PLUGIN_DIR', dirname(plugin_basename(__FILE__)));
37
  //Set Plugin Version
38
+ define('BACKWPUP_VERSION', '1.0.2');
39
  //load Text Domain
40
  load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_DIR.'/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.1
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.1 =
85
  * fiexd bug for https
86
 
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.2
8
 
9
  Backup and more of your WordPress Blog Database and Files
10
 
81
  1. Job Page
82
 
83
  == Changelog ==
84
+ = 1.0.2 =
85
+ * fiexd bug for file excludes
86
+
87
  = 1.0.1 =
88
  * fiexd bug for https
89