Backup and Restore WordPress – WPBackItUp Backup Plugin - Version 1.5.2

Version Description

Modified admin interface.

Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

Files changed (4) hide show
  1. index.php +2 -2
  2. lib/constants.php +2 -2
  3. readme.txt +15 -5
  4. views/options.php +57 -21
index.php CHANGED
@@ -7,13 +7,13 @@
7
  * @global object $wpdb
8
  *
9
  * @author jcpeden
10
- * @version 1.5.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.5.1
17
  Author: John Peden
18
  Author URI: http://www.johncpeden.com
19
  License: GPL3
7
  * @global object $wpdb
8
  *
9
  * @author jcpeden
10
+ * @version 1.5.2
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.5.2
17
  Author: John Peden
18
  Author URI: http://www.johncpeden.com
19
  License: GPL3
lib/constants.php CHANGED
@@ -5,11 +5,11 @@
5
  * @package WP Backitup
6
  *
7
  * @author jcpeden
8
- * @version 1.5.1
9
  * @since 1.0.1
10
  */
11
 
12
- if( !defined( 'WPBACKITUP_VERSION' ) ) define( 'WPBACKITUP_VERSION', '1.5.1' );
13
 
14
  if( !defined( 'WPBACKITUP_DIRNAME' ) ) define( 'WPBACKITUP_DIRNAME', dirname( dirname( __FILE__ ) ) );
15
 
5
  * @package WP Backitup
6
  *
7
  * @author jcpeden
8
+ * @version 1.5.2
9
  * @since 1.0.1
10
  */
11
 
12
+ if( !defined( 'WPBACKITUP_VERSION' ) ) define( 'WPBACKITUP_VERSION', '1.5.2' );
13
 
14
  if( !defined( 'WPBACKITUP_DIRNAME' ) ) define( 'WPBACKITUP_DIRNAME', dirname( dirname( __FILE__ ) ) );
15
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jcpeden, tarunk
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.2
6
- Tested up to: 3.6.1
7
- Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -19,13 +19,16 @@ right from your Wordpress dashboard. There is no need to FTP into your site and
19
  You can use your backup zip to restore your site or to clone a site'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? <a href="http://www.wpbackitup.com/wp-backitup-pro/" title="WP Backitup">WP Backitup Pro</a> offers all the features of <a href="http://wordpress.org/extend/plugins/wp-backitup/" title="WP Backitup Lite">WP Backitup</a> but allows you to import your backup zips in seconds, right from the Wordpress Dashboard.
23
 
24
  = Easy To Install and Use =
25
  Simply install the plugin directly to Wordpress and browse to the new menu 'WP Backitup'. 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).
26
 
 
 
 
27
  = More questions? =
28
- Why not head over to the <a href="http://www.wpbackitup.com/" title="WP Backitup">WP Backitup site</a>?
29
 
30
  == Installation ==
31
 
@@ -34,7 +37,8 @@ Installation of the plugin is straightforward:
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 'WP Backitup' will be added to your toolbar.
37
- 1. Click 'WP Backitup' to access the backup/restore interface.
 
38
 
39
  == Frequently Asked Questions ==
40
 
@@ -93,6 +97,9 @@ Yes.
93
 
94
  == Changelog ==
95
 
 
 
 
96
  = 1.5.1 =
97
  Removed redundant code.
98
 
@@ -155,6 +162,9 @@ Initial version of the plugin released.
155
 
156
  == Upgrade Notice ==
157
 
 
 
 
158
  = 1.5.1 =
159
  Optional upgrade: Redundant code was removed from plugin.
160
 
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.2
6
+ Tested up to: 3.7
7
+ Stable tag: 1.5.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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? WP Backitup features a premium restoration feature that allows your backup zips to be restored right from the Wordpress interface. No need to worry about FTP, cPanel or PHPMyAdmin! Licenses are available to buy on the WP Backitup site but you can also <a href="http://www.wpbackitup.com/free-license/">get a free WP Backitup license here</a>.
23
 
24
  = Easy To Install and Use =
25
  Simply install the plugin directly to Wordpress and browse to the new menu 'WP Backitup'. 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).
26
 
27
+ = Get a free WP Backitup License =
28
+ Missed the link above? You can <a href="http://www.wpbackitup.com/free-license/">get a free WP Backitup license here</a>. Just enter your email address and follow the instructions.
29
+
30
  = More questions? =
31
+ Please ask them in the <a href="http://wordpress.org/support/plugin/wp-backitup">support forum</a>.
32
 
33
  == Installation ==
34
 
37
  1. Upload the plugin to your plugins directory via FTP or through the Wordpress dashboard.
