WordPress Backup & Security Plugin – BlogVault - Version 4.58

Version Description

  • Fixed firewall caching issue
  • Minor bug fixes
Download this release

Release Info

Developer ritesh.soni36
Plugin Icon 128x128 WordPress Backup & Security Plugin – BlogVault
Version 4.58
Comparing to
See all releases

Code changes from version 4.57 to 4.58

blogvault.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://blogvault.net
5
  Description: Easiest way to backup & secure your WordPress site
6
  Author: Backup by BlogVault
7
  Author URI: https://blogvault.net
8
- Version: 4.57
9
  Network: True
10
  */
11
 
@@ -177,4 +177,4 @@ if ((array_key_exists('bvplugname', $_REQUEST)) && ($_REQUEST['bvplugname'] == "
177
  }
178
  }
179
 
180
- }
5
  Description: Easiest way to backup & secure your WordPress site
6
  Author: Backup by BlogVault
7
  Author URI: https://blogvault.net
8
+ Version: 4.58
9
  Network: True
10
  */
11
 
177
  }
178
  }
179
 
180
+ }
callback/wings/fs.php CHANGED
@@ -168,7 +168,7 @@ class BVFSCallback extends BVCallbackBase {
168
  if (is_dir($absfile) && !is_link($absfile)) {
169
  $fdata['is_dir'] = true;
170
  } else {
171
- if (!is_readable($file)) {
172
  $fdata['error'] = 'file not readable';
173
  } else {
174
  if ($withContent === true) {
168
  if (is_dir($absfile) && !is_link($absfile)) {
169
  $fdata['is_dir'] = true;
170
  } else {
171
+ if (!is_readable($absfile)) {
172
  $fdata['error'] = 'file not readable';
173
  } else {
174
  if ($withContent === true) {
callback/wings/info.php CHANGED
@@ -247,6 +247,11 @@ class BVInfoCallback extends BVCallbackBase {
247
  if (array_key_exists('IS_PRESSABLE', get_defined_constants())) {
248
  $host_info['IS_PRESSABLE'] = true;
249
  }
 
 
 
 
 
250
  return array('host_info' => $host_info);
251
  }
252
 
247
  if (array_key_exists('IS_PRESSABLE', get_defined_constants())) {
248
  $host_info['IS_PRESSABLE'] = true;
249
  }
250
+
251
+ if (array_key_exists('GRIDPANE', get_defined_constants())) {
252
+ $host_info['IS_GRIDPANE'] = true;
253
+ }
254
+
255
  return array('host_info' => $host_info);
256
  }
257
 
callback/wings/watch.php CHANGED
@@ -166,4 +166,4 @@ class BVWatchCallback extends BVCallbackBase {
166
  return $resp;
167
  }
168
  }
169
- endif;
166
  return $resp;
167
  }
168
  }
169
+ endif;
info.php CHANGED
@@ -10,7 +10,7 @@ if (!class_exists('BVInfo')) :
10
  public $badgeinfo = 'bvbadge';
11
  public $ip_header_option = 'bvipheader';
12
  public $brand_option = 'bvbrand';
13
- public $version = '4.57';
14
  public $webpage = 'https://blogvault.net';
15
  public $appurl = 'https://app.blogvault.net';
16
  public $slug = 'blogvault-real-time-backup/blogvault.php';
@@ -140,4 +140,4 @@ if (!class_exists('BVInfo')) :
140
  );
141
  }
142
  }
143
- endif;
10
  public $badgeinfo = 'bvbadge';
11
  public $ip_header_option = 'bvipheader';
12
  public $brand_option = 'bvbrand';
13
+ public $version = '4.58';
14
  public $webpage = 'https://blogvault.net';
15
  public $appurl = 'https://app.blogvault.net';
16
  public $slug = 'blogvault-real-time-backup/blogvault.php';
140
  );
141
  }
142
  }
143
+ endif;
protect/fw/config.php CHANGED
@@ -37,6 +37,8 @@ class BVFWConfig {
37
  $this->cookieKey = array_key_exists('cookiekey', $confHash) ? $confHash['cookiekey'] : "";
38
  $this->cookiePath = array_key_exists('cookiepath', $confHash) ? $confHash['cookiepath'] : "";
39
  $this->cookieDomain = array_key_exists('cookiedomain', $confHash) ? $confHash['cookiedomain'] : "";
 
 
40
  $this->rulesMode = array_key_exists('rulesmode', $confHash) ? intval($confHash['rulesmode']) : BVFWConfig::DISABLED;
41
  }
