Version Description
Download this release
Release Info
Developer | wpdprx |
Plugin | BackUpWordPress |
Version | 0.4.2 |
Comparing to | |
See all releases |
Code changes from version 0.3.2 to 0.4.2
- backupwordpress.php +2 -2
- bkpwp-classes/manage_backups.php +9 -4
- bkpwp-classes/options.php +2 -1
- readme.txt +10 -4
backupwordpress.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: BackUpWordPress
|
|
4 |
Plugin URI: http://wordpress.designpraxis.at
|
5 |
Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
|
6 |
Author: Roland Rust
|
7 |
-
Version: 0.
|
8 |
Author URI: http://wordpress.designpraxis.at
|
9 |
*/
|
10 |
|
@@ -26,7 +26,7 @@ Author URI: http://wordpress.designpraxis.at
|
|
26 |
*/
|
27 |
|
28 |
$GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
|
29 |
-
$GLOBALS['bkpwp_version'] = "0.
|
30 |
|
31 |
// get the functions
|
32 |
require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
|
4 |
Plugin URI: http://wordpress.designpraxis.at
|
5 |
Description: Manage <a href="admin.php?page=backupwordpress/backupwordpress.php">WordPress Backups</a>. Beta Release. Please help testing and give me feedback under the comments section of <a href="http://wordpress.designpraxis.at/plugins/backupwordpress/">the Plugin page</a>. Backup DB, Files & Folders, use .tar.gz, .zip, Exclude List, etc.
|
6 |
Author: Roland Rust
|
7 |
+
Version: 0.4.1
|
8 |
Author URI: http://wordpress.designpraxis.at
|
9 |
*/
|
10 |
|
26 |
*/
|
27 |
|
28 |
$GLOBALS['bkpwp_plugin_path'] = ABSPATH."wp-content/plugins/backupwordpress/";
|
29 |
+
$GLOBALS['bkpwp_version'] = "0.4.1";
|
30 |
|
31 |
// get the functions
|
32 |
require_once($GLOBALS['bkpwp_plugin_path']."functions.php");
|
bkpwp-classes/manage_backups.php
CHANGED
@@ -485,7 +485,7 @@ class BKPWP_BACKUP {
|
|
485 |
|
486 |
// create a temporary directory
|
487 |
if (!is_dir($backup_tmp_dir)) {
|
488 |
-
if (!mkdir($backup_tmp_dir)) {
|
489 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$backup_tmp_dir."' ".__("could not be created","bkpwp");
|
490 |
} else {
|
491 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$backup_tmp_dir."' ".__("created","bkpwp");
|
@@ -499,7 +499,7 @@ class BKPWP_BACKUP {
|
|
499 |
// subdirectory of wordpress files
|
500 |
$wordpress_files = $backup_tmp_dir."/wordpress_files";
|
501 |
if (!is_dir($wordpress_files)) {
|
502 |
-
if (!mkdir($wordpress_files)) {
|
503 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$wordpress_files."' ".__("could not be created","bkpwp");
|
504 |
} else {
|
505 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$wordpress_files."' ".__("created","bkpwp");
|
@@ -526,7 +526,7 @@ class BKPWP_BACKUP {
|
|
526 |
$i=1; // the sql at least
|
527 |
foreach ($files as $f) {
|
528 |
if (is_dir($f)) {
|
529 |
-
if (!mkdir($wordpress_files.bkpwp_conform_dir($f, true))) {
|
530 |
if (!is_dir($wordpress_files.bkpwp_conform_dir($f, true))) {
|
531 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("Failed to make directory","bkpwp").": ".$f;
|
532 |
}
|
@@ -576,6 +576,11 @@ class BKPWP_BACKUP {
|
|
576 |
$archive_backup = new File_Archive();
|
577 |
$archive_backup->setOption("tmpDirectory",get_option("bkpwppath"));
|
578 |
$archive_backup->extract($backup_tmp_dir,File_Archive::toArchive($backup_filename, File_Archive::toFiles()));
|
|
|
|
|
|
|
|
|
|
|
579 |
if (!file_exists($backup_filename)) {
|
580 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("Failed to create backup archive","bkpwp")." ".$backup_filename;
|
581 |
} else {
|
@@ -704,7 +709,7 @@ class BKPWP_BACKUP {
|
|
704 |
if (!is_array($log)) { return; }
|
705 |
$logdir = get_option("bkpwppath")."/logs";
|
706 |
if (!is_dir($logdir)) {
|
707 |
-
mkdir($logdir);
|
708 |
}
|
709 |
$logname = $logdir."/".$log['filename'].".txt";
|
710 |
$logfile = "";
|
485 |
|
486 |
// create a temporary directory
|
487 |
if (!is_dir($backup_tmp_dir)) {
|
488 |
+
if (!mkdir($backup_tmp_dir,0777)) {
|
489 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$backup_tmp_dir."' ".__("could not be created","bkpwp");
|
490 |
} else {
|
491 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$backup_tmp_dir."' ".__("created","bkpwp");
|
499 |
// subdirectory of wordpress files
|
500 |
$wordpress_files = $backup_tmp_dir."/wordpress_files";
|
501 |
if (!is_dir($wordpress_files)) {
|
502 |
+
if (!mkdir($wordpress_files,0777)) {
|
503 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$wordpress_files."' ".__("could not be created","bkpwp");
|
504 |
} else {
|
505 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("BackUpWordPress temporary Directory","bkpwp")." '".$wordpress_files."' ".__("created","bkpwp");
|
526 |
$i=1; // the sql at least
|
527 |
foreach ($files as $f) {
|
528 |
if (is_dir($f)) {
|
529 |
+
if (!mkdir($wordpress_files.bkpwp_conform_dir($f, true),0777)) {
|
530 |
if (!is_dir($wordpress_files.bkpwp_conform_dir($f, true))) {
|
531 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("Failed to make directory","bkpwp").": ".$f;
|
532 |
}
|
576 |
$archive_backup = new File_Archive();
|
577 |
$archive_backup->setOption("tmpDirectory",get_option("bkpwppath"));
|
578 |
$archive_backup->extract($backup_tmp_dir,File_Archive::toArchive($backup_filename, File_Archive::toFiles()));
|
579 |
+
if (!chmod($backup_filename, 0777)) {
|
580 |
+
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("Backup Archive Permissions changed to 0777","bkpwp")." ".$backup_filename;
|
581 |
+
} else {
|
582 |
+
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("Failed to change backup archive permissions","bkpwp")." ".$backup_filename;
|
583 |
+
}
|
584 |
if (!file_exists($backup_filename)) {
|
585 |
$log['logfile'][] = $this->bkpwp_logtimestamp().": ".__("Failed to create backup archive","bkpwp")." ".$backup_filename;
|
586 |
} else {
|
709 |
if (!is_array($log)) { return; }
|
710 |
$logdir = get_option("bkpwppath")."/logs";
|
711 |
if (!is_dir($logdir)) {
|
712 |
+
mkdir($logdir,0777);
|
713 |
}
|
714 |
$logname = $logdir."/".$log['filename'].".txt";
|
715 |
$logfile = "";
|
bkpwp-classes/options.php
CHANGED
@@ -66,7 +66,7 @@ class BKPWP_OPTIONS {
|
|
66 |
bkpwp_display_message($msg);
|
67 |
} else {
|
68 |
if (!is_dir($_REQUEST['bkpwppath'])) {
|
69 |
-
if (!mkdir($_REQUEST['bkpwppath'])) {
|
70 |
$this->bkpwp_delete_option("bkpwppath");
|
71 |
$msg = __("Wrong Backup Path. Directory does not exist and this script was not able to create it.","bkpwp");
|
72 |
bkpwp_display_message($msg);
|
@@ -251,6 +251,7 @@ class BKPWP_OPTIONS {
|
|
251 |
|
252 |
function bkpwp_get_excludelist($listname) {
|
253 |
$usernoblists = $this->bkpwp_get_excludelists();
|
|
|
254 |
foreach($usernoblists as $f) {
|
255 |
if ($f['listname'] == $listname) {
|
256 |
return $f;
|
66 |
bkpwp_display_message($msg);
|
67 |
} else {
|
68 |
if (!is_dir($_REQUEST['bkpwppath'])) {
|
69 |
+
if (!mkdir($_REQUEST['bkpwppath'],0777)) {
|
70 |
$this->bkpwp_delete_option("bkpwppath");
|
71 |
$msg = __("Wrong Backup Path. Directory does not exist and this script was not able to create it.","bkpwp");
|
72 |
bkpwp_display_message($msg);
|
251 |
|
252 |
function bkpwp_get_excludelist($listname) {
|
253 |
$usernoblists = $this->bkpwp_get_excludelists();
|
254 |
+
if(!is_array($usernoblists)) { return; }
|
255 |
foreach($usernoblists as $f) {
|
256 |
if ($f['listname'] == $listname) {
|
257 |
return $f;
|
readme.txt
CHANGED
@@ -3,12 +3,9 @@ Contributors: wpdprx
|
|
3 |
Donate link: http://wordpress.designpraxis.at/
|
4 |
Tags: Backup, database, diectory, uploads, images, db, recovery
|
5 |
Requires at least: 2.1
|
6 |
-
Tested up to: 2.
|
7 |
Stable tag: trunk
|
8 |
|
9 |
-
|
10 |
-
== Description ==
|
11 |
-
|
12 |
BackUpWordPress is a Backup & Recovery Suite for your WordPress website. This Plugin allows you to backup database as well as files and comes with a rich set of options.
|
13 |
|
14 |
== Features ==
|
@@ -71,6 +68,15 @@ Some pieces of code have been modified:
|
|
71 |
|
72 |
|
73 |
Changelog:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
|
75 |
Changes in 0.3.2:
|
76 |
+ added capabilities manage_backups and download_backups
|
3 |
Donate link: http://wordpress.designpraxis.at/
|
4 |
Tags: Backup, database, diectory, uploads, images, db, recovery
|
5 |
Requires at least: 2.1
|
6 |
+
Tested up to: 2.3.1
|
7 |
Stable tag: trunk
|
8 |
|
|
|
|
|
|
|
9 |
BackUpWordPress is a Backup & Recovery Suite for your WordPress website. This Plugin allows you to backup database as well as files and comes with a rich set of options.
|
10 |
|
11 |
== Features ==
|
68 |
|
69 |
|
70 |
Changelog:
|
71 |
+
|
72 |
+
Changes in 0.4.2
|
73 |
+
+ prevent unpriviledged users from seeing the BackUpWordPress Dashboard
|
74 |
+
|
75 |
+
Changes in 0.4.1
|
76 |
+
+ added test for empty array in bkpwp_get_excludelist()
|
77 |
+
+ all mkdir() calls use mode 0777
|
78 |
+
+ backup archive permissions chage to 0777 (should solve issues with users not being able to delete archive files)
|
79 |
+
|
80 |
|
81 |
Changes in 0.3.2:
|
82 |
+ added capabilities manage_backups and download_backups
|