MalCare WordPress Security Plugin – Malware Scanner, Cleaner, Security Firewall - Version 4.76

Version Description

  • Improvements in fetching file stats
Download this release

Release Info

Developer ritesh.soni36
Plugin Icon 128x128 MalCare WordPress Security Plugin – Malware Scanner, Cleaner, Security Firewall
Version 4.76
Comparing to
See all releases

Code changes from version 4.75 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. malcare.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('MCInfo')) :
10
  public $badgeinfo = 'mcbadge';
11
  public $ip_header_option = 'mcipheader';
12
  public $brand_option = 'mcbrand';
13
- public $version = '4.75';
14
  public $webpage = 'https://www.malcare.com';
15
  public $appurl = 'https://app.malcare.com';
16
  public $slug = 'malcare-security/malcare.php';
10
  public $badgeinfo = 'mcbadge';
11
  public $ip_header_option = 'mcipheader';
12
  public $brand_option = 'mcbrand';
13
+ public $version = '4.76';
14
  public $webpage = 'https://www.malcare.com';
15
  public $appurl = 'https://app.malcare.com';
16
  public $slug = 'malcare-security/malcare.php';
malcare.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://www.malcare.com
5
  Description: MalCare Security - Free Malware Scanner, Protection & Security for WordPress
6
  Author: MalCare Security
7
  Author URI: https://www.malcare.com
8
- Version: 4.75
9
  Network: True
10
  */
11
 
5
  Description: MalCare Security - Free Malware Scanner, Protection & Security for WordPress
6
  Author: MalCare Security
7
  Author URI: https://www.malcare.com
8
+ Version: 4.76
9
  Network: True
10
  */
11
 
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://www.malcare.com
6
  Requires at least: 4.0
7
  Tested up to: 5.9
8
  Requires PHP: 5.4.0
9
- Stable tag: 4.75
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
 
@@ -392,6 +392,9 @@ These are available on our website: [Terms of Service](https://www.malcare.com/t
392
  8. MalCare’s Uptime Monitoring notifies if a website goes down so that you can handle the situation before starting to lose visitors.
393
 
394
  == CHANGELOG ==
 
 
 
395
  = 4.75 =
396
  * Added the MalCare badge image
397
 
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
 
392
  8. MalCare’s Uptime Monitoring notifies if a website goes down so that you can handle the situation before starting to lose visitors.
393
 
394
  == CHANGELOG ==
395
+ = 4.76 =
396
+ * Improvements in fetching file stats
397
+
398
  = 4.75 =
399
  * Added the MalCare badge image
400