The WP Remote WordPress Plugin - Version 4.76

Version Description

  • Improvements in fetching file stats
Download this release

Release Info

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

Code changes from version 4.74 to 4.76

Files changed (5) hide show
  1. callback/base.php +1 -1
  2. callback/wings/fs.php +23 -10
  3. info.php +1 -1
  4. plugin.php +1 -1
  5. readme.txt +4 -1
callback/base.php CHANGED
@@ -13,7 +13,7 @@ class BVCallbackBase {
13
  "DB_WING_VERSION" => '1.1',
14
  "ACCOUNT_WING_VERSION" => '1.1',
15
  "MISC_WING_VERSION" => '1.2',
16
- "FS_WING_VERSION" => '1.1',
17
  "INFO_WING_VERSION" => '1.4',
18
  "WATCH_WING_VERSION" => '1.0',
19
  "FS_WRITE_WING_VERSION" => '1.0',
13
  "DB_WING_VERSION" => '1.1',
14
  "ACCOUNT_WING_VERSION" => '1.1',
15
  "MISC_WING_VERSION" => '1.2',
16
+ "FS_WING_VERSION" => '1.2',
17
  "INFO_WING_VERSION" => '1.4',
18
  "WATCH_WING_VERSION" => '1.0',
19
  "FS_WRITE_WING_VERSION" => '1.0',
callback/wings/fs.php CHANGED
@@ -9,7 +9,7 @@ class BVFSCallback extends BVCallbackBase {
9
  public $account;
10
 
11
  public static $cwAllowedFiles = array(".htaccess", ".user.ini", "malcare-waf.php");
12
- const FS_WING_VERSION = 1.1;
13
 
14
  public function __construct($callback_handler) {
15
  $this->account = $callback_handler->account;
@@ -200,7 +200,7 @@ class BVFSCallback extends BVCallbackBase {
200
  if ($md5 === true && !is_dir($absfile)) {
201
  $fdata["md5"] = $this->calculateMd5($absfile, $fdata, $offset, $limit, $bsize);
202
  }
203
- $result[] = $fdata;
204
  }
205
  return $result;
206
  }
@@ -288,11 +288,15 @@ class BVFSCallback extends BVCallbackBase {
288
  $resp = array("status" => "done", "links" => $links);
289
  break;
290
  case "getfilesstats":
291
- $md5 = array_key_exists('md5', $params) ? $params['md5'] : false;
292
- $stats = $this->getFilesStats(
293
- $params['files'], $params['offset'], $params['limit'], $params['bsize'], $md5
294
- );
295
- $resp = array('stats' => $stats);
 
 
 
 
296
  break;
297
  case "sendmanyfiles":
298
  $files = $params['files'];
@@ -331,7 +335,7 @@ class BVFSCallback extends BVCallbackBase {
331
  foreach($regexes as $regex) {
332
  $directoryList = array_merge($directoryList, glob($options['dir'].$regex, $glob_option));
333
  }
334
- $resp[$options['dir']] = array('stats' => $this->getFilesStats($directoryList, 0, 0, 0, $md5));
335
  }
336
  break;
337
  case "dirsexists":
@@ -371,9 +375,18 @@ class BVFSCallback extends BVCallbackBase {
371
  );
372
 
373
  $result = array();
374
- foreach ($stats as $stat) {
375
- $result[$stat['filename']] = $stat;
 
 
 
 
376
  }
 
 
 
 
 
377
  $resp['get_files_stats'] = $result;
378
  }
379
 
9
  public $account;
10
 
11
  public static $cwAllowedFiles = array(".htaccess", ".user.ini", "malcare-waf.php");
12
+ const FS_WING_VERSION = 1.2;
13
 
14
  public function __construct($callback_handler) {
15
  $this->account = $callback_handler->account;
200
  if ($md5 === true && !is_dir($absfile)) {
201
  $fdata["md5"] = $this->calculateMd5($absfile, $fdata, $offset, $limit, $bsize);
202
  }
203
+ $result["stats"][] = $fdata;
204
  }
205
  return $result;
206
  }
288
  $resp = array("status" => "done", "links" => $links);
289
  break;
290
  case "getfilesstats":
291
+ $files = $params['files'];
292
+ $offset = intval(urldecode($params['offset']));
293
+ $limit = intval(urldecode($params['limit']));
294
+ $bsize = intval(urldecode($params['bsize']));
295
+ $md5 = false;
296
+ if (array_key_exists('md5', $params)) {
297
+ $md5 = true;
298
+ }
299
+ $resp = $this->getFilesStats($files, $offset, $limit, $bsize, $md5);
300
  break;
301
  case "sendmanyfiles":
302
  $files = $params['files'];
335
  foreach($regexes as $regex) {
336
  $directoryList = array_merge($directoryList, glob($options['dir'].$regex, $glob_option));
337
  }
338
+ $resp[$options['dir']] = $this->getFilesStats($directoryList, 0, 0, 0, $md5);
339
  }
340
  break;
341
  case "dirsexists":
375
  );
376
 
377
  $result = array();
378
+
379
+ if (array_key_exists('stats', $stats)) {
380
+ $result['stats'] = array();
381
+ foreach ($stats['stats'] as $stat) {
382
+ $result['stats'][$stat['filename']] = $stat;
383
+ }
384
  }
385
+
386
+ if (array_key_exists('missingfiles', $stats)) {
387
+ $result['missingfiles'] = $stats['missingfiles'];
388
+ }
389
+
390
  $resp['get_files_stats'] = $result;
391
  }
392
 
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.74';
14
  public $webpage = 'https://wpremote.com';
15
  public $appurl = 'https://app.wpremote.com';
16
  public $slug = 'wpremote/plugin.php';
10
  public $badgeinfo = 'wprbadge';
11
  public $ip_header_option = 'wpripheader';
12
  public $brand_option = 'wprbrand';
13
+ public $version = '4.76';
14
  public $webpage = 'https://wpremote.com';
15
  public $appurl = 'https://app.wpremote.com';
16
  public $slug = 'wpremote/plugin.php';
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.74
9
  Network: True
10
  */
11
 
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.76
9
  Network: True
10
  */
11
 
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.9
8
  Requires PHP: 5.4.0
9
- Stable tag: 4.74
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,9 @@ 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.74 =
36
  * Enhanced handling of plugin services
37
  * Removed deprecated hook
6
  Requires at least: 4.0
7
  Tested up to: 5.9
8
  Requires PHP: 5.4.0
9
+ Stable tag: 4.76
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.76 =
36
+ * Improvements in fetching file stats
37
+
38
  = 4.74 =
39
  * Enhanced handling of plugin services
40
  * Removed deprecated hook