Version Description
- fiexd bug for https
Download this release
Release Info
Developer | danielhuesken |
Plugin | BackWPup – WordPress Backup Plugin |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/backwpup_dojob.php +1 -1
- app/functions.php +2 -2
- app/options-runnow.php +1 -1
- app/options-save.php +5 -5
- app/options-view_log.php +1 -1
- backwpup.php +2 -3
- readme.txt +4 -1
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(
|
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);
|
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);
|
app/functions.php
CHANGED
@@ -92,8 +92,8 @@ if ( !defined('ABSPATH') )
|
|
92 |
if (!current_user_can(10))
|
93 |
wp_die('No rights');
|
94 |
//Css for Admin Section
|
95 |
-
wp_enqueue_style('BackWpup',plugins_url('
|
96 |
-
wp_enqueue_script('BackWpupOptions',plugins_url('
|
97 |
//For save Options
|
98 |
require_once(WP_PLUGIN_DIR.'/'.BACKWPUP_PLUGIN_DIR.'/app/options-save.php');
|
99 |
}
|
92 |
if (!current_user_can(10))
|
93 |
wp_die('No rights');
|
94 |
//Css for Admin Section
|
95 |
+
wp_enqueue_style('BackWpup',plugins_url('css/options.css',__FILE__),'',BACKWPUP_VERSION,'screen');
|
96 |
+
wp_enqueue_script('BackWpupOptions',plugins_url('js/options.js',__FILE__),'',BACKWPUP_VERSION,true);
|
97 |
//For save Options
|
98 |
require_once(WP_PLUGIN_DIR.'/'.BACKWPUP_PLUGIN_DIR.'/app/options-save.php');
|
99 |
}
|
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(
|
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__).'?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>
|
app/options-save.php
CHANGED
@@ -137,25 +137,25 @@ case 'saveeditjob': //Save Job settings
|
|
137 |
$jobs[$jobid]['mailerroronly']= $_POST['mailerroronly']==1 ? true : false;
|
138 |
$jobs[$jobid]['dbexclude']=$_POST['dbexclude'];
|
139 |
$jobs[$jobid]['maintenance']= $_POST['maintenance']==1 ? true : false;
|
140 |
-
$jobs[$jobid]['fileexclude']=str_replace('//','/',str_replace('\\','/',stripslashes($_POST['fileexclude'])));
|
141 |
-
$jobs[$jobid]['dirinclude']=str_replace('//','/',str_replace('\\','/',stripslashes($_POST['dirinclude'])));
|
142 |
$jobs[$jobid]['backuproot']= $_POST['backuproot']==1 ? true : false;
|
143 |
$jobs[$jobid]['backupcontent']= $_POST['backupcontent']==1 ? true : false;
|
144 |
$jobs[$jobid]['backupplugins']= $_POST['backupplugins']==1 ? true : false;
|
145 |
$jobs[$jobid]['fileformart']=$_POST['fileformart'];
|
146 |
$jobs[$jobid]['mailefilesize']=(float)$_POST['mailefilesize'];
|
147 |
-
$jobs[$jobid]['backupdir']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes($_POST['backupdir']))));
|
148 |
$jobs[$jobid]['maxbackups']=abs((int)$_POST['maxbackups']);
|
149 |
$jobs[$jobid]['ftphost']=$_POST['ftphost'];
|
150 |
$jobs[$jobid]['ftpuser']=$_POST['ftpuser'];
|
151 |
$jobs[$jobid]['ftppass']=base64_encode($_POST['ftppass']);
|
152 |
-
$jobs[$jobid]['ftpdir']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['ftpdir'])))));
|
153 |
$jobs[$jobid]['ftpmaxbackups']=abs((int)$_POST['ftpmaxbackups']);
|
154 |
$jobs[$jobid]['awsAccessKey']=$_POST['awsAccessKey'];
|
155 |
$jobs[$jobid]['awsSecretKey']=$_POST['awsSecretKey'];
|
156 |
$jobs[$jobid]['awsSSL']= $_POST['awsSSL']==1 ? true : false;
|
157 |
$jobs[$jobid]['awsBucket']=$_POST['awsBucket'];
|
158 |
-
$jobs[$jobid]['awsdir']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['awsdir'])))));
|
159 |
if (substr($jobs[$jobid]['awsdir'],0,1)=='/')
|
160 |
$jobs[$jobid]['awsdir']=substr($jobs[$jobid]['awsdir'],1);
|
161 |
$jobs[$jobid]['mailaddress']=sanitize_email($_POST['mailaddress']);
|
137 |
$jobs[$jobid]['mailerroronly']= $_POST['mailerroronly']==1 ? true : false;
|
138 |
$jobs[$jobid]['dbexclude']=$_POST['dbexclude'];
|
139 |
$jobs[$jobid]['maintenance']= $_POST['maintenance']==1 ? true : false;
|
140 |
+
$jobs[$jobid]['fileexclude']=str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['fileexclude']))));
|
141 |
+
$jobs[$jobid]['dirinclude']=str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['dirinclude']))));
|
142 |
$jobs[$jobid]['backuproot']= $_POST['backuproot']==1 ? true : false;
|
143 |
$jobs[$jobid]['backupcontent']= $_POST['backupcontent']==1 ? true : false;
|
144 |
$jobs[$jobid]['backupplugins']= $_POST['backupplugins']==1 ? true : false;
|
145 |
$jobs[$jobid]['fileformart']=$_POST['fileformart'];
|
146 |
$jobs[$jobid]['mailefilesize']=(float)$_POST['mailefilesize'];
|
147 |
+
$jobs[$jobid]['backupdir']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim($_POST['backupdir'])))));
|
148 |
$jobs[$jobid]['maxbackups']=abs((int)$_POST['maxbackups']);
|
149 |
$jobs[$jobid]['ftphost']=$_POST['ftphost'];
|
150 |
$jobs[$jobid]['ftpuser']=$_POST['ftpuser'];
|
151 |
$jobs[$jobid]['ftppass']=base64_encode($_POST['ftppass']);
|
152 |
+
$jobs[$jobid]['ftpdir']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim(trim($_POST['ftpdir']))))));
|
153 |
$jobs[$jobid]['ftpmaxbackups']=abs((int)$_POST['ftpmaxbackups']);
|
154 |
$jobs[$jobid]['awsAccessKey']=$_POST['awsAccessKey'];
|
155 |
$jobs[$jobid]['awsSecretKey']=$_POST['awsSecretKey'];
|
156 |
$jobs[$jobid]['awsSSL']= $_POST['awsSSL']==1 ? true : false;
|
157 |
$jobs[$jobid]['awsBucket']=$_POST['awsBucket'];
|
158 |
+
$jobs[$jobid]['awsdir']=trailingslashit(str_replace('//','/',str_replace('\\','/',stripslashes(trim(trim($_POST['awsdir']))))));
|
159 |
if (substr($jobs[$jobid]['awsdir'],0,1)=='/')
|
160 |
$jobs[$jobid]['awsdir']=substr($jobs[$jobid]['awsdir'],1);
|
161 |
$jobs[$jobid]['mailaddress']=sanitize_email($_POST['mailaddress']);
|
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(
|
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__).'?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>
|
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,8 +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.
|
39 |
-
|
40 |
//load Text Domain
|
41 |
load_plugin_textdomain('backwpup', false, BACKWPUP_PLUGIN_DIR.'/lang');
|
42 |
//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.1
|
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.1');
|
|
|
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.
|
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.0 =
|
85 |
* now Worpress Exports to XML can made
|
86 |
* new backup files formats tar, tar.gz, tar.bz2
|
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 |
1. Job Page
|
82 |
|
83 |
== Changelog ==
|
84 |
+
= 1.0.1 =
|
85 |
+
* fiexd bug for https
|
86 |
+
|
87 |
= 1.0.0 =
|
88 |
* now Worpress Exports to XML can made
|
89 |
* new backup files formats tar, tar.gz, tar.bz2
|