Version Description
Fixed status reporting for backup/restore process and built-in localization.
Download this release
Release Info
Developer | jcpeden |
Plugin | Backup and Restore WordPress – WPBackItUp Backup Plugin |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.4.0
- backups/status.log +0 -1
- css/admin.css +10 -11
- index.php +4 -4
- js/admin.js +66 -23
- js/ajaxfileupload.js +1 -1
- languages/en-GB.mo +0 -0
- languages/en-GB.po +326 -0
- languages/template_en_US.po +0 -395
- languages/wp-backitup-pro.mo +0 -0
- languages/wp-backitup-pro.po +0 -270
- lib/constants.php +3 -3
- lib/functions.php +1 -1
- lib/includes/auto_update.php +1 -1
- lib/includes/backup.php +21 -22
- lib/includes/recurse_zip.php +1 -1
- lib/includes/restore.php +60 -52
- lib/includes/restore_from_path.php +1 -1
- logs/status.log +1 -1
- readme.txt +64 -34
- views/options.php +78 -12
backups/status.log
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<ul><li>Uploading restoration file...Done!</li><li>Unzipping...Done!</li><li>Validating zip...Done!</li><li>Restoring wp-content directory...Done!</li><li>Restoring database...Done!</li><li>Restoration complete. Please refresh the page.</li></ul>
|
|
css/admin.css
CHANGED
@@ -1,19 +1,18 @@
|
|
1 |
/**
|
2 |
* WP Backitup Admin Control Panel Stylesheets
|
3 |
*
|
4 |
-
* @version 1.
|
5 |
* @since 1.0.1
|
6 |
*/
|
7 |
|
8 |
/* Global */
|
9 |
-
|
|
|
10 |
|
11 |
p {line-height: 1.4em;}
|
12 |
|
13 |
td {padding: 0;}
|
14 |
|
15 |
-
ul {padding: 1em 0 0 0;}
|
16 |
-
|
17 |
h3 {
|
18 |
margin: 0;
|
19 |
padding: 1em 0 0 0;
|
@@ -30,9 +29,7 @@ iframe {
|
|
30 |
z-index: -1;
|
31 |
}
|
32 |
|
33 |
-
.submit {
|
34 |
-
padding: 0;
|
35 |
-
}
|
36 |
|
37 |
/* Content */
|
38 |
#content {
|
@@ -52,13 +49,15 @@ iframe {
|
|
52 |
width: 16px;
|
53 |
}
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
/* Sidebar */
|
56 |
#sidebar {
|
57 |
float: right;
|
58 |
width: 30%;
|
59 |
}
|
60 |
|
61 |
-
.widget {padding: 1em;}
|
62 |
-
.errorMessage{
|
63 |
-
color: red;
|
64 |
-
}
|
1 |
/**
|
2 |
* WP Backitup Admin Control Panel Stylesheets
|
3 |
*
|
4 |
+
* @version 1.4.0
|
5 |
* @since 1.0.1
|
6 |
*/
|
7 |
|
8 |
/* Global */
|
9 |
+
|
10 |
+
.error { color: #ff0000;}
|
11 |
|
12 |
p {line-height: 1.4em;}
|
13 |
|
14 |
td {padding: 0;}
|
15 |
|
|
|
|
|
16 |
h3 {
|
17 |
margin: 0;
|
18 |
padding: 1em 0 0 0;
|
29 |
z-index: -1;
|
30 |
}
|
31 |
|
32 |
+
.submit { padding: 0; }
|
|
|
|
|
33 |
|
34 |
/* Content */
|
35 |
#content {
|
49 |
width: 16px;
|
50 |
}
|
51 |
|
52 |
+
/** Status Reporting **/
|
53 |
+
.backup-status, .backup-status span, .backup-errors, .backup-errors span, .restore-status, .restore-status span, .restore-errors, .restore-errors span {
|
54 |
+
display: none;
|
55 |
+
}
|
56 |
+
|
57 |
/* Sidebar */
|
58 |
#sidebar {
|
59 |
float: right;
|
60 |
width: 30%;
|
61 |
}
|
62 |
|
63 |
+
.widget {padding: 1em;}
|
|
|
|
|
|
index.php
CHANGED
@@ -7,13 +7,13 @@
|
|
7 |
* @global object $wpdb
|
8 |
*
|
9 |
* @author jcpeden
|
10 |
-
* @version 1.
|
11 |
*/
|
12 |
/*
|
13 |
Plugin Name: WP Backitup
|
14 |
Plugin URI: http://www.wpbackitup.com
|
15 |
Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
16 |
-
Version: 1.
|
17 |
Author: John Peden
|
18 |
Author URI: http://www.johncpeden.com
|
19 |
License: GPL3
|
@@ -44,7 +44,7 @@ class WPBackitup {
|
|
44 |
// Default plugin options
|
45 |
var $defaults = array(
|
46 |
'presstrends' => "enabled",
|
47 |
-
'license_key' => "",
|
48 |
'status' => "inactive"
|
49 |
);
|
50 |
|
@@ -309,7 +309,7 @@ class WPBackitup {
|
|
309 |
if( $file == plugin_basename( WPBACKITUP_DIRNAME . '/' . basename( __FILE__ ) ) ) {
|
310 |
$old_links = $links;
|
311 |
$new_links = array(
|
312 |
-
"settings" => '<a href="admin.php?page=' . $this->namespace . '">' . __( '
|
313 |
);
|
314 |
$links = array_merge( $new_links, $old_links );
|
315 |
}
|
7 |
* @global object $wpdb
|
8 |
*
|
9 |
* @author jcpeden
|
10 |
+
* @version 1.4.0
|
11 |
*/
|
12 |
/*
|
13 |
Plugin Name: WP Backitup
|
14 |
Plugin URI: http://www.wpbackitup.com
|
15 |
Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
|
16 |
+
Version: 1.4.0
|
17 |
Author: John Peden
|
18 |
Author URI: http://www.johncpeden.com
|
19 |
License: GPL3
|
44 |
// Default plugin options
|
45 |
var $defaults = array(
|
46 |
'presstrends' => "enabled",
|
47 |
+
'license_key' => "cat",
|
48 |
'status' => "inactive"
|
49 |
);
|
50 |
|
309 |
if( $file == plugin_basename( WPBACKITUP_DIRNAME . '/' . basename( __FILE__ ) ) ) {
|
310 |
$old_links = $links;
|
311 |
$new_links = array(
|
312 |
+
"settings" => '<a href="admin.php?page=' . $this->namespace . '">' . __( 'Manage' ) . '</a>'
|
313 |
);
|
314 |
$links = array_merge( $new_links, $old_links );
|
315 |
}
|
js/admin.js
CHANGED
@@ -1,70 +1,109 @@
|
|
1 |
/**
|
2 |
* WP Backitup Admin Control Panel JavaScripts
|
3 |
*
|
4 |
-
* @version 1.
|
5 |
* @since 1.0.1
|
6 |
*/
|
7 |
|
8 |
(function($){
|
9 |
-
|
10 |
var backup = {
|
11 |
action: 'backup',
|
12 |
beforeSend: function() {
|
|
|
13 |
$('.backup-icon').css('visibility','visible');
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
16 |
window.intervalDefine = setInterval(display_log, 1000);
|
17 |
}
|
18 |
};
|
19 |
|
20 |
-
|
21 |
var download = {
|
22 |
action: 'download'
|
23 |
};
|
24 |
-
|
|
|
25 |
var logreader = {
|
26 |
action: 'logreader'
|
27 |
};
|
28 |
-
|
|
|
29 |
function display_log() {
|
30 |
$.post(ajaxurl, logreader, function(response) {
|
|
|
|
|
31 |
var xmlObj = $(response);
|
|
|
|
|
32 |
xmlObj.each(function() {
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
clearInterval(window.intervalDefine);
|
37 |
}
|
38 |
});
|
39 |
});
|
40 |
}
|
41 |
|
42 |
-
|
43 |
function download_link() {
|
44 |
$.post(ajaxurl, download, function(response) {
|
45 |
$("#download-link").html(response);
|
46 |
});
|
47 |
}
|
48 |
|
49 |
-
|
50 |
download_link();
|
51 |
|
52 |
-
|
53 |
$(".backup-button").click( function() {
|
54 |
$.post(ajaxurl, backup, function(response) {
|
55 |
download_link();
|
56 |
clearInterval(display_log);
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
59 |
});
|
60 |
})
|
61 |
|
62 |
-
|
63 |
$("#restore-form").submit(function() {
|
64 |
-
|
65 |
-
|
66 |
-
$(
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
window.intervalDefine = setInterval(display_log, 1000);
|
69 |
$("#restore-form").attr("target","upload_target");
|
70 |
$("#upload_target").load(function (){
|
@@ -72,10 +111,14 @@
|
|
72 |
});
|
73 |
});
|
74 |
|
75 |
-
|
76 |
function importRestore() {
|
77 |
-
|
78 |
-
|
|
|
|
|
|
|
|
|
79 |
clearInterval(display_log);
|
80 |
$('.restore-icon').fadeOut(1000);
|
81 |
}
|
1 |
/**
|
2 |
* WP Backitup Admin Control Panel JavaScripts
|
3 |
*
|
4 |
+
* @version 1.4.0
|
5 |
* @since 1.0.1
|
6 |
*/
|
7 |
|
8 |
(function($){
|
9 |
+
/* define backup variables */
|
10 |
var backup = {
|
11 |
action: 'backup',
|
12 |
beforeSend: function() {
|
13 |
+
/* display processing icon */
|
14 |
$('.backup-icon').css('visibility','visible');
|
15 |
+
|
16 |
+
/* hide default message, restore status and restore errors */
|
17 |
+
$('.default-status, .restore-status, .restore-errors').hide();
|
18 |
+
|
19 |
+
/* show backup status, backup errors */
|
20 |
+
$('.backup-status, .backup-errors').toggle();
|
21 |
+
|
22 |
window.intervalDefine = setInterval(display_log, 1000);
|
23 |
}
|
24 |
};
|
25 |
|
26 |
+
/* define download variables */
|
27 |
var download = {
|
28 |
action: 'download'
|
29 |
};
|
30 |
+
|
31 |
+
/* define logreader variables */
|
32 |
var logreader = {
|
33 |
action: 'logreader'
|
34 |
};
|
35 |
+
|
36 |
+
/* define logreader function */
|
37 |
function display_log() {
|
38 |
$.post(ajaxurl, logreader, function(response) {
|
39 |
+
|
40 |
+
/* Get response from log reader */
|
41 |
var xmlObj = $(response);
|
42 |
+
|
43 |
+
/* For each response */
|
44 |
xmlObj.each(function() {
|
45 |
+
|
46 |
+
/* Select correct status */
|
47 |
+
var attributename = "." + $(this).attr('class');
|
48 |
+
|
49 |
+
if ( $(this).html() == 0 ) {
|
50 |
+
|
51 |
+
/* If status returns 0, display 'Failed' */
|
52 |
+
$(attributename).find(".fail").fadeIn(500);
|
53 |
+
|
54 |
+
} else {
|
55 |
+
|
56 |
+
/* If status returns 1, display 'Done' or show detailed message */
|
57 |
+
$(attributename).find(".status").fadeIn(500);
|
58 |
+
|
59 |
+
}
|
60 |
+
|
61 |
+
/* If is final or error */
|
62 |
+
if($(this).attr('code') == "finalinfo") {
|
63 |
+
|
64 |
+
/* Stop logreader */
|
65 |
clearInterval(window.intervalDefine);
|
66 |
}
|
67 |
});
|
68 |
});
|
69 |
}
|
70 |
|
71 |
+
/* define download function */
|
72 |
function download_link() {
|
73 |
$.post(ajaxurl, download, function(response) {
|
74 |
$("#download-link").html(response);
|
75 |
});
|
76 |
}
|
77 |
|
78 |
+
/* execute download (on page load/refresh) */
|
79 |
download_link();
|
80 |
|
81 |
+
/* execute backup on button click */
|
82 |
$(".backup-button").click( function() {
|
83 |
$.post(ajaxurl, backup, function(response) {
|
84 |
download_link();
|
85 |
clearInterval(display_log);
|
86 |
+
|
87 |
+
/* fade out status icon */
|
88 |
+
$('.backup-icon').fadeOut(1000);
|
89 |
+
|
90 |
+
/* Return PHP messages, used for development */
|
91 |
+
$("#php").html(response);
|
92 |
});
|
93 |
})
|
94 |
|
95 |
+
/* execute restore on button click */
|
96 |
$("#restore-form").submit(function() {
|
97 |
+
|
98 |
+
/* display processing icon */
|
99 |
+
$('.restore-icon').css('visibility','visible');
|
100 |
+
|
101 |
+
/* hide default message, backup status and backup errors */
|
102 |
+
$('.default-status, .backup-status, .backup-errors').hide();
|
103 |
+
|
104 |
+
/* show restore status messages */
|
105 |
+
$('.restore-status, .restore-errors').toggle();
|
106 |
+
|
107 |
window.intervalDefine = setInterval(display_log, 1000);
|
108 |
$("#restore-form").attr("target","upload_target");
|
109 |
$("#upload_target").load(function (){
|
111 |
});
|
112 |
});
|
113 |
|
114 |
+
/* define importRestore function */
|
115 |
function importRestore() {
|
116 |
+
|
117 |
+
/* process upload */
|
118 |
+
var ret = frames['upload_target'].document.getElementsByTagName("body")[0].innerHTML;
|
119 |
+
|
120 |
+
/* Return PHP messages, used for development */
|
121 |
+
$("#php").html(ret);
|
122 |
clearInterval(display_log);
|
123 |
$('.restore-icon').fadeOut(1000);
|
124 |
}
|
js/ajaxfileupload.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* WP Backitup Ajax File Upload
|
3 |
*
|
4 |
-
* @version 1.
|
5 |
* @since 1.0.1
|
6 |
*/
|
7 |
|
1 |
/**
|
2 |
* WP Backitup Ajax File Upload
|
3 |
*
|
4 |
+
* @version 1.4.0
|
5 |
* @since 1.0.1
|
6 |
*/
|
7 |
|
languages/en-GB.mo
ADDED
Binary file
|
languages/en-GB.po
ADDED
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Backitup\n"
|
4 |
+
"POT-Creation-Date: 2013-07-29 00:59-0000\n"
|
5 |
+
"PO-Revision-Date: 2013-07-29 00:59-0000\n"
|
6 |
+
"Last-Translator: John Peden <john.peden@britishcouncil.org>\n"
|
7 |
+
"Language-Team: John Peden Ltd <mail@johncpeden.com>\n"
|
8 |
+
"Language: English\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-SearchPath-0: .\n"
|
17 |
+
"X-Poedit-SearchPath-1: ..\n"
|
18 |
+
|
19 |
+
#: ../index.php:313
|
20 |
+
msgid "Manage"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: ../views/options.php:6 ../views/options.php:8
|
24 |
+
msgid "Backup"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: ../views/options.php:7
|
28 |
+
msgid "Create a backup file of this site's content and settings"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: ../views/options.php:9
|
32 |
+
msgid "Download"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../views/options.php:15 ../views/options.php:30
|
36 |
+
msgid "Restore"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: ../views/options.php:17
|
40 |
+
msgid ""
|
41 |
+
"Restore a WP Backitup zip file and overwrite this site's content, themes, "
|
42 |
+
"plugins, uploads and settings"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: ../views/options.php:22
|
46 |
+
msgid "The maximum filesize you can upload is "
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: ../views/options.php:35
|
50 |
+
msgid "Status"
|
51 |
+
msgstr ""
|
52 |
+
|
53 |
+
#: ../views/options.php:40
|
54 |
+
msgid "Nothing to report"
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: ../views/options.php:45
|
58 |
+
msgid "Preparing to backup"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: ../views/options.php:45 ../views/options.php:46 ../views/options.php:47
|
62 |
+
#: ../views/options.php:48 ../views/options.php:49 ../views/options.php:50
|
63 |
+
#: ../views/options.php:66 ../views/options.php:67 ../views/options.php:68
|
64 |
+
#: ../views/options.php:69 ../views/options.php:70 ../views/options.php:71
|
65 |
+
#: ../views/options.php:72
|
66 |
+
msgid "Done"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: ../views/options.php:45 ../views/options.php:46 ../views/options.php:47
|
70 |
+
#: ../views/options.php:48 ../views/options.php:49 ../views/options.php:50
|
71 |
+
#: ../views/options.php:66 ../views/options.php:67 ../views/options.php:68
|
72 |
+
#: ../views/options.php:69 ../views/options.php:70 ../views/options.php:71
|
73 |
+
#: ../views/options.php:72
|
74 |
+
msgid "Failed"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: ../views/options.php:46
|
78 |
+
msgid "Backing-up /wp-content/"
|
79 |
+
msgstr ""
|
80 |
+
|
81 |
+
#: ../views/options.php:47
|
82 |
+
msgid "Backing-up database"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: ../views/options.php:48
|
86 |
+
msgid "Creating backup directory"
|
87 |
+
msgstr ""
|
88 |
+
|
89 |
+
#: ../views/options.php:49
|
90 |
+
msgid "Zipping backup directory"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: ../views/options.php:50 ../views/options.php:72
|
94 |
+
msgid "Cleaning up"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: ../views/options.php:51
|
98 |
+
msgid ""
|
99 |
+
"Backup file created successfully. You can download your backup file using "
|
100 |
+
"the link above"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: ../views/options.php:56
|
104 |
+
msgid ""
|
105 |
+
"Error: Unable to create new directory for backup. Please check your CHMOD "
|
106 |
+
"settings of your wp-backitup plugin directory"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: ../views/options.php:57
|
110 |
+
msgid ""
|
111 |
+
"Error: Cannot create backup directory. Please check the CHMOD settings of "
|
112 |
+
"your wp-backitup plugin directory"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: ../views/options.php:58
|
116 |
+
msgid "Error: Unable to backup your files. Please try again"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: ../views/options.php:59
|
120 |
+
msgid "Error: Unable to backup your database. Please try again"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: ../views/options.php:60
|
124 |
+
msgid "Error: Unable to create site information file. Please try again"
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: ../views/options.php:61
|
128 |
+
msgid "Warning: Unable to cleanup your backup directory"
|
129 |
+
msgstr ""
|
130 |
+
|
131 |
+
#: ../views/options.php:66
|
132 |
+
msgid "Uploading restoration zip"
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#: ../views/options.php:67
|
136 |
+
msgid "Unzipping"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: ../views/options.php:68
|
140 |
+
msgid "Validating restoration zip"
|
141 |
+
msgstr ""
|
142 |
+
|
143 |
+
#: ../views/options.php:69
|
144 |
+
msgid "Setting checkpoint"
|
145 |
+
msgstr ""
|
146 |
+
|
147 |
+
#: ../views/options.php:70
|
148 |
+
msgid "Importing database"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: ../views/options.php:71
|
152 |
+
msgid "Importing /wp-content/ directory"
|
153 |
+
msgstr ""
|
154 |
+
|
155 |
+
#: ../views/options.php:73
|
156 |
+
msgid ""
|
157 |
+
"Restoration completed successfully. Please refresh the page and login to the "
|
158 |
+
"site again (with your current username and password)"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: ../views/options.php:78
|
162 |
+
msgid "Error: No file selected"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: ../views/options.php:79
|
166 |
+
msgid "Error: Your file could not be uploaded"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: ../views/options.php:80
|
170 |
+
msgid "Error: Your restoration file could not be unzipped"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: ../views/options.php:81
|
174 |
+
msgid ""
|
175 |
+
"Error: Your zip file appears to be invalid. Please ensure you chose the "
|
176 |
+
"correct zip file"
|
177 |
+
msgstr ""
|
178 |
+
|
179 |
+
#: ../views/options.php:82
|
180 |
+
msgid "Error: Cannot create restore point"
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
#: ../views/options.php:83
|
184 |
+
msgid "Error: Unable to connect to your database"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
#: ../views/options.php:84
|
188 |
+
msgid "Error: Unable to get current site URL from database. Please try again"
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: ../views/options.php:85
|
192 |
+
msgid "Error: Unable to get current home URL from database. Please try again"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: ../views/options.php:86
|
196 |
+
msgid "Error: Unable to get current user ID from database. Please try again"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: ../views/options.php:87
|
200 |
+
msgid ""
|
201 |
+
"Error: Unable to get current user password from database. Please try again"
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: ../views/options.php:88
|
205 |
+
msgid "Error: Unable to get current user email from database. Please try again"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: ../views/options.php:89
|
209 |
+
msgid ""
|
210 |
+
"Error: Unable to get import your database. This may require importing the "
|
211 |
+
"file manually"
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: ../views/options.php:90
|
215 |
+
msgid ""
|
216 |
+
"Error: Unable to update your current site URL value. This may require "
|
217 |
+
"importing the file manually"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: ../views/options.php:91
|
221 |
+
msgid ""
|
222 |
+
"Error: Unable to update your current home URL value. This may require "
|
223 |
+
"importing the file manually"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: ../views/options.php:92
|
227 |
+
msgid ""
|
228 |
+
"Error: Unable to update your user information. This may require importing "
|
229 |
+
"the file manually"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: ../views/options.php:93
|
233 |
+
msgid "Error: Warning: Database not detected in import file"
|
234 |
+
msgstr ""
|
235 |
+
|
236 |
+
#: ../views/options.php:94
|
237 |
+
msgid ""
|
238 |
+
"Error: Unable to remove existing wp-content directory for import. Please "
|
239 |
+
"check your CHMOD settings in /wp-content/"
|
240 |
+
msgstr ""
|
241 |
+
|
242 |
+
#: ../views/options.php:95
|
243 |
+
msgid ""
|
244 |
+
"Error: Unable to create new wp-content directory for import. Please check "
|
245 |
+
"your CHMOD settings in /wp-content/"
|
246 |
+
msgstr ""
|
247 |
+
|
248 |
+
#: ../views/options.php:96
|
249 |
+
msgid "Error: Unable to import wp-content. Please try again"
|
250 |
+
msgstr ""
|
251 |
+
|
252 |
+
#: ../views/options.php:97
|
253 |
+
msgid "Warning: Unable to cleanup import directory"
|
254 |
+
msgstr ""
|
255 |
+
|
256 |
+
#: ../views/options.php:108
|
257 |
+
msgid "License Key"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#: ../views/options.php:112
|
261 |
+
msgid "Pro features and auto-updates enabled"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: ../views/options.php:114
|
265 |
+
msgid "Activate auto-restore and auto-updates by entering your license key"
|
266 |
+
msgstr ""
|
267 |
+
|
268 |
+
#: ../views/options.php:119
|
269 |
+
msgid "Active"
|
270 |
+
msgstr ""
|
271 |
+
|
272 |
+
#: ../views/options.php:120
|
273 |
+
msgid "Update"
|
274 |
+
msgstr ""
|
275 |
+
|
276 |
+
#: ../views/options.php:122
|
277 |
+
msgid "Inactive"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#: ../views/options.php:123
|
281 |
+
msgid "Activate"
|
282 |
+
msgstr ""
|
283 |
+
|
284 |
+
#: ../views/options.php:124
|
285 |
+
msgid "Purchase a license key"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: ../views/options.php:131
|
289 |
+
msgid "WP Backitup support system"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: ../views/options.php:134
|
293 |
+
msgid "support system"
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
+
#: ../views/options.php:137
|
297 |
+
msgid "Need Help?"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#: ../views/options.php:138
|
301 |
+
msgid "Access the"
|
302 |
+
msgstr ""
|
303 |
+
|
304 |
+
#: ../views/options.php:142
|
305 |
+
msgid "Spread the Word"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
+
#: ../views/options.php:143
|
309 |
+
msgid "Rate WP Backitup"
|
310 |
+
msgstr ""
|
311 |
+
|
312 |
+
#: ../views/options.php:148
|
313 |
+
msgid "Enable"
|
314 |
+
msgstr ""
|
315 |
+
|
316 |
+
#: ../views/options.php:149
|
317 |
+
msgid "Disable"
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#: ../views/options.php:150
|
321 |
+
msgid "Help to improve Easy Webtrends by enabling"
|
322 |
+
msgstr ""
|
323 |
+
|
324 |
+
#: ../views/options.php:151
|
325 |
+
msgid "Save"
|
326 |
+
msgstr ""
|
languages/template_en_US.po
DELETED
@@ -1,395 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: WP Backitup Pro\n"
|
4 |
-
"POT-Creation-Date: 2013-02-17 11:26-0000\n"
|
5 |
-
"PO-Revision-Date: 2013-02-17 11:26-0000\n"
|
6 |
-
"Last-Translator: John Peden <john.peden@britishcouncil.org>\n"
|
7 |
-
"Language-Team: WP Backitup <support@wpbackitup.com>\n"
|
8 |
-
"Language: English\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.5.4\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-SearchPath-0: .\n"
|
17 |
-
|
18 |
-
#: index.php:328
|
19 |
-
msgid "Settings"
|
20 |
-
msgstr "Bleh ble-bleh"
|
21 |
-
|
22 |
-
#: lib/functions.php:46
|
23 |
-
msgid "Download most recent export file"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: lib/functions.php:50
|
27 |
-
msgid "No export file available for download. Please create one."
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: lib/includes/backup.php:25 lib/includes/restore.php:24
|
31 |
-
msgid "Can't open file"
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: lib/includes/backup.php:29
|
35 |
-
msgid "Creating backup directory..."
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: lib/includes/backup.php:31
|
39 |
-
msgid ""
|
40 |
-
"Cannot create backup directory. Please check the CHMOD settings of your wp-"
|
41 |
-
"backitup plugin directory"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: lib/includes/backup.php:37 lib/includes/restore.php:142
|
45 |
-
msgid "Done"
|
46 |
-
msgstr ""
|
47 |
-
|
48 |
-
#: lib/includes/backup.php:45
|
49 |
-
msgid "Backing up your files..."
|
50 |
-
msgstr ""
|
51 |
-
|
52 |
-
#: lib/includes/backup.php:50
|
53 |
-
msgid "Unable to backup your files. Please try again."
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: lib/includes/backup.php:55
|
57 |
-
msgid "Backing up your database..."
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: lib/includes/backup.php:57 lib/includes/backup.php:77
|
61 |
-
#: lib/includes/restore.php:156 lib/includes/restore.php:174
|
62 |
-
#: lib/includes/restore.php:200 lib/includes/restore.php:336
|
63 |
-
msgid "Done!"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: lib/includes/backup.php:59
|
67 |
-
msgid "Unable to backup your database. Please try again."
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: lib/includes/backup.php:67
|
71 |
-
msgid "Unable to create site information file. Please try again."
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#: lib/includes/backup.php:73
|
75 |
-
msgid "Creating backup zip..."
|
76 |
-
msgstr ""
|
77 |
-
|
78 |
-
#: lib/includes/backup.php:81
|
79 |
-
msgid "Warning: Unable to cleanup your backup directory."
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: lib/includes/backup.php:85
|
83 |
-
msgid ""
|
84 |
-
"Backup file created successfully. You can download your backup file using "
|
85 |
-
"the link above."
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: lib/includes/restore.php:133
|
89 |
-
msgid "No file selected"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: lib/includes/restore.php:138
|
93 |
-
msgid "Uploading restoration file..."
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: lib/includes/restore.php:144
|
97 |
-
msgid "Your file could not be uploaded"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: lib/includes/restore.php:158
|
101 |
-
msgid "Your restoration file could not be unzipped."
|
102 |
-
msgstr ""
|
103 |
-
|
104 |
-
#: lib/includes/restore.php:165
|
105 |
-
msgid "Validating zip..."
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: lib/includes/restore.php:176
|
109 |
-
msgid ""
|
110 |
-
"Your zip file appears to be invalid. Please ensure you chose the correct zip "
|
111 |
-
"file."
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
-
#: lib/includes/restore.php:184
|
115 |
-
msgid "Restoring wp-content directory..."
|
116 |
-
msgstr ""
|
117 |
-
|
118 |
-
#: lib/includes/restore.php:186
|
119 |
-
msgid ""
|
120 |
-
"Unable to remove existing wp-content directory for import. Please check your "
|
121 |
-
"CHMOD settings in /wp-content/."
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: lib/includes/restore.php:193
|
125 |
-
msgid ""
|
126 |
-
"Unable to create new wp-content directory for import. Please check your "
|
127 |
-
"CHMOD settings in /wp-content/."
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: lib/includes/restore.php:202
|
131 |
-
msgid "Unable to import wp-content. Please try again."
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: lib/includes/restore.php:212
|
135 |
-
msgid "Restoring database..."
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: lib/includes/restore.php:222
|
139 |
-
msgid "Unable to connect to your current database"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: lib/includes/restore.php:236
|
143 |
-
msgid "Unable to get current site URL from database. Please try again."
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: lib/includes/restore.php:250
|
147 |
-
msgid "Unable to get current home URL from database. Please try again."
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: lib/includes/restore.php:264
|
151 |
-
msgid "Unable to get current user ID from database. Please try again."
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: lib/includes/restore.php:278
|
155 |
-
msgid "Unable to get current user password from database. Please try again."
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: lib/includes/restore.php:292
|
159 |
-
msgid "Unable to get current user email from database. Please try again."
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: lib/includes/restore.php:305
|
163 |
-
msgid ""
|
164 |
-
"Unable to get import your database. This may require importing the file "
|
165 |
-
"manually."
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: lib/includes/restore.php:323
|
169 |
-
msgid ""
|
170 |
-
"Unable to update your current home URL value. This may require importing the "
|
171 |
-
"file manually."
|
172 |
-
msgstr ""
|
173 |
-
|
174 |
-
#: lib/includes/restore.php:330
|
175 |
-
msgid ""
|
176 |
-
"Unable to update your user information. This may require importing the file "
|
177 |
-
"manually."
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: lib/includes/restore.php:338
|
181 |
-
msgid "Warning: Database not detected in import file."
|
182 |
-
msgstr ""
|
183 |
-
|
184 |
-
#: lib/includes/restore.php:351
|
185 |
-
msgid "Restoration complete. Please refresh the page."
|
186 |
-
msgstr ""
|
187 |
-
|
188 |
-
#: views/options.php:6 views/options.php:8
|
189 |
-
msgid "Backup"
|
190 |
-
msgstr ""
|
191 |
-
|
192 |
-
#: views/options.php:7
|
193 |
-
msgid "Create a backup file of this site's content and settings."
|
194 |
-
msgstr ""
|
195 |
-
|
196 |
-
#: views/options.php:9
|
197 |
-
msgid "Download"
|
198 |
-
msgstr ""
|
199 |
-
|
200 |
-
#: views/options.php:11 views/options.php:23
|
201 |
-
msgid "Restore"
|
202 |
-
msgstr ""
|
203 |
-
|
204 |
-
#: views/options.php:14
|
205 |
-
msgid ""
|
206 |
-
"Restore a WP Backitup zip file and overwrite this site's content, themes, "
|
207 |
-
"plugins, uploads and settings."
|
208 |
-
msgstr ""
|
209 |
-
|
210 |
-
#: views/options.php:25
|
211 |
-
msgid "Status"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: views/options.php:26
|
215 |
-
msgid "Nothing to report"
|
216 |
-
msgstr ""
|
217 |
-
|
218 |
-
#: views/options.php:35 views/options.php:56
|
219 |
-
msgid "License Key"
|
220 |
-
msgstr ""
|
221 |
-
|
222 |
-
#: views/options.php:39
|
223 |
-
msgid "Automatic updates enabled"
|
224 |
-
msgstr ""
|
225 |
-
|
226 |
-
#: views/options.php:41
|
227 |
-
msgid "Activate automatic updates by entering your license key"
|
228 |
-
msgstr ""
|
229 |
-
|
230 |
-
#: views/options.php:46
|
231 |
-
msgid "Active"
|
232 |
-
msgstr ""
|
233 |
-
|
234 |
-
#: views/options.php:47
|
235 |
-
msgid "Update"
|
236 |
-
msgstr ""
|
237 |
-
|
238 |
-
#: views/options.php:49
|
239 |
-
msgid "Inactive"
|
240 |
-
msgstr ""
|
241 |
-
|
242 |
-
#: views/options.php:50
|
243 |
-
msgid "Activate"
|
244 |
-
msgstr ""
|
245 |
-
|
246 |
-
#: views/options.php:55
|
247 |
-
msgid "Need Support?"
|
248 |
-
msgstr ""
|
249 |
-
|
250 |
-
#: views/options.php:60
|
251 |
-
msgid "Spread the Word"
|
252 |
-
msgstr ""
|
253 |
-
|
254 |
-
#: views/options.php:65
|
255 |
-
msgid "Enable"
|
256 |
-
msgstr ""
|
257 |
-
|
258 |
-
#: views/options.php:66
|
259 |
-
msgid "Disable"
|
260 |
-
msgstr ""
|
261 |
-
|
262 |
-
#: views/options.php:67
|
263 |
-
msgid ""
|
264 |
-
"Help to improve Easy Webtrends by enabling <a href=\"http://www.presstrends."
|
265 |
-
"io\" target=\"_blank\">Presstrends</a>"
|
266 |
-
msgstr ""
|
267 |
-
|
268 |
-
#: views/options.php:68
|
269 |
-
msgid "Save"
|
270 |
-
msgstr ""
|
271 |
-
|
272 |
-
#: lib/includes/restore.php:37
|
273 |
-
msgid "In Progress"
|
274 |
-
msgstr ""
|
275 |
-
|
276 |
-
#: lib/includes/restore.php:149
|
277 |
-
msgid "Done"
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: lib/includes/restore.php: 155
|
281 |
-
msgid "Error: Unable to create new directory for import. Please check your CHMOD settings in "
|
282 |
-
msgstr ""
|
283 |
-
|
284 |
-
#: lib/includes/restore.php: 155
|
285 |
-
msgid "Error: Unable to create new directory for import. Please check your CHMOD settings in "
|
286 |
-
msgstr ""
|
287 |
-
|
288 |
-
#: lib/includes/restore.php: 193
|
289 |
-
msgid "Error: Your restoration file could not be unzipped."
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: lib/includes/restore.php: 211
|
293 |
-
msgid "Error: Your zip file appears to be invalid. Please ensure you chose the correct zip file."
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: lib/includes/restore.php: 235
|
297 |
-
msgid "Error: Unable to connect to your current database: "
|
298 |
-
msgstr ""
|
299 |
-
|
300 |
-
|
301 |
-
#: lib/includes/restore.php: 249
|
302 |
-
msgid "Error: Unable to get current site URL from database. Please try again."
|
303 |
-
msgstr ""
|
304 |
-
|
305 |
-
#: lib/includes/restore.php: 263
|
306 |
-
msgid "Error: Unable to get current home URL from database. Please try again."
|
307 |
-
msgstr ""
|
308 |
-
|
309 |
-
#: lib/includes/restore.php: 277
|
310 |
-
msgid "Error: Unable to get current user ID from database. Please try again."
|
311 |
-
msgstr ""
|
312 |
-
|
313 |
-
#: lib/includes/restore.php: 291
|
314 |
-
msgid "Error: Unable to get current user password from database. Please try again."
|
315 |
-
msgstr ""
|
316 |
-
|
317 |
-
#: lib/includes/restore.php: 305
|
318 |
-
msgid "Error: Unable to get current user email from database. Please try again."
|
319 |
-
msgstr ""
|
320 |
-
|
321 |
-
#: lib/includes/restore.php: 319
|
322 |
-
msgid "Error: Unable to get import your database. This may require importing the file manually."
|
323 |
-
msgstr ""
|
324 |
-
|
325 |
-
#: lib/includes/restore.php: 330
|
326 |
-
msgid "Error: Unable to update your current site URL value. This may require importing the file manually."
|
327 |
-
msgstr ""
|
328 |
-
|
329 |
-
#: lib/includes/restore.php: 337
|
330 |
-
msgid "Error: Unable to update your current home URL value. This may require importing the file manually."
|
331 |
-
msgstr ""
|
332 |
-
|
333 |
-
#: lib/includes/restore.php: 344
|
334 |
-
msgid "Error: Unable to update your user information. This may require importing the file manually."
|
335 |
-
msgstr ""
|
336 |
-
|
337 |
-
#: lib/includes/restore.php: 352
|
338 |
-
msgid "Error: Warning: Database not detected in import file."
|
339 |
-
msgstr ""
|
340 |
-
|
341 |
-
#: lib/includes/restore.php: 360
|
342 |
-
msgid "Error: Unable to remove existing wp-content directory for import. Please check your CHMOD settings in /wp-content/."
|
343 |
-
msgstr ""
|
344 |
-
|
345 |
-
#: lib/includes/restore.php: 367
|
346 |
-
msgid "Error: Unable to create new wp-content directory for import. Please check your CHMOD settings in /wp-content/."
|
347 |
-
msgstr ""
|
348 |
-
|
349 |
-
#: lib/includes/restore.php: 376
|
350 |
-
msgid "Error: Unable to import wp-content. Please try again."
|
351 |
-
msgstr ""
|
352 |
-
|
353 |
-
|
354 |
-
#: lib/includes/restore.php: 392
|
355 |
-
msgid "Restoration Complete"
|
356 |
-
msgstr ""
|
357 |
-
|
358 |
-
|
359 |
-
#: lib/includes/backup.php: 35
|
360 |
-
msgid "Error: Unable to create new directory for backup. Please check your CHMOD settings in "
|
361 |
-
msgstr ""
|
362 |
-
|
363 |
-
|
364 |
-
#: lib/includes/backup.php: 46
|
365 |
-
msgid "Error: Cannot create backup directory. Please check the CHMOD settings of your wp-backitup plugin directory."
|
366 |
-
msgstr ""
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
#: lib/includes/backup.php: 67
|
371 |
-
msgid "Error: Unable to backup your files. Please try again."
|
372 |
-
msgstr ""
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
#: lib/includes/backup.php: 77
|
377 |
-
msgid "Error: Unable to backup your database. Please try again."
|
378 |
-
msgstr ""
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
#: lib/includes/backup.php: 87
|
383 |
-
msgid "Error: Unable to create site information file. Please try again."
|
384 |
-
msgstr ""
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
#: lib/includes/backup.php: 107
|
389 |
-
msgid "Warning: Unable to cleanup your backup directory."
|
390 |
-
msgstr ""
|
391 |
-
|
392 |
-
|
393 |
-
#: lib/includes/backup.php: 116
|
394 |
-
msgid "Backup file created successfully. You can download your backup file using the link above."
|
395 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/wp-backitup-pro.mo
DELETED
Binary file
|
languages/wp-backitup-pro.po
DELETED
@@ -1,270 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: WP Backitup Pro\n"
|
4 |
-
"POT-Creation-Date: 2013-02-17 11:26-0000\n"
|
5 |
-
"PO-Revision-Date: 2013-02-17 11:26-0000\n"
|
6 |
-
"Last-Translator: John Peden <john.peden@britishcouncil.org>\n"
|
7 |
-
"Language-Team: WP Backitup <support@wpbackitup.com>\n"
|
8 |
-
"Language: English\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.5.4\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-SearchPath-0: .\n"
|
17 |
-
|
18 |
-
#: index.php:328
|
19 |
-
msgid "Settings"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: lib/functions.php:46
|
23 |
-
msgid "Download most recent export file"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: lib/functions.php:50
|
27 |
-
msgid "No export file available for download. Please create one."
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: lib/includes/backup.php:25 lib/includes/restore.php:24
|
31 |
-
msgid "Can't open file"
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: lib/includes/backup.php:29
|
35 |
-
msgid "Creating backup directory..."
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: lib/includes/backup.php:31
|
39 |
-
msgid ""
|
40 |
-
"Cannot create backup directory. Please check the CHMOD settings of your wp-"
|
41 |
-
"backitup plugin directory"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: lib/includes/backup.php:37 lib/includes/restore.php:142
|
45 |
-
msgid "Done"
|
46 |
-
msgstr ""
|
47 |
-
|
48 |
-
#: lib/includes/backup.php:45
|
49 |
-
msgid "Backing up your files..."
|
50 |
-
msgstr ""
|
51 |
-
|
52 |
-
#: lib/includes/backup.php:50
|
53 |
-
msgid "Unable to backup your files. Please try again."
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: lib/includes/backup.php:55
|
57 |
-
msgid "Backing up your database..."
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: lib/includes/backup.php:57 lib/includes/backup.php:77
|
61 |
-
#: lib/includes/restore.php:156 lib/includes/restore.php:174
|
62 |
-
#: lib/includes/restore.php:200 lib/includes/restore.php:336
|
63 |
-
msgid "Done!"
|
64 |
-
msgstr ""
|
65 |
-
|
66 |
-
#: lib/includes/backup.php:59
|
67 |
-
msgid "Unable to backup your database. Please try again."
|
68 |
-
msgstr ""
|
69 |
-
|
70 |
-
#: lib/includes/backup.php:67
|
71 |
-
msgid "Unable to create site information file. Please try again."
|
72 |
-
msgstr ""
|
73 |
-
|
74 |
-
#: lib/includes/backup.php:73
|
75 |
-
msgid "Creating backup zip..."
|
76 |
-
msgstr ""
|
77 |
-
|
78 |
-
#: lib/includes/backup.php:81
|
79 |
-
msgid "Warning: Unable to cleanup your backup directory."
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: lib/includes/backup.php:85
|
83 |
-
msgid ""
|
84 |
-
"Backup file created successfully. You can download your backup file using "
|
85 |
-
"the link above."
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: lib/includes/restore.php:133
|
89 |
-
msgid "No file selected"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: lib/includes/restore.php:138
|
93 |
-
msgid "Uploading restoration file..."
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: lib/includes/restore.php:144
|
97 |
-
msgid "Your file could not be uploaded"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: lib/includes/restore.php:158
|
101 |
-
msgid "Your restoration file could not be unzipped."
|
102 |
-
msgstr ""
|
103 |
-
|
104 |
-
#: lib/includes/restore.php:165
|
105 |
-
msgid "Validating zip..."
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: lib/includes/restore.php:176
|
109 |
-
msgid ""
|
110 |
-
"Your zip file appears to be invalid. Please ensure you chose the correct zip "
|
111 |
-
"file."
|
112 |
-
msgstr ""
|
113 |
-
|
114 |
-
#: lib/includes/restore.php:184
|
115 |
-
msgid "Restoring wp-content directory..."
|
116 |
-
msgstr ""
|
117 |
-
|
118 |
-
#: lib/includes/restore.php:186
|
119 |
-
msgid ""
|
120 |
-
"Unable to remove existing wp-content directory for import. Please check your "
|
121 |
-
"CHMOD settings in /wp-content/."
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: lib/includes/restore.php:193
|
125 |
-
msgid ""
|
126 |
-
"Unable to create new wp-content directory for import. Please check your "
|
127 |
-
"CHMOD settings in /wp-content/."
|
128 |
-
msgstr ""
|
129 |
-
|
130 |
-
#: lib/includes/restore.php:202
|
131 |
-
msgid "Unable to import wp-content. Please try again."
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: lib/includes/restore.php:212
|
135 |
-
msgid "Restoring database..."
|
136 |
-
msgstr ""
|
137 |
-
|
138 |
-
#: lib/includes/restore.php:222
|
139 |
-
msgid "Unable to connect to your current database"
|
140 |
-
msgstr ""
|
141 |
-
|
142 |
-
#: lib/includes/restore.php:236
|
143 |
-
msgid "Unable to get current site URL from database. Please try again."
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#: lib/includes/restore.php:250
|
147 |
-
msgid "Unable to get current home URL from database. Please try again."
|
148 |
-
msgstr ""
|
149 |
-
|
150 |
-
#: lib/includes/restore.php:264
|
151 |
-
msgid "Unable to get current user ID from database. Please try again."
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: lib/includes/restore.php:278
|
155 |
-
msgid "Unable to get current user password from database. Please try again."
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: lib/includes/restore.php:292
|
159 |
-
msgid "Unable to get current user email from database. Please try again."
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#: lib/includes/restore.php:305
|
163 |
-
msgid ""
|
164 |
-
"Unable to get import your database. This may require importing the file "
|
165 |
-
"manually."
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: lib/includes/restore.php:323
|
169 |
-
msgid ""
|
170 |
-
"Unable to update your current home URL value. This may require importing the "
|
171 |
-
"file manually."
|
172 |
-
msgstr ""
|
173 |
-
|
174 |
-
#: lib/includes/restore.php:330
|
175 |
-
msgid ""
|
176 |
-
"Unable to update your user information. This may require importing the file "
|
177 |
-
"manually."
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: lib/includes/restore.php:338
|
181 |
-
msgid "Warning: Database not detected in import file."
|
182 |
-
msgstr ""
|
183 |
-
|
184 |
-
#: lib/includes/restore.php:351
|
185 |
-
msgid "Restoration complete. Please refresh the page."
|
186 |
-
msgstr ""
|
187 |
-
|
188 |
-
#: views/options.php:6 views/options.php:8
|
189 |
-
msgid "Backup"
|
190 |
-
msgstr ""
|
191 |
-
|
192 |
-
#: views/options.php:7
|
193 |
-
msgid "Create a backup file of this site's content and settings."
|
194 |
-
msgstr ""
|
195 |
-
|
196 |
-
#: views/options.php:9
|
197 |
-
msgid "Download"
|
198 |
-
msgstr ""
|
199 |
-
|
200 |
-
#: views/options.php:11 views/options.php:23
|
201 |
-
msgid "Restore"
|
202 |
-
msgstr ""
|
203 |
-
|
204 |
-
#: views/options.php:14
|
205 |
-
msgid ""
|
206 |
-
"Restore a WP Backitup zip file and overwrite this site's content, themes, "
|
207 |
-
"plugins, uploads and settings."
|
208 |
-
msgstr ""
|
209 |
-
|
210 |
-
#: views/options.php:25
|
211 |
-
msgid "Status"
|
212 |
-
msgstr ""
|
213 |
-
|
214 |
-
#: views/options.php:26
|
215 |
-
msgid "Nothing to report"
|
216 |
-
msgstr ""
|
217 |
-
|
218 |
-
#: views/options.php:35 views/options.php:56
|
219 |
-
msgid "License Key"
|
220 |
-
msgstr ""
|
221 |
-
|
222 |
-
#: views/options.php:39
|
223 |
-
msgid "Automatic updates enabled"
|
224 |
-
msgstr ""
|
225 |
-
|
226 |
-
#: views/options.php:41
|
227 |
-
msgid "Activate automatic updates by entering your license key"
|
228 |
-
msgstr ""
|
229 |
-
|
230 |
-
#: views/options.php:46
|
231 |
-
msgid "Active"
|
232 |
-
msgstr ""
|
233 |
-
|
234 |
-
#: views/options.php:47
|
235 |
-
msgid "Update"
|
236 |
-
msgstr ""
|
237 |
-
|
238 |
-
#: views/options.php:49
|
239 |
-
msgid "Inactive"
|
240 |
-
msgstr ""
|
241 |
-
|
242 |
-
#: views/options.php:50
|
243 |
-
msgid "Activate"
|
244 |
-
msgstr ""
|
245 |
-
|
246 |
-
#: views/options.php:55
|
247 |
-
msgid "Need Support?"
|
248 |
-
msgstr ""
|
249 |
-
|
250 |
-
#: views/options.php:60
|
251 |
-
msgid "Spread the Word"
|
252 |
-
msgstr ""
|
253 |
-
|
254 |
-
#: views/options.php:65
|
255 |
-
msgid "Enable"
|
256 |
-
msgstr ""
|
257 |
-
|
258 |
-
#: views/options.php:66
|
259 |
-
msgid "Disable"
|
260 |
-
msgstr ""
|
261 |
-
|
262 |
-
#: views/options.php:67
|
263 |
-
msgid ""
|
264 |
-
"Help to improve Easy Webtrends by enabling <a href=\"http://www.presstrends."
|
265 |
-
"io\" target=\"_blank\">Presstrends</a>"
|
266 |
-
msgstr ""
|
267 |
-
|
268 |
-
#: views/options.php:68
|
269 |
-
msgid "Save"
|
270 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/constants.php
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
/**
|
3 |
* Constants used by this plugin
|
4 |
*
|
5 |
-
* @package WP Backitup
|
6 |
*
|
7 |
* @author jcpeden
|
8 |
-
* @version 1.
|
9 |
* @since 1.0.1
|
10 |
*/
|
11 |
|
12 |
-
if( !defined( 'WPBACKITUP_VERSION' ) ) define( 'WPBACKITUP_VERSION', '1.
|
13 |
|
14 |
if( !defined( 'WPBACKITUP_DIRNAME' ) ) define( 'WPBACKITUP_DIRNAME', dirname( dirname( __FILE__ ) ) );
|
15 |
|
2 |
/**
|
3 |
* Constants used by this plugin
|
4 |
*
|
5 |
+
* @package WP Backitup
|
6 |
*
|
7 |
* @author jcpeden
|
8 |
+
* @version 1.4.0
|
9 |
* @since 1.0.1
|
10 |
*/
|
11 |
|
12 |
+
if( !defined( 'WPBACKITUP_VERSION' ) ) define( 'WPBACKITUP_VERSION', '1.4.0' );
|
13 |
|
14 |
if( !defined( 'WPBACKITUP_DIRNAME' ) ) define( 'WPBACKITUP_DIRNAME', dirname( dirname( __FILE__ ) ) );
|
15 |
|
lib/functions.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package WP Backitup
|
6 |
*
|
7 |
* @author jcpeden
|
8 |
-
* @version 1.
|
9 |
* @since 1.0.1
|
10 |
*/
|
11 |
|
5 |
* @package WP Backitup
|
6 |
*
|
7 |
* @author jcpeden
|
8 |
+
* @version 1.4.0
|
9 |
* @since 1.0.1
|
10 |
*/
|
11 |
|
lib/includes/auto_update.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package WP Backitup
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
-
* @version 1.
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
6 |
* @package WP Backitup
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
+
* @version 1.4.0
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
lib/includes/backup.php
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
/**
|
4 |
* WP Backitup Backup Functions
|
5 |
*
|
6 |
-
* @package WP Backitup
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
-
* @version 1.
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
@@ -21,7 +21,6 @@ $backup_project_path = WPBACKITUP_DIRNAME ."/backups/". $backup_project_dirname
|
|
21 |
$wp_content_path = dirname(dirname(dirname(dirname(dirname(__FILE__))))) .'/';
|
22 |
|
23 |
//create log file
|
24 |
-
|
25 |
$log = WPBACKITUP_DIRNAME ."/logs/status.log";
|
26 |
unlink($log);
|
27 |
$fh = fopen($log, 'w') or die("Can't open log file");
|
@@ -31,16 +30,16 @@ recursive_delete( WPBACKITUP_DIR_PATH .'/backups/' );
|
|
31 |
|
32 |
//Re-create and empty backup dir
|
33 |
if(!create_dir( WPBACKITUP_DIR_PATH .'/backups/' )) {
|
34 |
-
fwrite($fh, '<
|
35 |
-
fwrite($fh, '<
|
36 |
fclose($fh);
|
37 |
die();
|
38 |
}
|
39 |
|
40 |
//Check to see if the directory is writeable
|
41 |
if(!is_writeable(WPBACKITUP_DIRNAME ."/backups/")) {
|
42 |
-
fwrite($fh, '<
|
43 |
-
fwrite($fh, '<
|
44 |
die();
|
45 |
} else {
|
46 |
//If the directory is writeable, create the backup folder if it doesn't exist
|
@@ -50,23 +49,24 @@ if(!is_writeable(WPBACKITUP_DIRNAME ."/backups/")) {
|
|
50 |
foreach(glob(WPBACKITUP_DIRNAME ."/backups/*.zip") as $zip) {
|
51 |
unlink($zip);
|
52 |
}
|
53 |
-
fwrite($fh, '<
|
54 |
}
|
55 |
|
56 |
//Backup with copy
|
57 |
if(recursive_copy($wp_content_path, $backup_project_path, $ignore = array( 'cgi-bin','.','..','._',$backup_project_dirname,'backupbuddy_backups','*.zip','cache' ) ) ) {
|
58 |
-
fwrite($fh, '<
|
59 |
} else {
|
60 |
-
fwrite($fh, '<
|
61 |
-
fwrite($fh, '<
|
62 |
die();
|
63 |
}
|
64 |
|
65 |
//Dump DB to project dir
|
66 |
if( db_backup($backup_project_path) ) {
|
67 |
-
fwrite($fh, '<
|
68 |
} else {
|
69 |
-
fwrite($fh, '<
|
|
|
70 |
recursive_delete($backup_project_path);
|
71 |
die();
|
72 |
}
|
@@ -75,31 +75,30 @@ if( db_backup($backup_project_path) ) {
|
|
75 |
global $wpdb;
|
76 |
|
77 |
if (!create_siteinfo($backup_project_path, $wpdb->prefix) ) {
|
78 |
-
fwrite($fh, '<
|
79 |
-
fwrite($fh, '<
|
80 |
recursive_delete($backup_project_path);
|
81 |
die();
|
82 |
} else {
|
83 |
-
fwrite($fh, '<
|
84 |
}
|
85 |
|
86 |
//Zip the project dir
|
87 |
$z = new recurseZip();
|
88 |
$src = rtrim($backup_project_path, '/');
|
89 |
$z->compress($src, WPBACKITUP_DIRNAME ."/backups/");
|
90 |
-
fwrite($fh, '<
|
91 |
|
92 |
//Delete backup dir
|
93 |
if(!recursive_delete($backup_project_path)) {
|
94 |
-
fwrite($fh, '<
|
95 |
-
fwrite($fh, '<
|
96 |
} else {
|
97 |
-
fwrite($fh, '<
|
98 |
}
|
99 |
|
100 |
//close log file
|
101 |
-
fwrite($fh, '<
|
102 |
-
fwrite($fh, '<status code="end">' . __('End', $WPBackitup->namespace ) . '</status>');
|
103 |
fclose($fh);
|
104 |
|
105 |
//End backup function
|
3 |
/**
|
4 |
* WP Backitup Backup Functions
|
5 |
*
|
6 |
+
* @package WP Backitup Pro
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
+
* @version 1.4.0
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
21 |
$wp_content_path = dirname(dirname(dirname(dirname(dirname(__FILE__))))) .'/';
|
22 |
|
23 |
//create log file
|
|
|
24 |
$log = WPBACKITUP_DIRNAME ."/logs/status.log";
|
25 |
unlink($log);
|
26 |
$fh = fopen($log, 'w') or die("Can't open log file");
|
30 |
|
31 |
//Re-create and empty backup dir
|
32 |
if(!create_dir( WPBACKITUP_DIR_PATH .'/backups/' )) {
|
33 |
+
fwrite($fh, '<div class="prerequsites">0</div>');
|
34 |
+
fwrite($fh, '<div class="error101">1</div>');
|
35 |
fclose($fh);
|
36 |
die();
|
37 |
}
|
38 |
|
39 |
//Check to see if the directory is writeable
|
40 |
if(!is_writeable(WPBACKITUP_DIRNAME ."/backups/")) {
|
41 |
+
fwrite($fh, '<div class="prerequsites">0</div>');
|
42 |
+
fwrite($fh, '<div class="error102">1</div>');
|
43 |
die();
|
44 |
} else {
|
45 |
//If the directory is writeable, create the backup folder if it doesn't exist
|
49 |
foreach(glob(WPBACKITUP_DIRNAME ."/backups/*.zip") as $zip) {
|
50 |
unlink($zip);
|
51 |
}
|
52 |
+
fwrite($fh, '<div class="prerequisites">1</div>');
|
53 |
}
|
54 |
|
55 |
//Backup with copy
|
56 |
if(recursive_copy($wp_content_path, $backup_project_path, $ignore = array( 'cgi-bin','.','..','._',$backup_project_dirname,'backupbuddy_backups','*.zip','cache' ) ) ) {
|
57 |
+
fwrite($fh, '<div class="backupfiles">1</div>');
|
58 |
} else {
|
59 |
+
fwrite($fh, '<div class="backupfiles">0</div>');
|
60 |
+
fwrite($fh, '<div class="error103">1</div>');
|
61 |
die();
|
62 |
}
|
63 |
|
64 |
//Dump DB to project dir
|
65 |
if( db_backup($backup_project_path) ) {
|
66 |
+
fwrite($fh, '<div class="backupdb">1</div>');
|
67 |
} else {
|
68 |
+
fwrite($fh, '<div class="backupdb">0</div>');
|
69 |
+
fwrite($fh, '<div class="error104">1</div>');
|
70 |
recursive_delete($backup_project_path);
|
71 |
die();
|
72 |
}
|
75 |
global $wpdb;
|
76 |
|
77 |
if (!create_siteinfo($backup_project_path, $wpdb->prefix) ) {
|
78 |
+
fwrite($fh, '<div class="infofile">0</div>');
|
79 |
+
fwrite($fh, '<div class="error105">1</div>');
|
80 |
recursive_delete($backup_project_path);
|
81 |
die();
|
82 |
} else {
|
83 |
+
fwrite($fh, '<div class="infofile">1</div>');
|
84 |
}
|
85 |
|
86 |
//Zip the project dir
|
87 |
$z = new recurseZip();
|
88 |
$src = rtrim($backup_project_path, '/');
|
89 |
$z->compress($src, WPBACKITUP_DIRNAME ."/backups/");
|
90 |
+
fwrite($fh, '<div class="zipfile">1</div>');
|
91 |
|
92 |
//Delete backup dir
|
93 |
if(!recursive_delete($backup_project_path)) {
|
94 |
+
fwrite($fh, '<div class="cleanup">0</div>');
|
95 |
+
fwrite($fh, '<div class="error106">1</div>');
|
96 |
} else {
|
97 |
+
fwrite($fh, '<div class="cleanup">1</div>');
|
98 |
}
|
99 |
|
100 |
//close log file
|
101 |
+
fwrite($fh, '<div class="finalinfo">1</div>');
|
|
|
102 |
fclose($fh);
|
103 |
|
104 |
//End backup function
|
lib/includes/recurse_zip.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php
|
2 |
* WP Backitup Recurse Zip Function
|
3 |
*
|
4 |
* @package WP Backitup
|
5 |
*
|
6 |
* @author jcpeden
|
7 |
* @version 1.3.0
|
8 |
* @since 1.0.1
|
9 |
*/
|
|
|
10 |
* WP Backitup Recurse Zip Function
|
11 |
*
|
12 |
* @package WP Backitup
|
13 |
*
|
14 |
* @author jcpeden
|
15 |
* @version 1.4.0
|
16 |
* @since 1.0.1
|
17 |
*/
|
|
|
1 |
* WP Backitup Recurse Zip Function
|
2 |
*
|
3 |
* @package WP Backitup
|
4 |
*
|
5 |
* @author jcpeden
|
6 |
* @version 1.3.0
|
7 |
* @since 1.0.1
|
8 |
*/
|
9 |
+
<?php
|
10 |
* WP Backitup Recurse Zip Function
|
11 |
*
|
12 |
* @package WP Backitup
|
13 |
*
|
14 |
* @author jcpeden
|
15 |
* @version 1.4.0
|
16 |
* @since 1.0.1
|
17 |
*/
|
lib/includes/restore.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package WP Backitup Pro
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
-
* @version 1.
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
@@ -19,6 +19,10 @@ if( !defined( 'WPBACKITUP_DIRNAME' ) ) define( 'WPBACKITUP_DIRNAME', basename(WP
|
|
19 |
|
20 |
if( !defined( 'WP_CONTENT_PATH' ) ) define( 'WP_CONTENT_PATH', dirname( dirname( WPBACKITUP_DIR_PATH ) ) ) ;
|
21 |
|
|
|
|
|
|
|
|
|
22 |
if(!function_exists('create_dir')) {
|
23 |
function create_dir($dir) {
|
24 |
if( !is_dir($dir) ) {
|
@@ -30,12 +34,12 @@ if(!function_exists('create_dir')) {
|
|
30 |
|
31 |
if(!function_exists('redo_to_checkpoint')) {
|
32 |
function redo_to_checkpoint($checkpoint) {
|
33 |
-
|
34 |
if($checkpoint == "db")
|
35 |
{
|
36 |
if( glob($restoration_dir_path . "*.cur") ) {
|
37 |
//collect connection information from form
|
38 |
-
fwrite($fh, '<
|
39 |
include_once WP_DIR_PATH .'/wp-config.php';
|
40 |
//Add user to DB in v1.0.5
|
41 |
$user_id = $_POST['user_id'];
|
@@ -146,7 +150,7 @@ recursive_delete( WPBACKITUP_DIR_PATH .'/backups/' );
|
|
146 |
|
147 |
//Re-create and empty backup dir
|
148 |
if(!create_dir( WPBACKITUP_DIR_PATH .'/backups/' )) {
|
149 |
-
fwrite($fh, '<
|
150 |
fclose($fh);
|
151 |
die();
|
152 |
}
|
@@ -154,47 +158,35 @@ if(!create_dir( WPBACKITUP_DIR_PATH .'/backups/' )) {
|
|
154 |
//Move the uploaded zip to the restoration directory
|
155 |
$restore_file_name = basename( $_FILES['wpbackitup-zip']['name']);
|
156 |
if( $restore_file_name == '') {
|
157 |
-
fwrite($fh, '<
|
158 |
fclose($fh);
|
159 |
die();
|
160 |
-
} else {
|
161 |
-
fwrite($fh, '<status code="upload">Done</status>');
|
162 |
}
|
163 |
|
164 |
-
//define create_dir function
|
165 |
-
|
166 |
-
fwrite($fh, '<status code="copyfiles">In Progress</status>');
|
167 |
-
|
168 |
$restore_path = WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name;
|
169 |
if(move_uploaded_file($_FILES['wpbackitup-zip']['tmp_name'], $restore_path)) {
|
170 |
-
|
171 |
} else {
|
172 |
-
|
173 |
fclose($fh);
|
174 |
die();
|
175 |
}
|
176 |
|
177 |
-
//Unzip the uploaded restore file
|
178 |
-
fwrite($fh, '<status code="unzipping">In Progress</status>');
|
179 |
-
|
180 |
-
//include recurse_zip.php
|
181 |
-
include_once 'recurse_zip.php';
|
182 |
//unzip the upload
|
183 |
$zip = new ZipArchive;
|
184 |
$res = $zip->open(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
185 |
if ($res === TRUE) {
|
186 |
$zip->extractTo(WPBACKITUP_DIR_PATH .'/backups/');
|
187 |
$zip->close();
|
188 |
-
fwrite($fh, '<
|
189 |
} else {
|
190 |
-
fwrite($fh, '<
|
191 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
192 |
fclose($fh);
|
193 |
die();
|
194 |
}
|
195 |
|
196 |
//Identify the restoration directory
|
197 |
-
fwrite($fh, '<status code="validation">In Progress</status>');
|
198 |
if ( count( glob( WPBACKITUP_DIR_PATH .'/backups/*', GLOB_ONLYDIR ) ) == 1 ) {
|
199 |
foreach( glob(WPBACKITUP_DIR_PATH .'/backups/*', GLOB_ONLYDIR ) as $dir) {
|
200 |
$restoration_dir_path = $dir .'/';
|
@@ -203,36 +195,44 @@ if ( count( glob( WPBACKITUP_DIR_PATH .'/backups/*', GLOB_ONLYDIR ) ) == 1 ) {
|
|
203 |
|
204 |
//Validate the restoration
|
205 |
if(glob($restoration_dir_path .'backupsiteinfo.txt') ){
|
206 |
-
fwrite($fh, '<
|
207 |
} else {
|
208 |
-
fwrite($fh, '<
|
209 |
recursive_delete($restoration_dir_path);
|
210 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
211 |
fclose($fh);
|
212 |
die();
|
213 |
}
|
|
|
214 |
// Backup the current database
|
215 |
-
|
216 |
-
|
|
|
|
|
|
|
|
|
|
|
217 |
|
218 |
//if there is a database dump to restore
|
219 |
if( glob($restoration_dir_path . "*.sql") ) {
|
220 |
-
|
221 |
-
|
222 |
include_once WP_DIR_PATH .'/wp-config.php';
|
|
|
223 |
//Add user to DB in v1.0.5
|
224 |
$user_id = $_POST['user_id'];
|
|
|
225 |
//Connect to DB
|
226 |
-
//$output = db_import($restoration_dir_path, $import_siteurl, $current_siteurl, $table_prefix, $import_table_prefix, $dbc);
|
227 |
-
//13-4-13: John C Peden [mail@johncpeden.com] This seems to be erroneous, I've commented out.
|
228 |
$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
|
229 |
if ( !$dbc ) {
|
230 |
-
fwrite($fh, '<
|
|
|
231 |
recursive_delete($restoration_dir_path);
|
232 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
233 |
fclose($fh);
|
234 |
die();
|
235 |
}
|
|
|
236 |
//get siteurl
|
237 |
$q1 = "SELECT option_value FROM " .$table_prefix ."options WHERE option_name ='siteurl';";
|
238 |
if ($result = mysqli_query($dbc, $q1)) {
|
@@ -241,12 +241,13 @@ if( glob($restoration_dir_path . "*.sql") ) {
|
|
241 |
}
|
242 |
mysqli_free_result($result);
|
243 |
} else {
|
244 |
-
fwrite($fh, '<
|
245 |
recursive_delete($restoration_dir_path);
|
246 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
247 |
fclose($fh);
|
248 |
die();
|
249 |
}
|
|
|
250 |
//get homeurl
|
251 |
$q2 = "SELECT option_value FROM " .$table_prefix ."options WHERE option_name ='home';";
|
252 |
if ($result = mysqli_query($dbc, $q2)) {
|
@@ -255,12 +256,13 @@ if( glob($restoration_dir_path . "*.sql") ) {
|
|
255 |
}
|
256 |
mysqli_free_result($result);
|
257 |
} else {
|
258 |
-
fwrite($fh, '<
|
259 |
recursive_delete($restoration_dir_path);
|
260 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
261 |
fclose($fh);
|
262 |
die();
|
263 |
}
|
|
|
264 |
//get user login
|
265 |
$q3 = "SELECT user_login FROM ". $table_prefix ."users WHERE ID=" .$user_id .";";
|
266 |
if ($result = mysqli_query($dbc, $q3)) {
|
@@ -269,12 +271,13 @@ if( glob($restoration_dir_path . "*.sql") ) {
|
|
269 |
}
|
270 |
mysqli_free_result($result);
|
271 |
} else {
|
272 |
-
fwrite($fh, '<
|
273 |
recursive_delete($restoration_dir_path);
|
274 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
275 |
fclose($fh);
|
276 |
die();
|
277 |
}
|
|
|
278 |
//get user pass
|
279 |
$q4 = "SELECT user_pass FROM ". $table_prefix ."users WHERE ID=" .$user_id .";";
|
280 |
if ($result = mysqli_query($dbc, $q4)) {
|
@@ -283,12 +286,13 @@ if( glob($restoration_dir_path . "*.sql") ) {
|
|
283 |
}
|
284 |
mysqli_free_result($result);
|
285 |
} else {
|
286 |
-
fwrite($fh, '<
|
287 |
recursive_delete($restoration_dir_path);
|
288 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
289 |
fclose($fh);
|
290 |
die();
|
291 |
}
|
|
|
292 |
//get user email
|
293 |
$q5 = "SELECT user_email FROM ". $table_prefix ."users WHERE ID=" .$user_id ."";
|
294 |
if ($result = mysqli_query($dbc, $q5)) {
|
@@ -297,95 +301,99 @@ if( glob($restoration_dir_path . "*.sql") ) {
|
|
297 |
}
|
298 |
mysqli_free_result($result);
|
299 |
} else {
|
300 |
-
fwrite($fh, '<
|
301 |
recursive_delete($restoration_dir_path);
|
302 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
303 |
fclose($fh);
|
304 |
die();
|
305 |
}
|
|
|
306 |
//Collect previous backup site url start
|
307 |
$import_siteinfo_lines = file($restoration_dir_path .'backupsiteinfo.txt');
|
308 |
$import_siteurl = trim($import_siteinfo_lines[0]);
|
309 |
$current_siteurl = trim($siteurl ,'/');
|
310 |
$import_table_prefix = $import_siteinfo_lines[1];
|
|
|
311 |
//import the database
|
312 |
-
|
313 |
if(!db_import($restoration_dir_path, $import_siteurl, $current_siteurl, $table_prefix, $import_table_prefix, $dbc)) {
|
314 |
-
fwrite($fh, '<
|
315 |
recursive_delete($restoration_dir_path);
|
316 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
317 |
fclose($fh);
|
318 |
die();
|
319 |
}
|
|
|
320 |
//update the database
|
321 |
$q6 = "UPDATE ". $table_prefix ."options SET option_value='" .$current_siteurl ."' WHERE option_name='siteurl'";
|
322 |
$q7 = "UPDATE ". $table_prefix ."options SET option_value='" .$homeurl ."' WHERE option_name='home'";
|
323 |
$q8 = "UPDATE ". $table_prefix ."users SET user_login='" .$user_login ."', user_pass='" .$user_pass ."', user_email='" .$user_email ."' WHERE ID='" .$user_id ."'";
|
324 |
if(!mysqli_query($dbc, $q6) ) {
|
325 |
-
fwrite($fh, '<
|
326 |
recursive_delete($restoration_dir_path);
|
327 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
328 |
fclose($fh);
|
329 |
die();
|
330 |
}
|
331 |
if(!mysqli_query($dbc, $q7) ) {
|
332 |
-
fwrite($fh, '<
|
333 |
recursive_delete($restoration_dir_path);
|
334 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
335 |
fclose($fh);
|
336 |
die();
|
337 |
}
|
338 |
if(!mysqli_query($dbc, $q8) ) {
|
339 |
-
fwrite($fh, '<
|
340 |
recursive_delete($restoration_dir_path);
|
341 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
342 |
fclose($fh);
|
343 |
die();
|
344 |
}
|
345 |
-
fwrite($fh, '<
|
346 |
} else {
|
347 |
-
fwrite($fh, '<
|
348 |
}
|
349 |
|
350 |
//Disconnect
|
351 |
mysqli_close($dbc);
|
|
|
352 |
//Restore wp-content directories
|
353 |
-
fwrite($fh, '<status code="wpcontent">In Progress</status>');
|
354 |
if(!recursive_delete(WP_CONTENT_PATH, array( 'cgi-bin','.','..','._', WPBACKITUP_DIRNAME ))) {
|
355 |
-
fwrite($fh, '<
|
356 |
recursive_delete($restoration_dir_path);
|
357 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
358 |
fclose($fh);
|
359 |
die();
|
360 |
}
|
361 |
if(!create_dir(WP_CONTENT_PATH)) {
|
362 |
-
fwrite($fh, '<
|
363 |
recursive_delete($restoration_dir_path);
|
364 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
365 |
fclose($fh);
|
366 |
die();
|
367 |
}
|
368 |
if(recursive_copy($restoration_dir_path, WP_CONTENT_PATH .'/', array( 'cgi-bin', '.', '..','._', $restore_file_name, 'status.log', 'db-backup.sql', 'backupsiteinfo.txt')) ) {
|
369 |
-
fwrite($fh, '<
|
370 |
} else {
|
371 |
-
fwrite($fh, '<
|
372 |
recursive_delete($restoration_dir_path);
|
373 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
374 |
fclose($fh);
|
375 |
die();
|
376 |
}
|
377 |
|
378 |
-
|
379 |
-
|
380 |
//Delete the restoration directory
|
381 |
-
recursive_delete($restoration_dir_path)
|
|
|
|
|
|
|
|
|
|
|
382 |
|
383 |
//Delete zip
|
384 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
385 |
|
386 |
//close log file
|
387 |
-
fwrite($fh, '<
|
388 |
-
fwrite($fh, '<status code="finalinfo">Finished</status>');
|
389 |
fclose($fh);
|
390 |
|
391 |
//End backup function
|
6 |
* @package WP Backitup Pro
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
+
* @version 1.4.0
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
19 |
|
20 |
if( !defined( 'WP_CONTENT_PATH' ) ) define( 'WP_CONTENT_PATH', dirname( dirname( WPBACKITUP_DIR_PATH ) ) ) ;
|
21 |
|
22 |
+
// Include recurse_zip.php
|
23 |
+
include_once 'recurse_zip.php';
|
24 |
+
|
25 |
+
//define create_dir function
|
26 |
if(!function_exists('create_dir')) {
|
27 |
function create_dir($dir) {
|
28 |
if( !is_dir($dir) ) {
|
34 |
|
35 |
if(!function_exists('redo_to_checkpoint')) {
|
36 |
function redo_to_checkpoint($checkpoint) {
|
37 |
+
|
38 |
if($checkpoint == "db")
|
39 |
{
|
40 |
if( glob($restoration_dir_path . "*.cur") ) {
|
41 |
//collect connection information from form
|
42 |
+
fwrite($fh, '<div class="database">In Progress</div>');
|
43 |
include_once WP_DIR_PATH .'/wp-config.php';
|
44 |
//Add user to DB in v1.0.5
|
45 |
$user_id = $_POST['user_id'];
|
150 |
|
151 |
//Re-create and empty backup dir
|
152 |
if(!create_dir( WPBACKITUP_DIR_PATH .'/backups/' )) {
|
153 |
+
fwrite($fh, '<div class="error201">1</div>');
|
154 |
fclose($fh);
|
155 |
die();
|
156 |
}
|
158 |
//Move the uploaded zip to the restoration directory
|
159 |
$restore_file_name = basename( $_FILES['wpbackitup-zip']['name']);
|
160 |
if( $restore_file_name == '') {
|
161 |
+
fwrite($fh, '<div class="error201">1</div>');
|
162 |
fclose($fh);
|
163 |
die();
|
|
|
|
|
164 |
}
|
165 |
|
|
|
|
|
|
|
|
|
166 |
$restore_path = WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name;
|
167 |
if(move_uploaded_file($_FILES['wpbackitup-zip']['tmp_name'], $restore_path)) {
|
168 |
+
fwrite($fh, '<div class="upload">1</div>');
|
169 |
} else {
|
170 |
+
fwrite($fh, '<div class="error203">1</div>');
|
171 |
fclose($fh);
|
172 |
die();
|
173 |
}
|
174 |
|
|
|
|
|
|
|
|
|
|
|
175 |
//unzip the upload
|
176 |
$zip = new ZipArchive;
|
177 |
$res = $zip->open(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
178 |
if ($res === TRUE) {
|
179 |
$zip->extractTo(WPBACKITUP_DIR_PATH .'/backups/');
|
180 |
$zip->close();
|
181 |
+
fwrite($fh, '<div class="unzipping">1</div>');
|
182 |
} else {
|
183 |
+
fwrite($fh, '<div class="error204">1</div>');
|
184 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
185 |
fclose($fh);
|
186 |
die();
|
187 |
}
|
188 |
|
189 |
//Identify the restoration directory
|
|
|
190 |
if ( count( glob( WPBACKITUP_DIR_PATH .'/backups/*', GLOB_ONLYDIR ) ) == 1 ) {
|
191 |
foreach( glob(WPBACKITUP_DIR_PATH .'/backups/*', GLOB_ONLYDIR ) as $dir) {
|
192 |
$restoration_dir_path = $dir .'/';
|
195 |
|
196 |
//Validate the restoration
|
197 |
if(glob($restoration_dir_path .'backupsiteinfo.txt') ){
|
198 |
+
fwrite($fh, '<div class="validation">1</div>');
|
199 |
} else {
|
200 |
+
fwrite($fh, '<div class="error204">1</div>');
|
201 |
recursive_delete($restoration_dir_path);
|
202 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
203 |
fclose($fh);
|
204 |
die();
|
205 |
}
|
206 |
+
|
207 |
// Backup the current database
|
208 |
+
if( db_backup($restoration_dir_path) ) {
|
209 |
+
fwrite($fh, '<div class="restore_point">1</div>');
|
210 |
+
} else {
|
211 |
+
fwrite($fh, '<div class="error205">1</div>');
|
212 |
+
fclose($fh);
|
213 |
+
die();
|
214 |
+
}
|
215 |
|
216 |
//if there is a database dump to restore
|
217 |
if( glob($restoration_dir_path . "*.sql") ) {
|
218 |
+
|
219 |
+
//Collect connection information from form
|
220 |
include_once WP_DIR_PATH .'/wp-config.php';
|
221 |
+
|
222 |
//Add user to DB in v1.0.5
|
223 |
$user_id = $_POST['user_id'];
|
224 |
+
|
225 |
//Connect to DB
|
|
|
|
|
226 |
$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
|
227 |
if ( !$dbc ) {
|
228 |
+
fwrite($fh, '<div class="error206">1</div>');
|
229 |
+
|
230 |
recursive_delete($restoration_dir_path);
|
231 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
232 |
fclose($fh);
|
233 |
die();
|
234 |
}
|
235 |
+
|
236 |
//get siteurl
|
237 |
$q1 = "SELECT option_value FROM " .$table_prefix ."options WHERE option_name ='siteurl';";
|
238 |
if ($result = mysqli_query($dbc, $q1)) {
|
241 |
}
|
242 |
mysqli_free_result($result);
|
243 |
} else {
|
244 |
+
fwrite($fh, '<div class="error207">1</div>');
|
245 |
recursive_delete($restoration_dir_path);
|
246 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
247 |
fclose($fh);
|
248 |
die();
|
249 |
}
|
250 |
+
|
251 |
//get homeurl
|
252 |
$q2 = "SELECT option_value FROM " .$table_prefix ."options WHERE option_name ='home';";
|
253 |
if ($result = mysqli_query($dbc, $q2)) {
|
256 |
}
|
257 |
mysqli_free_result($result);
|
258 |
} else {
|
259 |
+
fwrite($fh, '<div class="error208">1</div>');
|
260 |
recursive_delete($restoration_dir_path);
|
261 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
262 |
fclose($fh);
|
263 |
die();
|
264 |
}
|
265 |
+
|
266 |
//get user login
|
267 |
$q3 = "SELECT user_login FROM ". $table_prefix ."users WHERE ID=" .$user_id .";";
|
268 |
if ($result = mysqli_query($dbc, $q3)) {
|
271 |
}
|
272 |
mysqli_free_result($result);
|
273 |
} else {
|
274 |
+
fwrite($fh, '<div class="error209">1</div>');
|
275 |
recursive_delete($restoration_dir_path);
|
276 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
277 |
fclose($fh);
|
278 |
die();
|
279 |
}
|
280 |
+
|
281 |
//get user pass
|
282 |
$q4 = "SELECT user_pass FROM ". $table_prefix ."users WHERE ID=" .$user_id .";";
|
283 |
if ($result = mysqli_query($dbc, $q4)) {
|
286 |
}
|
287 |
mysqli_free_result($result);
|
288 |
} else {
|
289 |
+
fwrite($fh, '<div class="error210">1</div>');
|
290 |
recursive_delete($restoration_dir_path);
|
291 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
292 |
fclose($fh);
|
293 |
die();
|
294 |
}
|
295 |
+
|
296 |
//get user email
|
297 |
$q5 = "SELECT user_email FROM ". $table_prefix ."users WHERE ID=" .$user_id ."";
|
298 |
if ($result = mysqli_query($dbc, $q5)) {
|
301 |
}
|
302 |
mysqli_free_result($result);
|
303 |
} else {
|
304 |
+
fwrite($fh, '<div class="error211">1</div>');
|
305 |
recursive_delete($restoration_dir_path);
|
306 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
307 |
fclose($fh);
|
308 |
die();
|
309 |
}
|
310 |
+
|
311 |
//Collect previous backup site url start
|
312 |
$import_siteinfo_lines = file($restoration_dir_path .'backupsiteinfo.txt');
|
313 |
$import_siteurl = trim($import_siteinfo_lines[0]);
|
314 |
$current_siteurl = trim($siteurl ,'/');
|
315 |
$import_table_prefix = $import_siteinfo_lines[1];
|
316 |
+
|
317 |
//import the database
|
|
|
318 |
if(!db_import($restoration_dir_path, $import_siteurl, $current_siteurl, $table_prefix, $import_table_prefix, $dbc)) {
|
319 |
+
fwrite($fh, '<div class="error212">1</div>');
|
320 |
recursive_delete($restoration_dir_path);
|
321 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
322 |
fclose($fh);
|
323 |
die();
|
324 |
}
|
325 |
+
|
326 |
//update the database
|
327 |
$q6 = "UPDATE ". $table_prefix ."options SET option_value='" .$current_siteurl ."' WHERE option_name='siteurl'";
|
328 |
$q7 = "UPDATE ". $table_prefix ."options SET option_value='" .$homeurl ."' WHERE option_name='home'";
|
329 |
$q8 = "UPDATE ". $table_prefix ."users SET user_login='" .$user_login ."', user_pass='" .$user_pass ."', user_email='" .$user_email ."' WHERE ID='" .$user_id ."'";
|
330 |
if(!mysqli_query($dbc, $q6) ) {
|
331 |
+
fwrite($fh, '<div class="error213">1</div>');
|
332 |
recursive_delete($restoration_dir_path);
|
333 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
334 |
fclose($fh);
|
335 |
die();
|
336 |
}
|
337 |
if(!mysqli_query($dbc, $q7) ) {
|
338 |
+
fwrite($fh, '<div class="error214">1</div>');
|
339 |
recursive_delete($restoration_dir_path);
|
340 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
341 |
fclose($fh);
|
342 |
die();
|
343 |
}
|
344 |
if(!mysqli_query($dbc, $q8) ) {
|
345 |
+
fwrite($fh, '<div class="error215">1</div>');
|
346 |
recursive_delete($restoration_dir_path);
|
347 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
348 |
fclose($fh);
|
349 |
die();
|
350 |
}
|
351 |
+
fwrite($fh, '<div class="database">1</div>');
|
352 |
} else {
|
353 |
+
fwrite($fh, '<div class="error216">1</div>');
|
354 |
}
|
355 |
|
356 |
//Disconnect
|
357 |
mysqli_close($dbc);
|
358 |
+
|
359 |
//Restore wp-content directories
|
|
|
360 |
if(!recursive_delete(WP_CONTENT_PATH, array( 'cgi-bin','.','..','._', WPBACKITUP_DIRNAME ))) {
|
361 |
+
fwrite($fh, '<div class="error217">1</div>');
|
362 |
recursive_delete($restoration_dir_path);
|
363 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
364 |
fclose($fh);
|
365 |
die();
|
366 |
}
|
367 |
if(!create_dir(WP_CONTENT_PATH)) {
|
368 |
+
fwrite($fh, '<div class="error218">1</div>');
|
369 |
recursive_delete($restoration_dir_path);
|
370 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
371 |
fclose($fh);
|
372 |
die();
|
373 |
}
|
374 |
if(recursive_copy($restoration_dir_path, WP_CONTENT_PATH .'/', array( 'cgi-bin', '.', '..','._', $restore_file_name, 'status.log', 'db-backup.sql', 'backupsiteinfo.txt')) ) {
|
375 |
+
fwrite($fh, '<div class="wpcontent">1</div>');
|
376 |
} else {
|
377 |
+
fwrite($fh, '<div class="error219">1</div>');
|
378 |
recursive_delete($restoration_dir_path);
|
379 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
380 |
fclose($fh);
|
381 |
die();
|
382 |
}
|
383 |
|
|
|
|
|
384 |
//Delete the restoration directory
|
385 |
+
if(!recursive_delete($restoration_dir_path)) {
|
386 |
+
fwrite($fh, '<div class="error220">1</div>');
|
387 |
+
fclose($fh);
|
388 |
+
} else {
|
389 |
+
fwrite($fh, '<div class="cleanup">1</div>');
|
390 |
+
}
|
391 |
|
392 |
//Delete zip
|
393 |
unlink(WPBACKITUP_DIR_PATH .'/backups/' . $restore_file_name);
|
394 |
|
395 |
//close log file
|
396 |
+
fwrite($fh, '<div class="finalinfo">1</div>');
|
|
|
397 |
fclose($fh);
|
398 |
|
399 |
//End backup function
|
lib/includes/restore_from_path.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @package WP Backitup
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
-
* @version 1.
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
6 |
* @package WP Backitup
|
7 |
*
|
8 |
* @author jcpeden
|
9 |
+
* @version 1.4.0
|
10 |
* @since 1.0.1
|
11 |
*/
|
12 |
|
logs/status.log
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<
|
1 |
+
<div class="upload">1</div><div class="unzipping">1</div><div class="validation">1</div><div class="restore_point">1</div><div class="database">1</div><div class="wpcontent">1</div><div class="cleanup">1</div><div class="finalinfo">1</div>
|
readme.txt
CHANGED
@@ -1,31 +1,55 @@
|
|
1 |
-
===
|
2 |
Contributors: jcpeden
|
3 |
Donate link: http://www.wpbackitup.com
|
4 |
-
Tags:
|
5 |
Requires at least: 3.4.2
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
=
|
16 |
-
|
17 |
-
right from your Wordpress dashboard. There is no need to FTP into your site and no knowledge of MySQL or PHPMyAdmin is required.
|
18 |
|
19 |
-
|
|
|
20 |
|
21 |
-
=
|
22 |
-
|
23 |
|
24 |
-
=
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
-
=
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
== Installation ==
|
31 |
|
@@ -33,31 +57,31 @@ Installation of the plugin is straightforward:
|
|
33 |
|
34 |
1. Upload the plugin to your plugins directory via FTP or through the Wordpress dashboard.
|
35 |
1. Activate the plugin.
|
36 |
-
1. A new menu called '
|
37 |
-
1. Click '
|
38 |
|
39 |
== Frequently Asked Questions ==
|
40 |
|
41 |
= Can I manually restore my backup zips? =
|
42 |
-
Sure! The backup zips generated by
|
43 |
|
44 |
= Is there an easier way to restore my backup zips? =
|
45 |
-
Yes, purchase and download <a href="http://www.wpbackitup.com/wp-backitup-pro/" title="
|
46 |
|
47 |
= Will the plugin work on shared hosting/sub domains/webhost xxx? =
|
48 |
Yes.
|
49 |
|
50 |
-
= Will
|
51 |
Yes.
|
52 |
|
53 |
= Are you going to be makinggress bars both for backing up and restoring with this plugin? =
|
54 |
-
It is likely this will feature in a new version of
|
55 |
|
56 |
= Can this plugin back to Amazon S3? =
|
57 |
-
This will feature in an upcoming version of
|
58 |
|
59 |
= Is there an auto back up schedule feature? =
|
60 |
-
It is likely this will feature in a new version of
|
61 |
|
62 |
= Will the plugin work with Wordpres version x.x? =
|
63 |
The plugin works on the latest release of WordPress and is updated to function with all new releases.
|
@@ -65,22 +89,22 @@ The plugin works on the latest release of WordPress and is updated to function w
|
|
65 |
= Can this backup one version of WordPress to a different version? =
|
66 |
No. It is absolutely critical that your WordPress versions are exactly the same.
|
67 |
|
68 |
-
= Will
|
69 |
-
|
70 |
|
71 |
= Does the plugin copy the database details as well? =
|
72 |
Yes, a database dump is created with each backup.
|
73 |
|
74 |
= Can I make a basic WordPress site, with all my desired plugins and settings, make a few pages, setup permalinks, remove all the default junk and load in a basic themplate? =
|
75 |
-
Yes.
|
76 |
|
77 |
-
= Does
|
78 |
-
Yes. You must install the
|
79 |
|
80 |
-
= Does
|
81 |
-
|
82 |
|
83 |
-
= Do you have any ideas about how large a blog is too big for
|
84 |
I`ve tested up to 5 themes, 20 plugins and 100 posts/pages without any issues.
|
85 |
|
86 |
= Do you do regularly update thisduct to match with WP version updates? =
|
@@ -93,8 +117,11 @@ Yes.
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
96 |
= 1.3.0 =
|
97 |
-
Recommended upgrade: Amalgameted lite and pro versions of the plugin
|
98 |
|
99 |
= 1.2.2 =
|
100 |
Major updates to improve plugin performance and stability.
|
@@ -103,7 +130,7 @@ Major updates to improve plugin performance and stability.
|
|
103 |
Minor updates to plugin functionality.
|
104 |
|
105 |
= 1.2.0 =
|
106 |
-
Brought versioning inline with
|
107 |
|
108 |
= 1.1.0 =
|
109 |
Backup from mysqldump, restore from mysql command line, restore functionality from uploaded files, file size limit check according to server before uploads, setInterval termination after operation, status update as the task completes using XML.
|
@@ -133,13 +160,16 @@ Fixed the auto-update engine and license key activation system.
|
|
133 |
Minor bugs patched for auto-update engine.
|
134 |
|
135 |
= 1.0.1 =
|
136 |
-
|
137 |
|
138 |
= 1.0.0 =
|
139 |
Initial version of the plugin released.
|
140 |
|
141 |
== Upgrade Notice ==
|
142 |
|
|
|
|
|
|
|
143 |
= 1.3.0 =
|
144 |
Recommended upgrade: Amalgameted lite and pro versions of the plugin
|
145 |
|
1 |
+
=== WordPress Backitup ===
|
2 |
Contributors: jcpeden
|
3 |
Donate link: http://www.wpbackitup.com
|
4 |
+
Tags: wordpress backup plugin, backup wordpress, wordpress database backup
|
5 |
Requires at least: 3.4.2
|
6 |
+
Tested up to: 3.6.0
|
7 |
+
Stable tag: 1.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
A Wordpress backup plugin that allows you to backup a Wordpress site (including your Wordpress database) in just one click.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
= Want to backup Wordpress? =
|
16 |
+
Wordpress Backitup allows you to backup Wordpress (your entire Wordpress site and database) in just a single click. Wordpress Backitup creates a backup zip of your site's content and database and allows you to backup your Wordpress site right from the administration dashboard. You no longer need knowledge of FTP, MySQL or PHPMyAdmin.
|
|
|
17 |
|
18 |
+
= How easy is it to backup a Wordpress site? =
|
19 |
+
It should be easy to backup a Wordpress site, particularly your database but unfortunately unless you are familiar with the FTP, MySQL and/or PHPMyAdmin backing up your Wordpress site and its database can be quite a headache. As a result of it being difficult to backup Wordpress, many site owners just don't bother only to wish they had when their site is hacked or data is lost for some reason. Wordpress Backitup makes it easy to backup your site, just take a look at the video below.
|
20 |
|
21 |
+
= Wordpress Backitup makes it easy to backup your Wordpress site and database =
|
22 |
+
[youtube http://www.youtube.com/watch?v=o3RCzwLARSM]
|
23 |
|
24 |
+
= What does Wordpress Backitup actually backup? =
|
25 |
+
Wordpress Backitup creates a single, zipped backup of your entire site (minus Wordpress itself). This includes:
|
26 |
+
* The Wordpress database
|
27 |
+
* Wordpress plugins
|
28 |
+
* Wordpress uploads
|
29 |
+
* Wordpress themes
|
30 |
+
* Anything else in your wp-content directory
|
31 |
|
32 |
+
= How does Wordpress Backitup create a backup zip =
|
33 |
+
Creating a backup of your Wordpress site is easy, straightforward and for most sites very fast. Once Wordpress Backitup has been installed and activated, simply navigate to the Wordpress Backitup administration tab. From there, click the backup button and a number of things will happen in the background:
|
34 |
+
|
35 |
+
1. Any existing backup zips created using Wordpress Backitup will be purged
|
36 |
+
1. The contents of your entire wp-content directory will be copied to the backup directory
|
37 |
+
1. A dump of your entire database will be copied to the backup directory
|
38 |
+
1. The backup directory will be zipped
|
39 |
+
1. A download link will be created and shown to you in the Wordpress Backitup administration window.
|
40 |
+
|
41 |
+
= How can I restore a Wordpress backup created with Wordpress Backitup? =
|
42 |
+
Need to restore a Wordpress site? Wordpress Backitup is definitely a great asset if you find yourself in this position. Assuming you've created a backup using Wordpress Backitup, you have two choices:
|
43 |
+
|
44 |
+
1. Restore manually
|
45 |
+
1. <a href="http://www.wpbackitup.com/plugins/wp-backitup-pro/" title="Buy a Wordpress Backitup Pro license">Buy a Wordpress Backitup Pro license</a> and use the built-in restore feature.
|
46 |
+
|
47 |
+
= How to manually restore a Wordpress backup created with Wordpress Backitup =
|
48 |
+
1. Unzip the backup file
|
49 |
+
1. Using FTP, delete the contents of your target wp-content directory
|
50 |
+
1. Using FTP, upload the contents of your backup zip to the target site's wp-content directory
|
51 |
+
1. Using MySQL/PHPMyAdmin, empty your target site's database
|
52 |
+
1. Using MySQL/PHPMyAdmin, import the database dump from your backup zip into your target site.
|
53 |
|
54 |
== Installation ==
|
55 |
|
57 |
|
58 |
1. Upload the plugin to your plugins directory via FTP or through the Wordpress dashboard.
|
59 |
1. Activate the plugin.
|
60 |
+
1. A new menu called 'Wordpress Backitup' will be added to your toolbar.
|
61 |
+
1. Click 'Wordpress Backitup' to access the backup/restore interface.
|
62 |
|
63 |
== Frequently Asked Questions ==
|
64 |
|
65 |
= Can I manually restore my backup zips? =
|
66 |
+
Sure! The backup zips generated by Wordpress Backitup contain a database dump and a copy of your wp-content directory. Simply upload your files and import your database.
|
67 |
|
68 |
= Is there an easier way to restore my backup zips? =
|
69 |
+
Yes, purchase and download <a href="http://www.wpbackitup.com/wp-backitup-pro/" title="Wordpress Backitup">Wordpress Backitup</a>. Once installed, you'll be able to restore you backup zips without FTP or MySQL.
|
70 |
|
71 |
= Will the plugin work on shared hosting/sub domains/webhost xxx? =
|
72 |
Yes.
|
73 |
|
74 |
+
= Will Wordpress Backitup work on Windows hosting? =
|
75 |
Yes.
|
76 |
|
77 |
= Are you going to be makinggress bars both for backing up and restoring with this plugin? =
|
78 |
+
It is likely this will feature in a new version of Wordpress Backitup.
|
79 |
|
80 |
= Can this plugin back to Amazon S3? =
|
81 |
+
This will feature in an upcoming version of Wordpress Backitup.
|
82 |
|
83 |
= Is there an auto back up schedule feature? =
|
84 |
+
It is likely this will feature in a new version of Wordpress Backitup.
|
85 |
|
86 |
= Will the plugin work with Wordpres version x.x? =
|
87 |
The plugin works on the latest release of WordPress and is updated to function with all new releases.
|
89 |
= Can this backup one version of WordPress to a different version? =
|
90 |
No. It is absolutely critical that your WordPress versions are exactly the same.
|
91 |
|
92 |
+
= Will Wordpress Backitup work on WordPress Multisite? =
|
93 |
+
Wordpress Backitup cannot yet backup/restore entire networks but it is compatible with WPMS sites.
|
94 |
|
95 |
= Does the plugin copy the database details as well? =
|
96 |
Yes, a database dump is created with each backup.
|
97 |
|
98 |
= Can I make a basic WordPress site, with all my desired plugins and settings, make a few pages, setup permalinks, remove all the default junk and load in a basic themplate? =
|
99 |
+
Yes. Wordpress Backitup can be used to create a good starting point for any and all sites you work on.
|
100 |
|
101 |
+
= Does Wordpress Backitup need to be installed? =
|
102 |
+
Yes. You must install the Wordpress Backitup plugin on the site you wish to backup and the site you wish to restore to. Its just a simple plugin.
|
103 |
|
104 |
+
= Does Wordpress Backitup backup plugins settings or just the plugins themselves? =
|
105 |
+
Wordpress Backitup creates a database dump and a backup of all your themes, plugins and uploads.
|
106 |
|
107 |
+
= Do you have any ideas about how large a blog is too big for Wordpress Backitup to handle? =
|
108 |
I`ve tested up to 5 themes, 20 plugins and 100 posts/pages without any issues.
|
109 |
|
110 |
= Do you do regularly update thisduct to match with WP version updates? =
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= 1.4.0 =
|
121 |
+
Fixed status reporting for backup/restore process and built-in localization.
|
122 |
+
|
123 |
= 1.3.0 =
|
124 |
+
Recommended upgrade: Amalgameted lite and pro versions of the plugin.
|
125 |
|
126 |
= 1.2.2 =
|
127 |
Major updates to improve plugin performance and stability.
|
130 |
Minor updates to plugin functionality.
|
131 |
|
132 |
= 1.2.0 =
|
133 |
+
Brought versioning inline with Wordpress Backitup Lite. Fixed incorrecy message on restore interface. Fixed restorationcess.
|
134 |
|
135 |
= 1.1.0 =
|
136 |
Backup from mysqldump, restore from mysql command line, restore functionality from uploaded files, file size limit check according to server before uploads, setInterval termination after operation, status update as the task completes using XML.
|
160 |
Minor bugs patched for auto-update engine.
|
161 |
|
162 |
= 1.0.1 =
|
163 |
+
Wordpress Backitup integrated with licensing and auto-update engine.
|
164 |
|
165 |
= 1.0.0 =
|
166 |
Initial version of the plugin released.
|
167 |
|
168 |
== Upgrade Notice ==
|
169 |
|
170 |
+
= 1.4.0 =
|
171 |
+
Recommended upgrade: Fixed status reporting for backup/restore process and built-in localization.
|
172 |
+
|
173 |
= 1.3.0 =
|
174 |
Recommended upgrade: Amalgameted lite and pro versions of the plugin
|
175 |
|
views/options.php
CHANGED
@@ -1,9 +1,10 @@
|
|
|
|
1 |
<div class="wrap">
|
2 |
<div id="wp-backitup-icon" class="icon32"><img src="<?php echo plugin_dir_url(dirname(__FILE__) ); ?>images/icon32.png" alt="WP Backitup Icon" height="32" width="32" /></div>
|
3 |
<h2><?php echo $page_title; ?></h2>
|
4 |
<div id="content">
|
5 |
<h3><?php _e('Backup', $namespace );?></h3>
|
6 |
-
<p><?php _e('Create a backup file of this site\'s content and settings
|
7 |
<p><a href="#" class="backup-button button-primary"><?php _e( "Backup", $namespace ) ?></a><img class="backup-icon status-icon" src="<?php echo WPBACKITUP_URLPATH. "/images/loader.gif"; ?>" height="16" width="16" /></p>
|
8 |
<h3><?php _e('Download', $namespace );?></h3>
|
9 |
<p id="download-link"></p>
|
@@ -13,7 +14,7 @@
|
|
13 |
if( $status !== false && $status == 'valid' ) { ?>
|
14 |
<h3><?php _e('Restore', $namespace );?></h3>
|
15 |
<iframe id="upload_target" name="upload_target" src=""></iframe>
|
16 |
-
<p><?php _e('Restore a WP Backitup zip file and overwrite this site\'s content, themes, plugins, uploads and settings
|
17 |
<?php $max_upload = (int)(ini_get('upload_max_filesize'));
|
18 |
$max_post = (int)(ini_get('post_max_size'));
|
19 |
$memory_limit = (int)(ini_get('memory_limit'));
|
@@ -32,9 +33,72 @@
|
|
32 |
<!--End of restoration form-->
|
33 |
|
34 |
<h3><?php _e('Status', $namespace );?></h3>
|
35 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
<?php if (site_url() == 'http://localhost/wpbackitup') {
|
37 |
-
echo '<p><div id="php">PHP messages here</div
|
38 |
} ?>
|
39 |
</div>
|
40 |
<div id="sidebar">
|
@@ -45,11 +109,11 @@
|
|
45 |
<?php $license = $this->get_option( 'license_key' );
|
46 |
$status = $this->get_option( 'status' );
|
47 |
if( $status !== false && $status == 'valid' ) { ?>
|
48 |
-
<p><?php _e('Pro features and auto-updates enabled
|
49 |
<?php } else { ?>
|
50 |
-
<p><?php _e('Activate auto-restore and auto-updates by entering your license key
|
51 |
<?php } ?>
|
52 |
-
<p><input type="text" name="data[license_key]" id="license_key" value="<?php
|
53 |
<?php if( false !== $license ) {
|
54 |
if( $status !== false && $status == 'valid' ) { ?>
|
55 |
<span style="color:green;"><?php _e('Active', $namespace); ?></span></p>
|
@@ -59,8 +123,9 @@
|
|
59 |
<p class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e( "Activate", $namespace ) ?>" /></p>
|
60 |
<p><a href="http://www.wpbackitup.com/wp-backitup-pro"><?php _e('Purchase a license key', $namespace); ?></a></p>
|
61 |
<?php }
|
62 |
-
} ?>
|
63 |
-
</div>
|
|
|
64 |
<div class="widget">
|
65 |
<?php if( $status !== false && $status == 'valid' ) {
|
66 |
$support_anchor = __('WP Backitup support system',$namespace);
|
@@ -71,12 +136,13 @@
|
|
71 |
} ?>
|
72 |
<h3 class="promo"><?php _e('Need Help?', $namespace ); ?></h3>
|
73 |
<p><?php _e('Access the',$namespace); ?> <a href="<?php echo $support_url; ?>"><?php echo $support_anchor; ?></a>.</p>
|
74 |
-
|
75 |
-
|
76 |
<div class="widget">
|
77 |
<h3 class="promo"><?php _e('Spread the Word', $namespace ); ?></h3>
|
78 |
<p><a href="http://wordpress.org/extend/plugins/wp-backitup/"><?php _e('Rate WP Backitup', $namespace ); ?> 5★</a></p>
|
79 |
</div>
|
|
|
80 |
<div class="widget">
|
81 |
<h3 class="promo">Presstrends</h3>
|
82 |
<p><input type="radio" name="data[presstrends]" value="enabled" <?php if($this->get_option( 'presstrends' ) == 'enabled') echo 'checked'; ?>> <label><?php _e('Enable', $namespace ); ?></label></p>
|
@@ -86,4 +152,4 @@
|
|
86 |
</div>
|
87 |
</form>
|
88 |
</div>
|
89 |
-
</div>
|
1 |
+
<script type="text/javascript">var __namespace = '<?php echo $namespace; ?>';</script>
|
2 |
<div class="wrap">
|
3 |
<div id="wp-backitup-icon" class="icon32"><img src="<?php echo plugin_dir_url(dirname(__FILE__) ); ?>images/icon32.png" alt="WP Backitup Icon" height="32" width="32" /></div>
|
4 |
<h2><?php echo $page_title; ?></h2>
|
5 |
<div id="content">
|
6 |
<h3><?php _e('Backup', $namespace );?></h3>
|
7 |
+
<p><?php _e('Create a backup file of this site\'s content and settings', $namespace ) ;?></p>
|
8 |
<p><a href="#" class="backup-button button-primary"><?php _e( "Backup", $namespace ) ?></a><img class="backup-icon status-icon" src="<?php echo WPBACKITUP_URLPATH. "/images/loader.gif"; ?>" height="16" width="16" /></p>
|
9 |
<h3><?php _e('Download', $namespace );?></h3>
|
10 |
<p id="download-link"></p>
|
14 |
if( $status !== false && $status == 'valid' ) { ?>
|
15 |
<h3><?php _e('Restore', $namespace );?></h3>
|
16 |
<iframe id="upload_target" name="upload_target" src=""></iframe>
|
17 |
+
<p><?php _e('Restore a WP Backitup zip file and overwrite this site\'s content, themes, plugins, uploads and settings', $namespace );?></p>
|
18 |
<?php $max_upload = (int)(ini_get('upload_max_filesize'));
|
19 |
$max_post = (int)(ini_get('post_max_size'));
|
20 |
$memory_limit = (int)(ini_get('memory_limit'));
|
33 |
<!--End of restoration form-->
|
34 |
|
35 |
<h3><?php _e('Status', $namespace );?></h3>
|
36 |
+
<div id="status">
|
37 |
+
|
38 |
+
<!--default status message-->
|
39 |
+
<ul class="default-status">
|
40 |
+
<li><?php _e('Nothing to report', $namespace );?></li>
|
41 |
+
</ul>
|
42 |
+
|
43 |
+
<!--backup status messages-->
|
44 |
+
<ul class="backup-status">
|
45 |
+
<li class='prerequisites'><?php _e('Preparing to backup', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
46 |
+
<li class='backupfiles'><?php _e('Backing-up /wp-content/', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
47 |
+
<li class='backupdb'><?php _e('Backing-up database', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
48 |
+
<li class='infofile'><?php _e('Creating backup directory', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
49 |
+
<li class='zipfile'><?php _e('Zipping backup directory', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
50 |
+
<li class='cleanup'><?php _e('Cleaning up', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
51 |
+
<li class='finalinfo'><span class='status'><?php _e('Backup file created successfully. You can download your backup file using the link above', $namespace ); ?></span></li>
|
52 |
+
</ul>
|
53 |
+
|
54 |
+
<!--backup error messages-->
|
55 |
+
<ul class="backup-errors">
|
56 |
+
<li class="error101"><span class='status error'><?php _e('Error: Unable to create new directory for backup. Please check your CHMOD settings of your wp-backitup plugin directory' , $namespace ); ?>.</span></li>
|
57 |
+
<li class="error102"><span class='status error'><?php _e('Error: Cannot create backup directory. Please check the CHMOD settings of your wp-backitup plugin directory', $namespace ); ?>.</span></li>
|
58 |
+
<li class="error103"><span class='status error'><?php _e('Error: Unable to backup your files. Please try again', $namespace ); ?>.</span></li>
|
59 |
+
<li class="error104"><span class='status error'><?php _e('Error: Unable to backup your database. Please try again', $namespace ); ?>.</span></li>
|
60 |
+
<li class="error105"><span class='status error'><?php _e('Error: Unable to create site information file. Please try again', $namespace ); ?>.</span></li>
|
61 |
+
<li class="error106"><span class='status error'><?php _e('Warning: Unable to cleanup your backup directory', $namespace ); ?>.</span></li>
|
62 |
+
</ul>
|
63 |
+
|
64 |
+
<!--restore status messages-->
|
65 |
+
<ul class="restore-status">
|
66 |
+
<li class="upload"><?php _e('Uploading restoration zip', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
67 |
+
<li class="unzipping"><?php _e('Unzipping', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
68 |
+
<li class="validation"><?php _e('Validating restoration zip', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
69 |
+
<li class="restore_point"><?php _e('Setting checkpoint', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
70 |
+
<li class="database"><?php _e('Importing database', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
71 |
+
<li class="wpcontent"><?php _e('Importing /wp-content/ directory', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
72 |
+
<li class="cleanup"><?php _e('Cleaning up', $namespace );?>...<span class='status'><?php _e('Done', $namespace );?></span><span class='fail error'><?php _e('Failed', $namespace );?></span></li>
|
73 |
+
<li class='finalinfo'><span class='status'><?php _e('Restoration completed successfully. Please refresh the page and login to the site again (with your current username and password)', $namespace ); ?></span></li>
|
74 |
+
</ul>
|
75 |
+
|
76 |
+
<!--restore error messages-->
|
77 |
+
<ul class="restore-errors">
|
78 |
+
<li class="error201"><span class='status error'><?php _e('Error: No file selected', $namespace ); ?>.</span></li>
|
79 |
+
<li class="error202"><span class='status error'><?php _e('Error: Your file could not be uploaded', $namespace ); ?>.</span></li>
|
80 |
+
<li class="error203"><span class='status error'><?php _e('Error: Your restoration file could not be unzipped', $namespace ); ?>.</span></li>
|
81 |
+
<li class="error204"><span class='status error'><?php _e('Error: Your zip file appears to be invalid. Please ensure you chose the correct zip file', $namespace ); ?>.</span></li>
|
82 |
+
<li class="error205"><span class='status error'><?php _e('Error: Cannot create restore point', $namespace ); ?>.</span></li>
|
83 |
+
<li class="error206"><span class='status error'><?php _e('Error: Unable to connect to your database', $namespace ); ?>.</span></li>
|
84 |
+
<li class="error207"><span class='status error'><?php _e('Error: Unable to get current site URL from database. Please try again', $namespace ); ?>.</span></li>
|
85 |
+
<li class="error208"><span class='status error'><?php _e('Error: Unable to get current home URL from database. Please try again', $namespace ); ?>.</span></li>
|
86 |
+
<li class="error209"><span class='status error'><?php _e('Error: Unable to get current user ID from database. Please try again', $namespace ); ?>.</span></li>
|
87 |
+
<li class="error210"><span class='status error'><?php _e('Error: Unable to get current user password from database. Please try again', $namespace ); ?>.</span></li>
|
88 |
+
<li class="error211"><span class='status error'><?php _e('Error: Unable to get current user email from database. Please try again', $namespace ); ?>.</span></li>
|
89 |
+
<li class="error212"><span class='status error'><?php _e('Error: Unable to get import your database. This may require importing the file manually', $namespace ); ?>.</span></li>
|
90 |
+
<li class="error213"><span class='status error'><?php _e('Error: Unable to update your current site URL value. This may require importing the file manually', $namespace ); ?>.</span></li>
|
91 |
+
<li class="error214"><span class='status error'><?php _e('Error: Unable to update your current home URL value. This may require importing the file manually', $namespace ); ?>.</span></li>
|
92 |
+
<li class="error215"><span class='status error'><?php _e('Error: Unable to update your user information. This may require importing the file manually', $namespace ); ?>.</span></li>
|
93 |
+
<li class="error216"><span class='status error'><?php _e('Error: Warning: Database not detected in import file', $namespace ); ?>.</span></li>
|
94 |
+
<li class="error217"><span class='status error'><?php _e('Error: Unable to remove existing wp-content directory for import. Please check your CHMOD settings in /wp-content/', $namespace ); ?>.</span></li>
|
95 |
+
<li class="error218"><span class='status error'><?php _e('Error: Unable to create new wp-content directory for import. Please check your CHMOD settings in /wp-content/', $namespace ); ?>.</span></li>
|
96 |
+
<li class="error219"><span class='status error'><?php _e('Error: Unable to import wp-content. Please try again', $namespace ); ?>.</span></li>
|
97 |
+
<li class="error220"><span class='status error'><?php _e('Warning: Unable to cleanup import directory', $namespace ); ?>.</span></li>
|
98 |
+
</ul>
|
99 |
+
</div>
|
100 |
<?php if (site_url() == 'http://localhost/wpbackitup') {
|
101 |
+
echo '<p><div id="php">PHP messages here</p></div>';
|
102 |
} ?>
|
103 |
</div>
|
104 |
<div id="sidebar">
|
109 |
<?php $license = $this->get_option( 'license_key' );
|
110 |
$status = $this->get_option( 'status' );
|
111 |
if( $status !== false && $status == 'valid' ) { ?>
|
112 |
+
<p><?php _e('Pro features and auto-updates enabled', $namespace ); ?></p>
|
113 |
<?php } else { ?>
|
114 |
+
<p><?php _e('Activate auto-restore and auto-updates by entering your license key', $namespace ); ?></p>
|
115 |
<?php } ?>
|
116 |
+
<p><input type="text" name="data[license_key]" id="license_key" value="<?php echo $license; ?>" />
|
117 |
<?php if( false !== $license ) {
|
118 |
if( $status !== false && $status == 'valid' ) { ?>
|
119 |
<span style="color:green;"><?php _e('Active', $namespace); ?></span></p>
|
123 |
<p class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e( "Activate", $namespace ) ?>" /></p>
|
124 |
<p><a href="http://www.wpbackitup.com/wp-backitup-pro"><?php _e('Purchase a license key', $namespace); ?></a></p>
|
125 |
<?php }
|
126 |
+
} ?>
|
127 |
+
</div>
|
128 |
+
|
129 |
<div class="widget">
|
130 |
<?php if( $status !== false && $status == 'valid' ) {
|
131 |
$support_anchor = __('WP Backitup support system',$namespace);
|
136 |
} ?>
|
137 |
<h3 class="promo"><?php _e('Need Help?', $namespace ); ?></h3>
|
138 |
<p><?php _e('Access the',$namespace); ?> <a href="<?php echo $support_url; ?>"><?php echo $support_anchor; ?></a>.</p>
|
139 |
+
</div>
|
140 |
+
|
141 |
<div class="widget">
|
142 |
<h3 class="promo"><?php _e('Spread the Word', $namespace ); ?></h3>
|
143 |
<p><a href="http://wordpress.org/extend/plugins/wp-backitup/"><?php _e('Rate WP Backitup', $namespace ); ?> 5★</a></p>
|
144 |
</div>
|
145 |
+
|
146 |
<div class="widget">
|
147 |
<h3 class="promo">Presstrends</h3>
|
148 |
<p><input type="radio" name="data[presstrends]" value="enabled" <?php if($this->get_option( 'presstrends' ) == 'enabled') echo 'checked'; ?>> <label><?php _e('Enable', $namespace ); ?></label></p>
|
152 |
</div>
|
153 |
</form>
|
154 |
</div>
|
155 |
+
</div>
|