38
  1. Activate the plugin.
39
  1. A new menu called 'WP Backitup' will be added to your toolbar.
40
+ 1. Click 'WP Backitup' to access the backup interface.
41
+ 1. Enter your license key to unlock the restoration features.
42
 
43
  == Frequently Asked Questions ==
44
 
97
 
98
  == Changelog ==
99
 
100
+ = 1.5.2 =
101
+ Modified admin interface.
102
+
103
  = 1.5.1 =
104
  Removed redundant code.
105
 
162
 
163
  == Upgrade Notice ==
164
 
165
+ = 1.5.2 =
166
+ Optional upgrade: No functionality changes.
167
+
168
  = 1.5.1 =
169
  Optional upgrade: Redundant code was removed from plugin.
170
 
views/options.php CHANGED
@@ -11,7 +11,7 @@
11
 
12
  <!--Disable restoration form if the user has not activated-->
13
  <?php $status = $this->get_option( 'status' );
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>
@@ -67,7 +67,7 @@
67
  <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>
68
  <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>
69
  <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>
70
- <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>
71
  <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>
72
  <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>
73
  <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>
@@ -102,46 +102,82 @@
102
  echo '<p><div id="php">PHP messages here</p></div>';
103
  } ?>
104
  </div>
 
105
  <div id="sidebar">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  <form action="" method="post" id="<?php echo $namespace; ?>-form">
107
  <?php wp_nonce_field( $namespace . "-update-options" ); ?>
108
  <div class="widget">
109
  <h3 class="promo"><?php _e('License Key', $namespace ); ?></h3>
110
  <?php $license = $this->get_option( 'license_key' );
111
  $status = $this->get_option( 'status' );
112
- if( $status !== false && $status == 'valid' ) { ?>
113
- <p><?php _e('Pro features and auto-updates enabled', $namespace ); ?></p>
114
- <?php } else { ?>
115
- <p><?php _e('Activate auto-restore and auto-updates by entering your license key', $namespace ); ?></p>
116
  <?php } ?>
117
  <p><input type="text" name="data[license_key]" id="license_key" value="<?php echo $license; ?>" />
118
  <?php if( false !== $license ) {
119
  if( $status !== false && $status == 'valid' ) { ?>
120
  <span style="color:green;"><?php _e('Active', $namespace); ?></span></p>
121
  <p class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e( "Update", $namespace ) ?>" /></p>
 
122
  <?php } else { ?>
123
  <span style="color:red;"><?php _e('Inactive', $namespace); ?></span></p>
124
  <p class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e( "Activate", $namespace ) ?>" /></p>
125
- <p><a href="http://www.wpbackitup.com/wp-backitup-pro"><?php _e('Purchase a license key', $namespace); ?></a></p>
126
  <?php }
127
  } ?>
128
  </div>
129
 
 
130
  <div class="widget">
131
- <?php if( $status !== false && $status == 'valid' ) {
132
- $support_anchor = __('WP Backitup support system',$namespace);
133
- $support_url = 'http://www.wpbackitup.com/support/';
134
- } else {
135
- $support_anchor = __('support system',$namespace);
136
- $support_url = 'http://wordpress.org/support/plugin/wp-backitup';
 
137
  } ?>
138
- <h3 class="promo"><?php _e('Need Help?', $namespace ); ?></h3>
139
- <p><?php _e('Access the',$namespace); ?> <a href="<?php echo $support_url; ?>"><?php echo $support_anchor; ?></a>.</p>
140
- </div>
141
-
142
- <div class="widget">
143
- <h3 class="promo"><?php _e('Spread the Word', $namespace ); ?></h3>
144
- <p><a href="http://wordpress.org/extend/plugins/wp-backitup/"><?php _e('Rate WP Backitup', $namespace ); ?> 5&#9733;</a></p>
145
  </div>
146
 
147
  <div class="widget">
@@ -153,4 +189,4 @@
153
  </div>
154
  </form>
155
  </div>
156
- </div>
11
 
12
  <!--Disable restoration form if the user has not activated-->
13
  <?php $status = $this->get_option( 'status' );
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>
67
  <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>
68
  <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>
69
  <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>
70
+ <!--<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>-->
71
  <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>
72
  <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>
73
  <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>
102
  echo '<p><div id="php">PHP messages here</p></div>';
103
  } ?>
104
  </div>
105
+
106
  <div id="sidebar">
