The WP Remote WordPress Plugin - Version 4.58

Version Description

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

Release Info

Developer ritesh.soni36
Plugin Icon 128x128 The WP Remote WordPress Plugin
Version 4.58
Comparing to
See all releases

Code changes from version 4.57 to 4.58

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('WPRInfo')) :
10
  public $badgeinfo = 'wprbadge';
11
  public $ip_header_option = 'wpripheader';
12
  public $brand_option = 'wprbrand';
13
- public $version = '4.57';
14
  public $webpage = 'https://wpremote.com';
15
  public $appurl = 'https://app.wpremote.com';
16
  public $slug = 'wpremote/plugin.php';
@@ -140,4 +140,4 @@ if (!class_exists('WPRInfo')) :
140
  );
141
  }
142
  }
143
- endif;
10
  public $badgeinfo = 'wprbadge';
11
  public $ip_header_option = 'wpripheader';
12
  public $brand_option = 'wprbrand';
13
+ public $version = '4.58';
14
  public $webpage = 'https://wpremote.com';
15
  public $appurl = 'https://app.wpremote.com';
16
  public $slug = 'wpremote/plugin.php';
140
  );
141
  }
142
  }
143
+ endif;
plugin.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wpremote.com
5
  Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
6
  Author: WP Remote
7
  Author URI: https://wpremote.com
8
- Version: 4.57
9
  Network: True
10
  */
11
 
@@ -185,4 +185,4 @@ if ((array_key_exists('bvplugname', $_REQUEST)) && ($_REQUEST['bvplugname'] == "
185
  }
186
  }
187
 
188
- }
5
  Description: Manage your WordPress site with <a href="https://wpremote.com/">WP Remote</a>.
6
  Author: WP Remote
7
  Author URI: https://wpremote.com
8
+ Version: 4.58
9
  Network: True
10
  */
11
 
185
  }
186
  }
187
 
188
+ }
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.wpremote.com/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
 
@@ -32,6 +32,10 @@ You can email us at support@wpremote.com for support.
32
  3. Sign up for an account at wpremote.com and add your site.
33
 
34
  == CHANGELOG ==
 
 
 
 
35
  = 4.57 =
36
  * Fixed services data fetch bug
37
 
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
 
32
  3. Sign up for an account at wpremote.com and add your site.
33
 
34
  == CHANGELOG ==
35
+ = 4.58 =
36
+ * Fixed firewall caching issue
37
+ * Minor bug fixes
38
+
39
  = 4.57 =
40
  * Fixed services data fetch bug
41