Version Description
- added flattr button in Help
- Fixed bug on S3 File deletion
- get files form S3 now faster for file deletion
Download this release
Release Info
| Developer | danielhuesken |
| Plugin | |
| Version | 1.0.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.6 to 1.0.7
- app/backwpup_dojob.php +6 -6
- app/functions.php +11 -0
- backwpup.php +2 -2
- readme.txt +6 -1
app/backwpup_dojob.php
CHANGED
|
@@ -1019,11 +1019,11 @@ class backwpup_dojob {
|
|
| 1019 |
|
| 1020 |
if ($this->job['awsmaxbackups']>0) { //Delete old backups
|
| 1021 |
$backupfilelist=array();
|
| 1022 |
-
if (($contents = $s3->getBucket($this->job['awsBucket'])) !== false) {
|
| 1023 |
foreach ($contents as $object) {
|
| 1024 |
-
if ($this->job['awsdir']
|
| 1025 |
-
$
|
| 1026 |
-
if ('backwpup_'.$this->jobid.'_' == substr(basename($
|
| 1027 |
$backupfilelist[]=basename($object['name']);
|
| 1028 |
}
|
| 1029 |
}
|
|
@@ -1036,9 +1036,9 @@ class backwpup_dojob {
|
|
| 1036 |
$numdeltefiles++;
|
| 1037 |
else
|
| 1038 |
trigger_error(__('Can not delete file on S3//:','backwpup').$this->job['awsBucket'].'/'.$this->job['awsdir'].$backupfilelist[$i],E_USER_ERROR);
|
| 1039 |
-
if ($numdeltefiles>0)
|
| 1040 |
-
trigger_error($numdeltefiles.' '.__('files deleted on S3 Bucket!','backwpup'),E_USER_NOTICE);
|
| 1041 |
}
|
|
|
|
|
|
|
| 1042 |
}
|
| 1043 |
}
|
| 1044 |
} else {
|
| 1019 |
|
| 1020 |
if ($this->job['awsmaxbackups']>0) { //Delete old backups
|
| 1021 |
$backupfilelist=array();
|
| 1022 |
+
if (($contents = $s3->getBucket($this->job['awsBucket'],$this->job['awsdir'])) !== false) {
|
| 1023 |
foreach ($contents as $object) {
|
| 1024 |
+
if ($this->job['awsdir'].basename($object['name']) == $object['name']) {//only in the folder and not in complete bucket
|
| 1025 |
+
$file=basename($object['name']);
|
| 1026 |
+
if ('backwpup_'.$this->jobid.'_' == substr(basename($file),0,strlen('backwpup_'.$this->jobid.'_')) and $this->backupfileformat == substr(basename($file),-strlen($this->backupfileformat)))
|
| 1027 |
$backupfilelist[]=basename($object['name']);
|
| 1028 |
}
|
| 1029 |
}
|
| 1036 |
$numdeltefiles++;
|
| 1037 |
else
|
| 1038 |
trigger_error(__('Can not delete file on S3//:','backwpup').$this->job['awsBucket'].'/'.$this->job['awsdir'].$backupfilelist[$i],E_USER_ERROR);
|
|
|
|
|
|
|
| 1039 |
}
|
| 1040 |
+
if ($numdeltefiles>0)
|
| 1041 |
+
trigger_error($numdeltefiles.' '.__('files deleted on S3 Bucket!','backwpup'),E_USER_NOTICE);
|
| 1042 |
}
|
| 1043 |
}
|
| 1044 |
} else {
|
app/functions.php
CHANGED
|
@@ -38,6 +38,17 @@ if ( !defined('ABSPATH') )
|
|
| 38 |
$help .= ' | <a href="http://danielhuesken.de/portfolio/backwpup" target="_blank">' . __('Plugin Homepage', 'backwpup') . '</a>';
|
| 39 |
$help .= ' | <a href="http://wordpress.org/extend/plugins/backwpup" target="_blank">' . __('Plugin Home on WordPress.org', 'backwpup') . '</a>';
|
| 40 |
$help .= ' | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Plugin%20Donation&item_number=BackWPup&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank">' . __('Donate') . '</a>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
$help .= "</div>\n";
|
| 42 |
$help .= '<div class="metabox-prefs">';
|
| 43 |
$help .= __('Version:', 'backwpup').' '.BACKWPUP_VERSION.' | ';
|
| 38 |
$help .= ' | <a href="http://danielhuesken.de/portfolio/backwpup" target="_blank">' . __('Plugin Homepage', 'backwpup') . '</a>';
|
| 39 |
$help .= ' | <a href="http://wordpress.org/extend/plugins/backwpup" target="_blank">' . __('Plugin Home on WordPress.org', 'backwpup') . '</a>';
|
| 40 |
$help .= ' | <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=daniel%40huesken-net%2ede&item_name=Daniel%20Huesken%20Plugin%20Donation&item_number=BackWPup&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank">' . __('Donate') . '</a>';
|
| 41 |
+
$help .= " | <script type=\"text/javascript\">
|
| 42 |
+
var flattr_btn = 'compact';
|
| 43 |
+
var flattr_uid = '21883';
|
| 44 |
+
var flattr_tle = 'BackWPup';
|
| 45 |
+
var flattr_dsc = 'Backup and more for Wordpress';
|
| 46 |
+
var flattr_cat = 'software';
|
| 47 |
+
var flattr_lng = 'en_GB';
|
| 48 |
+
var flattr_tag = 'backwpup, backup, wordpress, file, mysql, check, optimize';
|
| 49 |
+
var flattr_url = 'http://danielhuesken.de/portfolio/backwpup/';
|
| 50 |
+
var flattr_hide = 'false';
|
| 51 |
+
</script><script src=\"http://api.flattr.com/button/load.js\" type=\"text/javascript\"></script>";
|
| 52 |
$help .= "</div>\n";
|
| 53 |
$help .= '<div class="metabox-prefs">';
|
| 54 |
$help .= __('Version:', 'backwpup').' '.BACKWPUP_VERSION.' | ';
|
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üsken
|
| 7 |
-
Version: 1.0.
|
| 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.
|
| 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üsken
|
| 7 |
+
Version: 1.0.7
|
| 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.7');
|
| 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.
|
| 8 |
|
| 9 |
Backup and more of your WordPress Blog Database and Files
|
| 10 |
|
|
@@ -81,6 +81,11 @@ Pleace mail only littele archives
|
|
| 81 |
1. Job Page
|
| 82 |
|
| 83 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
= 1.0.6 =
|
| 85 |
* fixed false massage an send mail with backup
|
| 86 |
* removed test code for blank screen and fixed it!
|
| 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.7
|
| 8 |
|
| 9 |
Backup and more of your WordPress Blog Database and Files
|
| 10 |
|
| 81 |
1. Job Page
|
| 82 |
|
| 83 |
== Changelog ==
|
| 84 |
+
= 1.0.7 =
|
| 85 |
+
* added flattr button in Help
|
| 86 |
+
* Fixed bug on S3 File deletion
|
| 87 |
+
* get files form S3 now faster for file deletion
|
| 88 |
+
|
| 89 |
= 1.0.6 =
|
| 90 |
* fixed false massage an send mail with backup
|
| 91 |
* removed test code for blank screen and fixed it!
|