107
+
108
+ <!-- Display opt-in form if the user is unregistered -->
109
+ <?php $license = $this->get_option( 'license_key' );
110
+ $status = $this->get_option( 'status' );
111
+ if( $status != 'valid' ) { ?>
112
+ <div class="widget">
113
+ <h3 class="promo"><?php _e('Get a FREE license key', $namespace ); ?></h3>
114
+ <p><?php _e('Enter your name and email to get a free license key in minutes', $namespace ); ?>!</p>
115
+
116
+ <!-- Begin MailChimp Signup Form -->
117
+ <div id="mc_embed_signup">
118
+ <form action="http://johncpeden.us6.list-manage.com/subscribe/post?u=1ccd19f5614fdf304b12dfd40&amp;id=bbb489a770" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="optinform validate" target="_blank" novalidate>
119
+
120
+ <div class="mc-field-group">
121
+ <input style="width:185px;" type="email" name="FNAME" class="text required name" id="mce-FNAME" value="Enter your first name..." tabindex="500" size="60" onfocus="this.value=''" />
122
+ <input style="width:185px;" type="email" name="EMAIL" class="text required email" id="mce-EMAIL" value="Enter your email address..." tabindex="500" size="60" onfocus="this.value=''" />
123
+ </div>
124
+
125
+ <div id="mce-responses" class="clear">
126
+ <div class="response" id="mce-error-response" style="display:none"></div>
127
+ <div class="response" id="mce-success-response" style="display:none"></div>
128
+ </div>
129
+
130
+ <p><input type="submit" tabindex="501" value="Download" id="buttonid" class="submit button-secondary" name="submit"></p>
131
+
132
+ </form>
133
+ </div>
134
+
135
+ <!--End mc_embed_signup-->
136
+ </div>
137
+ <?php } ?>
138
+
139
+ <?php /*<div class="widget">
140
+ <h3 class="promo"><?php _e('Site Information', $namespace ); ?></h3>
141
+ <p>Backup Size: <?php echo formatFileSize(totalSize(WPBACKITUP_CONTENT_PATH) ); ?></p>
142
+ <p>WP Backitup is not recommended for sites larger than 50MB. Why not try <a href="http://ithemes.com/purchase/backupbuddy/">Backup Buddy</a>?</p>
143
+ </div> */ ?>
144
+
145
+ <!-- Display license key widget -->
146
  <form action="" method="post" id="<?php echo $namespace; ?>-form">
147
  <?php wp_nonce_field( $namespace . "-update-options" ); ?>
148
  <div class="widget">
149
  <h3 class="promo"><?php _e('License Key', $namespace ); ?></h3>
150
  <?php $license = $this->get_option( 'license_key' );
151
  $status = $this->get_option( 'status' );
152
+ if( $status != 'valid' ) { ?>
153
+ <p><?php _e('Enter your license key to activate restoration functionality', $namespace ); ?>.</p>
 
 
154
  <?php } ?>
155
  <p><input type="text" name="data[license_key]" id="license_key" value="<?php echo $license; ?>" />
156
  <?php if( false !== $license ) {
157
  if( $status !== false && $status == 'valid' ) { ?>
158
  <span style="color:green;"><?php _e('Active', $namespace); ?></span></p>
159
  <p class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e( "Update", $namespace ) ?>" /></p>
160
+ <p><a href="http://www.wpbackitup.com/plugins/wp-backitup-pro/"><?php _e('Upgrade your license',$namespace); ?></a></p>
161
  <?php } else { ?>
162
  <span style="color:red;"><?php _e('Inactive', $namespace); ?></span></p>
163
  <p class="submit"><input type="submit" name="Submit" class="button-secondary" value="<?php _e( "Activate", $namespace ) ?>" /></p>
164
+ <p><?php _e('Get a FREE license using the form above',$namespace); ?>.</p>
165
  <?php }
166
  } ?>
167
  </div>
168
 
169
+ <!-- Display links widget -->
170
  <div class="widget">
171
+ <h3 class="promo"><?php _e('Useful Links', $namespace ); ?></h3>
172
+ <ul>
173
+ <?php if( false !== $license ) {
174
+ if( $status !== false && $status == 'valid' ) { ?>
175
+ <li><a href="http://www.wpbackitup.com/your-account/"><?php _e('Your account',$namespace); ?></a></li>
176
+ <li><a href="http://www.wpbackitup.com/plugins/wp-backitup-pro/"><?php _e('Upgrade your license',$namespace); ?></a></li>
177
+ <?php }
178
  } ?>
179
+ <li><a href="http://wordpress.org/support/plugin/wp-backitup"><?php _e('Get support',$namespace); ?></a></li>
180
+ </ul>
 
 
 
 
 
181
  </div>
182
 
183
  <div class="widget">
189
  </div>
190
  </form>
191
  </div>
192
+ </div>