Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.1.2

Version Description

Download this release

Release Info

Developer jcpeden
Plugin Icon 128x128 Backup and Restore WordPress – WPBackItUp Backup Plugin
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.2

backups/status.log CHANGED
@@ -1 +1 @@
1
- <ul><li>Creating backup directory...Done!</li><li>Backing up your files...Done!</li><li>Backing up your database...Done!</li><li>Creating backup zip...Done!</li><li>Backup file created successfully. You can download your backup file using the link above.</li></ul>
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-style.css ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* WP Backitup CSS */
2
+
3
+ .error { color: #ff0000;}
4
+
5
+ p {
6
+ line-height: 1.4em;
7
+ }
8
+
9
+ #content {
10
+ float: left;
11
+ width: 65%;
12
+ }
13
+
14
+ #sidebar {
15
+ float: right;
16
+ width: 30%;
17
+ }
18
+
19
+ .widget {
20
+ padding: 1em;
21
+ }
22
+
23
+ input {padding: 0;}
24
+
25
+ h3 {
26
+ margin: 0;
27
+ padding: 1em 0 0 0;
28
+ }
29
+
30
+ ul {padding: 1em 0 0 0;}
31
+
32
+ iframe {
33
+ height: 0;
34
+ margin: 0;
35
+ padding: 0;
36
+ position: absolute;
37
+ top: 0;
38
+ right: 0;
39
+ width: 0;
40
+ }
41
+
42
+ .wp-backitup-section {
43
+ border-bottom: 1px solid #ddd;
44
+ clear:both;
45
+ }
46
+
47
+ #backup-button, #restore-form {
48
+ float: left;
49
+ margin: 0 5px 5px 0;
50
+ }
51
+
52
+ .status-icon {
53
+ display: inline;
54
+ height: 16px;
55
+ visibility: hidden;
56
+ width: 16px;
57
+ }
58
+
59
+ .status-icon img {margin-top: 3px;}
60
+
61
+ #restore_form {margin-right: 5px;}
62
+
63
+ #restore-button {margin-top: 22px;}
includes/admin_page.php CHANGED
@@ -1 +1 @@
1
- <?php
1
+ <?php
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WP Backitup ===
2
  Contributors: jcpeden
3
  Donate link: http://www.wpbackitup.com
4
  Tags: backup wordpress, database backup, backup database, download database, backup and restore, restoring wordpress, restore wordpress, restore wordpress backup,
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -13,12 +13,13 @@ Create a backup zip of your content and settings with a single click that can be
13
  == Description ==
14
 
15
  = The Simple Way to Backup Your Site =
16
- WP Backitup creates a backup zip of your site&apos;s content and configuration in just a single click, right from your Wordpress dashboard. There is no need to FTP into your site and no knowledge of MySQL or PHPMyAdmin is required.
 
17
 
18
  You can use your backup zip to restore your site or to clone a site&apos;s content and settings when setting up a new one.
19
 
20
  = Automatically Restore Your Backup Zips =
21
- The optional <a href="http://www.wpbackitup.com/addons/" title="WP Backitup Restoration Addon">WP Backitup Restoration Addon</a> can be purchased from the plugin site and allows you to import your backup zips in seconds, right from the Wordpress Dashboard (<a href="http://wordpress.org/extend/plugins/wp-backitup/screenshots/" title="WP Backitup Screenshots">screenshots</a>).
22
 
23
  = Manually Restore Your Backup Zips =
24
  WP Backitup generates a zip file containing a copy of your wp-content directory and a database dump. You can unzip it and <a href="http://codex.wordpress.org/Restoring_Your_Database_From_Backup">import your database</a> and files manually but this requires knowledge of FTP and MySQL.
@@ -27,7 +28,7 @@ WP Backitup generates a zip file containing a copy of your wp-content directory
27
  Simply install the plugin directly to Wordpress and browse to the new menu 'Backup/Restore'. From there, just follow the on-screen instructions and watch as WP Backitup creates a backup of you site's plugins, themes and uploads as well as you content and settings (including all custom widgets and settings for any additional plugins).
