Version Description
- hopfuly fixed a chche problem on runnow
Download this release
Release Info
Developer | danielhuesken |
Plugin | BackWPup – WordPress Backup Plugin |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/functions.php +18 -0
- app/options-runnow-iframe.php +6 -2
- app/options-runnow.php +1 -1
- app/options-view_log-iframe.php +1 -1
- app/options-view_log.php +1 -1
- backwpup.php +2 -2
- readme.txt +4 -1
app/functions.php
CHANGED
@@ -19,6 +19,8 @@ if ( !defined('ABSPATH') )
|
|
19 |
case 'tools':
|
20 |
break;
|
21 |
case 'runnow':
|
|
|
|
|
22 |
break;
|
23 |
case 'view_log':
|
24 |
break;
|
@@ -335,6 +337,22 @@ if ( !defined('ABSPATH') )
|
|
335 |
wp_add_dashboard_widget( 'backwpup_dashboard_widget', 'BackWPup', 'backwpup_dashboard_output' );
|
336 |
}
|
337 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
// add all action and so on only if plugin loaded.
|
339 |
function backwpup_init() {
|
340 |
//Disabele WP_Corn
|
19 |
case 'tools':
|
20 |
break;
|
21 |
case 'runnow':
|
22 |
+
add_action('load-'.$hook, 'backwpup_sendNoCacheHeader');
|
23 |
+
add_action('admin_head-'.$hook, 'backwpup_wp_admin_head');
|
24 |
break;
|
25 |
case 'view_log':
|
26 |
break;
|
337 |
wp_add_dashboard_widget( 'backwpup_dashboard_widget', 'BackWPup', 'backwpup_dashboard_output' );
|
338 |
}
|
339 |
|
340 |
+
//turn cache off
|
341 |
+
function backwpup_wp_admin_head () {
|
342 |
+
echo "<meta http-equiv=\"expires\" content=\"0\" />\n";
|
343 |
+
echo "<meta http-equiv=\"pragma\" content=\"no-cache\" />\n";
|
344 |
+
echo "<meta http-equiv=\"cache-control\" content=\"no-cache\" />\n";
|
345 |
+
}
|
346 |
+
|
347 |
+
|
348 |
+
function backwpup_sendNoCacheHeader() {
|
349 |
+
header("Expires: 0");
|
350 |
+
header("Cache-Control: no-cache, must-revalidate");
|
351 |
+
header("Pragma: no-cache");
|
352 |
+
header("Cache-Control: post-check=0, pre-check=0");
|
353 |
+
}
|
354 |
+
|
355 |
+
|
356 |
// add all action and so on only if plugin loaded.
|
357 |
function backwpup_init() {
|
358 |
//Disabele WP_Corn
|
app/options-runnow-iframe.php
CHANGED
@@ -1,18 +1,22 @@
|
|
1 |
<?PHP
|
2 |
-
if (is_dir($_GET['ABSPATH'])) {
|
3 |
require_once($_GET['ABSPATH'].'/wp-load.php'); /** Setup WordPress environment */
|
4 |
check_admin_referer('dojob-now_' . (int)$_GET['jobid']);
|
|
|
5 |
ignore_user_abort(true);
|
6 |
// flush any buffers and send the headers
|
7 |
@apache_setenv('no-gzip', 1);
|
8 |
@ini_set('zlib.output_compression', 0);
|
9 |
@ini_set('implicit_flush', 1);
|
10 |
@flush();
|
11 |
-
@ob_flush();
|
|
|
12 |
?>
|
13 |
<html>
|
14 |
<head>
|
15 |
<meta http-equiv="expires" content="0">
|
|
|
|
|
16 |
<title><?PHP _e('Do Job','backwpup'); ?></title>
|
17 |
</head>
|
18 |
<body style="font-family:monospace;font-size:12px;white-space:nowrap;">
|
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_sendNoCacheHeader();
|
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 |
+
|
14 |
?>
|
15 |
<html>
|
16 |
<head>
|
17 |
<meta http-equiv="expires" content="0">
|
18 |
+
<meta http-equiv="pragma" content="no-cache">
|
19 |
+
<meta http-equiv="cache-control" content="no-cache">
|
20 |
<title><?PHP _e('Do Job','backwpup'); ?></title>
|
21 |
</head>
|
22 |
<body style="font-family:monospace;font-size:12px;white-space:nowrap;">
|
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.'&
|
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-view_log-iframe.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?PHP
|
2 |
-
if (is_dir($_GET['ABSPATH'])) {
|
3 |
require_once($_GET['ABSPATH'].'/wp-load.php'); /** Setup WordPress environment */
|
4 |
check_admin_referer('viewlognow_'.basename($_GET['logfile']));
|
5 |
readfile($_GET['logfile']);
|
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']);
|
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.'&
|
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,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.
|
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üsken
|
7 |
+
Version: 1.0.3
|
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.3');
|
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.2 =
|
85 |
* fiexd bug for file excludes
|
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.3
|
8 |
|
9 |
Backup and more of your WordPress Blog Database and Files
|
10 |
|
81 |
1. Job Page
|
82 |
|
83 |
== Changelog ==
|
84 |
+
= 1.0.3 =
|
85 |
+
* hopfuly fixed a chche problem on runnow
|
86 |
+
|
87 |
= 1.0.2 =
|
88 |
* fiexd bug for file excludes
|
89 |
|