UpdraftPlus WordPress Backup Plugin - Version 1.1.13

Version Description

  • 05/01/2013 =
  • Requested feature: more frequent scheduling options requested
  • Fixed bug which mangled default suggestion for backup working directory on Windows
Download this release

Release Info

Developer DavidAnderson
Plugin Icon 128x128 UpdraftPlus WordPress Backup Plugin
Version 1.1.13
Comparing to
See all releases

Code changes from version 1.1.12 to 1.1.13

Files changed (2) hide show
  1. readme.txt +3 -2
  2. updraftplus.php +10 -53
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: David Anderson
3
  Tags: backup, restore, database, cloud, amazon, s3, Amazon S3, google drive, google, gdrive, ftp, cloud, updraft, back up
4
  Requires at least: 3.2
5
  Tested up to: 3.5
6
- Stable tag: 1.1.12
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
@@ -111,8 +111,9 @@ Thanks for asking - yes, I have. Check out my profile page - http://profiles.wor
111
 
112
  == Changelog ==
113
 
114
- = 1.1.12 - 05/01/2013 =
115
  * Requested feature: more frequent scheduling options requested
 
116
 
117
  = 1.1.11 - 04/01/2013 =
118
  * Bug fix: some backup runs were erroneously being identified as superfluous and cancelled
3
  Tags: backup, restore, database, cloud, amazon, s3, Amazon S3, google drive, google, gdrive, ftp, cloud, updraft, back up
4
  Requires at least: 3.2
5
  Tested up to: 3.5
6
+ Stable tag: 1.1.13
7
  Donate link: http://david.dw-perspective.org.uk/donate
8
  License: GPLv3 or later
9
 
111
 
112
  == Changelog ==
113
 
114
+ = 1.1.13 - 05/01/2013 =
115
  * Requested feature: more frequent scheduling options requested
116
+ * Fixed bug which mangled default suggestion for backup working directory on Windows
117
 
118
  = 1.1.11 - 04/01/2013 =
119
  * Bug fix: some backup runs were erroneously being identified as superfluous and cancelled
updraftplus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Uploads, themes, plugins, and your DB can be automatically backed up to Amazon S3, Google Drive, FTP, or emailed, on separate schedules.
6
  Author: David Anderson.
7
- Version: 1.1.12
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
@@ -56,7 +56,7 @@ define('UPDRAFT_DEFAULT_OTHERS_EXCLUDE','upgrade,cache,updraft,index.php');
56
 