42
 
37
  $this->cookieKey = array_key_exists('cookiekey', $confHash) ? $confHash['cookiekey'] : "";
38
  $this->cookiePath = array_key_exists('cookiepath', $confHash) ? $confHash['cookiepath'] : "";
39
  $this->cookieDomain = array_key_exists('cookiedomain', $confHash) ? $confHash['cookiedomain'] : "";
40
+ $this->canSetCachePreventionCookie = array_key_exists('cansetcachepreventioncookie', $confHash) ?
41
+ $confHash['cansetcachepreventioncookie'] : false;
42
  $this->rulesMode = array_key_exists('rulesmode', $confHash) ? intval($confHash['rulesmode']) : BVFWConfig::DISABLED;
43
  }
44
 
protect/fw/fw.php CHANGED
@@ -51,6 +51,7 @@ class BVFW {
51
 
52
  const BYPASS_COOKIE = "bvfw-bypass-cookie";
53
  const IP_COOKIE = "bvfw-ip-cookie";
 
54
 
55
  public function __construct($logger, $confHash, $ip, $bvinfo, $ipstore, $ruleSet) {
56
  $this->config = new BVFWConfig($confHash);
@@ -178,6 +179,13 @@ class BVFW {
178
  $this->request->setCategory($category);
179
  $this->request->setStatus(BVWPRequest::BLOCKED);
180
  $this->request->setRespCode(403);
 
 
 
 
 
 
 
181
  header("Cache-Control: no-cache, no-store, must-revalidate");
182
  header("Pragma: no-cache");
183
  header("Expires: 0");
51
 
52
  const BYPASS_COOKIE = "bvfw-bypass-cookie";
53
  const IP_COOKIE = "bvfw-ip-cookie";
54
+ const PREVENT_CACHE_COOKIE = "wp-bvfw-prevent-cache-cookie";
55
 
56
  public function __construct($logger, $confHash, $ip, $bvinfo, $ipstore, $ruleSet) {
57
  $this->config = new BVFWConfig($confHash);
179
  $this->request->setCategory($category);
180
  $this->request->setStatus(BVWPRequest::BLOCKED);
181
  $this->request->setRespCode(403);
182
+
183
+ if ($this->config->canSetCachePreventionCookie &&
184
+ !$this->request->getCookies(BVFW::PREVENT_CACHE_COOKIE)) {
185
+ $value = "Prevent Caching Response.";
186
+ $this->setcookie(BVFW::PREVENT_CACHE_COOKIE, $value, time() + 43200);
187
+ }
188
+
189
  header("Cache-Control: no-cache, no-store, must-revalidate");
190
  header("Pragma: no-cache");
191
  header("Expires: 0");
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://app.blogvault.net/home/signup
6
  Requires at least: 4.0
7
  Tested up to: 5.7
8
  Requires PHP: 5.4.0
9
- Stable tag: 4.57
10
  License: GPLv2 or later
11
  License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
12
 
@@ -247,6 +247,10 @@ These are available on our website: [Terms of Service](https://blogvault.net/tos
247
  9. We power WordPress migration for WPEngine, Pantheon, FlyWheel, LiquidWeb, Cloudways, Savvii and many more. Need we say more?
248
 
249
  == CHANGELOG ==
 
 
 
 
250
  = 4.57 =
251
  * Fixed services data fetch bug
252
 
6
  Requires at least: 4.0
7
  Tested up to: 5.7
8
  Requires PHP: 5.4.0
9
+ Stable tag: 4.58
10
  License: GPLv2 or later
11
  License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
12
 
247
  9. We power WordPress migration for WPEngine, Pantheon, FlyWheel, LiquidWeb, Cloudways, Savvii and many more. Need we say more?
248
 
249
  == CHANGELOG ==
250
+ = 4.58 =
251
+ * Fixed firewall caching issue
252
+ * Minor bug fixes
253
+
254
  = 4.57 =
255
  * Fixed services data fetch bug
256