28
 
29
  = More questions? =
30
- Why not head over to the <a href="http://www.wpbackitup.com/" title="WP Backitup">WP Backitup site</a> or take a look at the <a href="http://wordpress.org/extend/plugins/wp-backitup/faq/" title="WP Backitup FAQ">FAQ page</a>?
31
 
32
  == Installation ==
33
 
@@ -44,22 +45,22 @@ Installation of the plugin is straightforward:
44
  Sure! The backup zips generated by WP Backitup contain a database dump and a copy of your wp-content directory. Simply upload your files and import your database.
45
 
46
  = Is there an easier way to restore my backup zips? =
47
- Yes, purchase and download the <a href="http://www.wpbackitup.com/addons/" title="WP Backitup Restoration Addon">WP Backitup Restoration Addon</a>. Once installed, you'll be able to restore you backup zips without FTP or MySQL.
48
 
49
  = Will the plugin work on shared hosting/sub domains/webhost xxx? =
50
- Yes
51
 
52
  = Will WP Backitup work on Windows hosting? =
53
- Yes
54
 
55
  = Are you going to be making progress bars both for backing up and restoring with this plugin? =
56
- Not at this time.
57
 
58
  = Can this plugin back to Amazon S3? =
59
- Not at this time.
60
 
61
  = Is there an auto back up schedule feature? =
62
- Not at this time.
63
 
64
  = Will the plugin work with Wordpres version x.x? =
65
  The plugin works on the latest release of WordPress and is updated to function with all new releases.
@@ -68,7 +69,7 @@ The plugin works on the latest release of WordPress and is updated to function w
68
  No. It is absolutely critical that your WordPress versions are exactly the same.
69
 
70
  = Will WP Backitup work on WordPress Multisite? =
71
- It is untested with Wordpress multisite and probably will not work.
72
 
73
  = Does the plugin copy the database details as well? =
74
  Yes, a database dump is created with each backup.
@@ -95,6 +96,9 @@ Yes.
95
 
96
  == Changelog ==
97
 
 
 
 
98
  = 1.0.9 =
99
  * Added Presstrends tracking code.
100
 
@@ -127,6 +131,9 @@ Yes.
127
 
128
  == Upgrade Notice ==
129
 
 
 
 
130
  = 1.0.9 =
131
  * Non-essential upgrade. Added Presstrends code.
132
 
1
+ === WP Backitup Lite ===
2
  Contributors: jcpeden
3
  Donate link: http://www.wpbackitup.com
4
  Tags: backup wordpress, database backup, backup database, download database, backup and restore, restoring wordpress, restore wordpress, restore wordpress backup,
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
+ Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
13
  == Description ==
14
 
15
  = The Simple Way to Backup Your Site =
16
+ WP Backitup Lite creates a backup zip of your site&apos;s content and configuration in just a single click,
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
  You can use your backup zip to restore your site or to clone a site&apos;s content and settings when setting up a new one.
20
 
21
  = Automatically Restore Your Backup Zips =
22
+ Tired of messing around in PHPMyAdmin and with FTP trying to restore you backups? Why not check out <a href="http://www.wpbackitup.com/wp-backitup-pro/" title="WP Backitup Pro">WP Backitup Pro</a>? WP Backitup Pro offers all the features of WP Backitup Lite but allows you to import your backup zips in seconds, right from the Wordpress Dashboard (<a href="http://wordpress.org/extend/plugins/wp-backitup/screenshots/" title="WP Backitup Screenshots">screenshots</a>).
23
 
24
  = Manually Restore Your Backup Zips =
25
  WP Backitup generates a zip file containing a copy of your wp-content directory and a database dump. You can unzip it and <a href="http://codex.wordpress.org/Restoring_Your_Database_From_Backup">import your database</a> and files manually but this requires knowledge of FTP and MySQL.