57
  class UpdraftPlus {
58
 
59
- var $version = '1.1.12';
60
 
61
  // Choices will be shown in the admin menu in the order used here
62
  var $backup_methods = array (
@@ -269,7 +269,7 @@ class UpdraftPlus {
269
 
270
  // Log some information that may be helpful
271
  global $wp_version;
272
- $this->log("PHP version: ".phpversion()." WordPress version: ".$wp_version." Updraft version: ".$this->version." PHP Max Execution Time: ".ini_get("max_execution_time")." Backup files: $backup_files (schedule: ".get_option('updraft_interval','unset').") Backup DB: $backup_database (schedule: ".get_option('updraft_interval_database','unset').")");
273
 
274
  # If the files and database schedules are the same, and if this the file one, then we rope in database too.
275
  # On the other hand, if the schedules were the same and this was the database run, then there is nothing to do.
@@ -1297,17 +1297,17 @@ class UpdraftPlus {
1297
  register_setting( 'updraft-options-group', 'updraft_encryptionphrase', 'wp_filter_nohtml_kses' );
1298
  register_setting( 'updraft-options-group', 'updraft_service', 'wp_filter_nohtml_kses' );
1299
 
1300
- register_setting( 'updraft-options-group', 'updraft_s3_login', 'wp_filter_nohtml_kses' );
1301
- register_setting( 'updraft-options-group', 'updraft_s3_pass', 'wp_filter_nohtml_kses' );
1302
  register_setting( 'updraft-options-group', 'updraft_s3_remote_path', 'wp_filter_nohtml_kses' );
1303
  register_setting( 'updraft-options-group', 'updraft_googledrive_clientid', 'wp_filter_nohtml_kses' );
1304
- register_setting( 'updraft-options-group', 'updraft_googledrive_secret', 'wp_filter_nohtml_kses' );
1305
  register_setting( 'updraft-options-group', 'updraft_googledrive_remotepath', 'wp_filter_nohtml_kses' );
1306
- register_setting( 'updraft-options-group', 'updraft_ftp_login', 'wp_filter_nohtml_kses' );
1307
- register_setting( 'updraft-options-group', 'updraft_ftp_pass', 'wp_filter_nohtml_kses' );
1308
- register_setting( 'updraft-options-group', 'updraft_ftp_remote_path', 'wp_filter_nohtml_kses' );
1309
  register_setting( 'updraft-options-group', 'updraft_server_address', 'wp_filter_nohtml_kses' );
1310
- register_setting( 'updraft-options-group', 'updraft_dir', 'wp_filter_nohtml_kses' );
1311
  register_setting( 'updraft-options-group', 'updraft_email', 'wp_filter_nohtml_kses' );
1312
  register_setting( 'updraft-options-group', 'updraft_delete_local', 'absint' );
1313
  register_setting( 'updraft-options-group', 'updraft_debug_mode', 'absint' );
@@ -1849,49 +1849,6 @@ echo $delete_local; ?> /> <br>Check this to delete the local backup file (only s
1849
  </script>
1850
  <?php
1851
  }
1852
-
1853
- /*array2json provided by bin-co.com under BSD license*/
1854
- function array2json($arr) {
1855
- if(function_exists('json_encode')) return stripslashes(json_encode($arr)); // PHP >= 5.2 already has this functionality.
1856
- $parts = array();
1857
- $is_list = false;
1858
-
1859
- //Find out if the given array is a numerical array
1860
- $keys = array_keys($arr);
1861
- $max_length = count($arr)-1;
1862
- if(($keys[0] == 0) and ($keys[$max_length] == $max_length)) {//See if the first key is 0 and last key is length - 1
1863
- $is_list = true;
1864
- for($i=0; $i<count($keys); $i++) { //See if each key correspondes to its position
1865
- if($i != $keys[$i]) { //A key fails at position check.
1866
- $is_list = false; //It is an associative array.
1867
- break;
1868
- }
1869
- }
1870
- }
1871
-
1872
- foreach($arr as $key=>$value) {
1873
- if(is_array($value)) { //Custom handling for arrays
1874
- if($is_list) $parts[] = $this->array2json($value); /* :RECURSION: */
1875
- else $parts[] = '"' . $key . '":' . $this->array2json($value); /* :RECURSION: */
1876
- } else {
1877
- $str = '';
1878
- if(!$is_list) $str = '"' . $key . '":';
1879
-
1880
- //Custom handling for multiple data types
1881
- if(is_numeric($value)) $str .= $value; //Numbers
1882
- elseif($value === false) $str .= 'false'; //The booleans
1883
- elseif($value === true) $str .= 'true';
1884
- else $str .= '"' . addslashes($value) . '"'; //All other things
1885
- // :TODO: Is there any more datatype we should be in the lookout for? (Object?)
1886
-
1887
- $parts[] = $str;
1888
- }
1889
- }
1890
- $json = implode(',',$parts);
1891
-
1892
- if($is_list) return '[' . $json . ']';//Return numerical JSON
1893
- return '{' . $json . '}';//Return associative JSON
1894
- }
1895
 
1896
  function show_admin_warning($message) {
1897
  echo '<div id="updraftmessage" class="updated fade">'."<p>$message</p></div>";
4
  Plugin URI: http://wordpress.org/extend/plugins/updraftplus
5
  Description: Uploads, themes, plugins, and your DB can be automatically backed up to Amazon S3, Google Drive, FTP, or emailed, on separate schedules.
6
  Author: David Anderson.
7
+ Version: 1.1.13
8
  Donate link: http://david.dw-perspective.org.uk/donate
9
  License: GPLv3 or later
10
  Author URI: http://wordshell.net
56
 
57
  class UpdraftPlus {
58
 
59
+ var $version = '1.1.13';
60
 
61
  // Choices will be shown in the admin menu in the order used here
62
  var $backup_methods = array (
269
 
270
  // Log some information that may be helpful
271
  global $wp_version;
272
+ $this->log("PHP version: ".phpversion()." (".php_uname().") WordPress version: ".$wp_version." Updraft version: ".$this->version." PHP Max Execution Time: ".ini_get("max_execution_time")." Backup files: $backup_files (schedule: ".get_option('updraft_interval','unset').") Backup DB: $backup_database (schedule: ".get_option('updraft_interval_database','unset').")");
273
 
274
  # If the files and database schedules are the same, and if this the file one, then we rope in database too.
275
  # On the other hand, if the schedules were the same and this was the database run, then there is nothing to do.
1297
  register_setting( 'updraft-options-group', 'updraft_encryptionphrase', 'wp_filter_nohtml_kses' );
1298
  register_setting( 'updraft-options-group', 'updraft_service', 'wp_filter_nohtml_kses' );
1299
 
1300
+ register_setting( 'updraft-options-group', 'updraft_s3_login' );
1301
+ register_setting( 'updraft-options-group', 'updraft_s3_pass' );
1302
  register_setting( 'updraft-options-group', 'updraft_s3_remote_path', 'wp_filter_nohtml_kses' );
1303
  register_setting( 'updraft-options-group', 'updraft_googledrive_clientid', 'wp_filter_nohtml_kses' );
1304
+ register_setting( 'updraft-options-group', 'updraft_googledrive_secret' );
1305
  register_setting( 'updraft-options-group', 'updraft_googledrive_remotepath', 'wp_filter_nohtml_kses' );
1306
+ register_setting( 'updraft-options-group', 'updraft_ftp_login' );
1307
+ register_setting( 'updraft-options-group', 'updraft_ftp_pass' );
1308
+ register_setting( 'updraft-options-group', 'updraft_ftp_remote_path' );
1309
  register_setting( 'updraft-options-group', 'updraft_server_address', 'wp_filter_nohtml_kses' );
1310
+ register_setting( 'updraft-options-group', 'updraft_dir' );
1311
  register_setting( 'updraft-options-group', 'updraft_email', 'wp_filter_nohtml_kses' );
1312
  register_setting( 'updraft-options-group', 'updraft_delete_local', 'absint' );
1313
  register_setting( 'updraft-options-group', 'updraft_debug_mode', 'absint' );
1849
  </script>
1850
  <?php
1851
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1852
 
1853
  function show_admin_warning($message) {
1854
  echo '<div id="updraftmessage" class="updated fade">'."<p>$message</p></div>";