VaultPress - Version 1.7.0

Version Description

  • 9 Jan 2015 =
  • Added an option to disable calls to php_uname, as some hosts don't allow them.
Download this release

Release Info

Developer thingalon
Plugin Icon 128x128 VaultPress
Version 1.7.0
Comparing to
See all releases

Code changes from version 1.6.9 to 1.7.0

Files changed (2) hide show
  1. readme.txt +7 -1
  2. vaultpress.php +15 -5
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, apokalyptik, briancolinger, josephscott, shaunandrews,
3
  Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
4
  Requires at least: 2.9.2
5
  Tested up to: 4.1
6
- Stable tag: 1.6.9
7
  License: GPLv2
8
 
9
  VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
@@ -51,6 +51,12 @@ A VaultPress subscription is for a single WordPress site. You can purchase addit
51
  Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
52
 
53
  == Changelog ==
 
 
 
 
 
 
54
  = 1.6.8 - 12 Dec 2014 =
55
  * Bugfix: Fall back on HTTP when updating firewall via HTTPS fails. Still warn the user about the security implications.
56
 
3
  Tags: security, malware, virus, archive, back up, back ups, backup, backups, scanning, restore, wordpress backup, site backup, website backup
4
  Requires at least: 2.9.2
5
  Tested up to: 4.1
6
+ Stable tag: 1.7.0
7
  License: GPLv2
8
 
9
  VaultPress is a subscription service offering realtime backup, automated security scanning, and support from WordPress experts.
51
  Yes, VaultPress supports Multisite installs. Each site will require its own subscription.
52
 
53
  == Changelog ==
54
+ = 1.7.0 - 9 Jan 2015 =
55
+ * Added an option to disable calls to php_uname, as some hosts don't allow them.
56
+
57
+ = 1.6.9 - 24 Dec 2014 =
58
+ * Tested against WordPress 4.1
59
+
60
  = 1.6.8 - 12 Dec 2014 =
61
  * Bugfix: Fall back on HTTP when updating firewall via HTTPS fails. Still warn the user about the security implications.
62
 
vaultpress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VaultPress
4
  * Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&utm_medium=plugin-description&utm_campaign=1.0
5
  * Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">Need some help?</a>
6
- * Version: 1.6.9
7
  * Author: Automattic
8
  * Author URI: http://vaultpress.com/?utm_source=author-uri&amp;utm_medium=plugin-description&amp;utm_campaign=1.0
9
  * License: GPL2+
@@ -18,7 +18,7 @@ if ( !defined( 'ABSPATH' ) )
18
  class VaultPress {
19
  var $option_name = 'vaultpress';
20
  var $db_version = 4;
21
- var $plugin_version = '1.6.9';
22
 
23
  function __construct() {
24
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
@@ -1465,6 +1465,14 @@ JS;
1465
  if ( false === strpos( $upload_url, 'http' ) )
1466
  $upload_url = untrailingslashit( site_url() ) . $upload_url;
1467
  }
 
 
 
 
 
 
 
 
1468
 
1469
  $this->response( array(
1470
  'vaultpress' => $vaultpress_response_info,
@@ -1488,9 +1496,9 @@ JS;
1488
  ),
1489
  'server' => array(
1490
  'host' => $_SERVER['HTTP_HOST'],
1491
- 'server' => @php_uname( "n" ),
1492
  'load' => $loadavg,
1493
- 'info' => @php_uname( "a" ),
1494
  'time' => time(),
1495
  'php' => array( 'version' => phpversion(), 'ini' => $ini_vals, 'directory_separator' => DIRECTORY_SEPARATOR ),
1496
  'httpd' => array(
@@ -1838,7 +1846,9 @@ JS;
1838
  $one_day_ago = time() - 86400;
1839
  if ( empty( $stored_cidrs ) || empty( $stored_ext_cidrs ) || $stored_cidrs['updated'] < $one_day_ago ) {
1840
  $cidrs = $this->update_firewall();
1841
- } else {
 
 
1842
  $cidrs = array_merge( $stored_cidrs['data'], $stored_ext_cidrs['data'] );
1843
  }
1844
 
3
  * Plugin Name: VaultPress
4
  * Plugin URI: http://vaultpress.com/?utm_source=plugin-uri&amp;utm_medium=plugin-description&amp;utm_campaign=1.0
5
  * Description: Protect your content, themes, plugins, and settings with <strong>realtime backup</strong> and <strong>automated security scanning</strong> from <a href="http://vaultpress.com/?utm_source=wp-admin&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">VaultPress</a>. Activate, enter your registration key, and never worry again. <a href="http://vaultpress.com/help/?utm_source=wp-admin&amp;utm_medium=plugin-description&amp;utm_campaign=1.0" rel="nofollow">Need some help?</a>
6
+ * Version: 1.7.0
7
  * Author: Automattic
8
  * Author URI: http://vaultpress.com/?utm_source=author-uri&amp;utm_medium=plugin-description&amp;utm_campaign=1.0
9
  * License: GPL2+
18
  class VaultPress {
19
  var $option_name = 'vaultpress';
20
  var $db_version = 4;
21
+ var $plugin_version = '1.7.0';
22
 
23
  function __construct() {
24
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
1465
  if ( false === strpos( $upload_url, 'http' ) )
1466
  $upload_url = untrailingslashit( site_url() ) . $upload_url;
1467
  }
1468
+
1469
+ if ( defined( 'VP_DISABLE_UNAME' ) && VP_DISABLE_UNAME ) {
1470
+ $uname_a = '';
1471
+ $uname_n = '';
1472
+ } else {
1473
+ $uname_a = @php_uname( 'a' );
1474
+ $uname_n = @php_uname( 'n' );
1475
+ }
1476
 
1477
  $this->response( array(
1478
  'vaultpress' => $vaultpress_response_info,
1496
  ),
1497
  'server' => array(
1498
  'host' => $_SERVER['HTTP_HOST'],
1499
+ 'server' => $uname_n,
1500
  'load' => $loadavg,
1501
+ 'info' => $uname_a,
1502
  'time' => time(),
1503
  'php' => array( 'version' => phpversion(), 'ini' => $ini_vals, 'directory_separator' => DIRECTORY_SEPARATOR ),
1504
  'httpd' => array(
1846
  $one_day_ago = time() - 86400;
1847
  if ( empty( $stored_cidrs ) || empty( $stored_ext_cidrs ) || $stored_cidrs['updated'] < $one_day_ago ) {
1848
  $cidrs = $this->update_firewall();
1849
+ }
1850
+
1851
+ if ( empty( $cidrs ) ) {
1852
  $cidrs = array_merge( $stored_cidrs['data'], $stored_ext_cidrs['data'] );
1853
  }
1854