28
  Simply install the plugin directly to Wordpress and browse to the new menu 'Backup/Restore'. From there, just follow the on-screen instructions and watch as WP Backitup creates a backup of you site's plugins, themes and uploads as well as you content and settings (including all custom widgets and settings for any additional plugins).
29
 
30
  = More questions? =
31
+ Why not head over to the <a href="http://www.wpbackitup.com/" title="WP Backitup">WP Backitup site</a> or take a look at the <a href="http://www.wpbackitup.com/support/" title="WP Backitup Support Forum">WP Backitup Support Forum</a>, if you need more help?
32
 
33
  == Installation ==
34
 
45
  Sure! The backup zips generated by WP Backitup contain a database dump and a copy of your wp-content directory. Simply upload your files and import your database.
46
 
47
  = Is there an easier way to restore my backup zips? =
48
+ Yes, purchase and download <a href="http://www.wpbackitup.com/wp-backitup-pro/" title="WP Backitup Pro">WP Backitup Pro</a>. Once installed, you'll be able to restore you backup zips without FTP or MySQL.
49
 
50
  = Will the plugin work on shared hosting/sub domains/webhost xxx? =
51
+ Yes.
52
 
53
  = Will WP Backitup work on Windows hosting? =
54
+ Yes.
55
 
56
  = Are you going to be making progress bars both for backing up and restoring with this plugin? =
57
+ It is likely this will feature in a new version of WP Backitup Pro.
58
 
59
  = Can this plugin back to Amazon S3? =
60
+ This will feature in an upcoming version of WP Backitup Pro.
61
 
62
  = Is there an auto back up schedule feature? =
63
+ It is likely this will feature in a new version of WP Backitup Pro.
64
 
65
  = Will the plugin work with Wordpres version x.x? =
66
  The plugin works on the latest release of WordPress and is updated to function with all new releases.
69
  No. It is absolutely critical that your WordPress versions are exactly the same.
70
 
71
  = Will WP Backitup work on WordPress Multisite? =
72
+ WP Backitup cannot yet backup/restore entire networks but it is compatible with WPMS sites.
73
 
74
  = Does the plugin copy the database details as well? =
75
  Yes, a database dump is created with each backup.
96
 
97
  == Changelog ==
98
 
99
+ = 1.1.0 =
100
+ * Fixed bugs with addons system.
101
+
102
  = 1.0.9 =
103
  * Added Presstrends tracking code.
104
 
131
 
132
  == Upgrade Notice ==
133
 
134
+ = 1.1.0 =
135
+ * Non-critical upgrade. Fixed bugs with addons system that caused problems for some users.
136
+
137
  = 1.0.9 =
138
  * Non-essential upgrade. Added Presstrends code.
139
 
wp-backitup.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /**
3
- * Plugin Name: WP Backitup
4
  * Plugin URI: http://www.wpbackitup.com
5
  * Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
6
- * Version: 1.1.0
7
  * Author: John Peden
8
  * Author URI: http://www.johncpeden.com
9
  * License: GPLv2 or later
@@ -15,30 +15,27 @@
15
  */
16
 
17
  //define constants
18
- define("WPBACKITUP_PLUGIN_URL", WP_PLUGIN_URL ."/wp-backitup/");
19
- define("WPBACKITUP_PLUGIN_PATH", WP_PLUGIN_DIR."/wp-backitup/");
20
- define("WPBACKITUP_DIRNAME", "wp-backitup");
21
- define("BACKUP_PATH", WPBACKITUP_PLUGIN_PATH .'backups/');
22
- define("BACKUP_PATH", WPBACKITUP_PLUGIN_PATH .'backups/');
23
 
24
  //load admin menu
25
- function wpbackitup_admin_menus() {
26
- $wpbackituppage = add_menu_page( __( 'WP Backitup', 'wpBackitup' ), __( 'Backup', 'wpBackitup' ), 'manage_options', 'wp-backitup', 'wpbackitup_admin', plugin_dir_url(__FILE__ ) .'images/icon.png', 77);
27
- add_action('admin_print_scripts-'.$wpbackituppage, 'wpbackitup_javascript');
28
- add_action('admin_print_styles-' .$wpbackituppage, 'wpbackitup_stylesheet' );
29
  }
30
- add_action('admin_menu', 'wpbackitup_admin_menus');
31
 
32
- //enqueue javascript
33
- function wpbackitup_javascript() {
34
- wp_enqueue_script('wpbackitup-javascript', WPBACKITUP_PLUGIN_URL.'/js/wp-backitup.js');
35
- //this needs moved to addon dir (as above)
36
- wp_enqueue_script('ajaxfileupload', WPBACKITUP_PLUGIN_URL.'/js/ajaxfileupload.js');
37
  }
38
 
39
- //enqueue stylesheet
40
- function wpbackitup_stylesheet(){
41
- wp_enqueue_style('wpbackitup-stylesheet', WPBACKITUP_PLUGIN_URL.'/css/wp-backitup.css');
42
  }
43
 
44
  //load plugin functions
@@ -71,15 +68,9 @@ function wpbackitup_logreader() {
71
  add_action('wp_ajax_wpbackitup_logreader', 'wpbackitup_logreader');
72
 
73
  //load addons
74
- function dir_contains_children($dir) {
75
- $result = false;
76
- if($dh = opendir($dir)) {
77
- while(!$result && ($file = readdir($dh)) !== false) {
78
- if($file != ("."||"..") {
79
- include $file;
80
- }
81
- }
82
- closedir($dh);
83
  }
84
 
85
  /**
1
  <?php
2
  /**
3
+ * Plugin Name: WP Backitup Lite
4
  * Plugin URI: http://www.wpbackitup.com
5
  * Description: Backup your content, settings, themes, plugins and media in just a few simple clicks.
6
+ * Version: 1.1.2
7
  * Author: John Peden
8
  * Author URI: http://www.johncpeden.com
9
  * License: GPLv2 or later
15
  */
16
 
17
  //define constants
18
+ define("WPBACKITUP_PLUGIN_URL", plugins_url('/', (__FILE__)) );
19
+ define("WPBACKITUP_PLUGIN_PATH", plugin_dir_path(__FILE__) );
20
+ define("WPBACKITUP_DIRNAME", basename(dirname(__FILE__)) );
21
+ define("BACKUP_PATH", WPBACKITUP_PLUGIN_PATH .'/backups/' );
 
22
 
23
  //load admin menu
24
+ function wpbackitup_admin_menu() {
25
+ $wpbackituppage = add_menu_page( __( 'WP Backitup', 'wpBackitup' ), __( 'Backup/Restore', 'wpBackitup' ), 'manage_options', 'wp-backitup', 'wpbackitup_admin', plugin_dir_url(__FILE__ ) .'images/icon.png', 77);
26
+ add_action('admin_print_styles-' .$wpbackituppage, 'wpbackitup_admin_stylesheet' );
27
+ add_action('admin_print_styles-' .$wpbackituppage, 'wpbackitup_admin_javascript' );
28
  }
29
+ add_action('admin_menu', 'wpbackitup_admin_menu');
30
 
31
+ //enqueue stylesheet
32
+ function wpbackitup_admin_stylesheet() {
33
+ wp_enqueue_style( 'wpBackitupStylesheet', plugins_url('css/admin-style.css',(__FILE__)) );
 
 
34
  }
35
 
36
+ //enqueue javascript
37
+ function wpbackitup_admin_javascript() {
38
+ wp_enqueue_script( 'wpBackitupJavascript', plugins_url('js/wp-backitup.js', (__FILE__)) );
39
  }
40
 
41
  //load plugin functions
68
  add_action('wp_ajax_wpbackitup_logreader', 'wpbackitup_logreader');
69
 
70
  //load addons
71
+ $dir = WPBACKITUP_PLUGIN_PATH . "addons/restore/";
72
+ if(is_dir($dir)){
73
+ include_once $dir .'index.php';
 
 
 
 
 
 
74
  }
75
 
76
  /**