WordPress Backup & Security Plugin – BlogVault - Version 4.76

Version Description

  • Improvements in fetching file stats
Download this release

Release Info

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

Code changes from version 4.74 to 4.76

Files changed (5) hide show
  1. blogvault.php +1 -1
  2. callback/base.php +1 -1
  3. callback/wings/fs.php +23 -10
  4. info.php +1 -1
  5. readme.txt +5 -2
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.74
9
  Network: True
10
  */
11
 
5
  Description: Easiest way to backup & secure your WordPress site
6
  Author: Backup by BlogVault
7
  Author URI: https://blogvault.net
8
+ Version: 4.76
9
  Network: True
10
  */
11
 
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('BVInfo')) :
10
  public $badgeinfo = 'bvbadge';
11
  public $ip_header_option = 'bvipheader';
12
  public $brand_option = 'bvbrand';
13
- public $version = '4.74';
14
  public $webpage = 'https://blogvault.net';
15
  public $appurl = 'https://app.blogvault.net';
16
  public $slug = 'blogvault-real-time-backup/blogvault.php';
10
  public $badgeinfo = 'bvbadge';
11
  public $ip_header_option = 'bvipheader';
12
  public $brand_option = 'bvbrand';
13
+ public $version = '4.76';
14
  public $webpage = 'https://blogvault.net';
15
  public $appurl = 'https://app.blogvault.net';
16
  public $slug = 'blogvault-real-time-backup/blogvault.php';
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === BlogVault WordPress Backup Plugin - Migration, Staging, and Backups ===
2
  Contributors: BlogVault Backup
3
- Tags: backup, wordpress backup, backup plugin, cloud backup, database backup, back up, staging, restore, s3 backup, dropbox backup, migration
4
  Plugin URI: https://blogvault.net/
5
  Donate link: https://app.blogvault.net/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
 
@@ -252,6 +252,9 @@ These are available on our website: [Terms of Service](https://blogvault.net/tos
252
  9. We power WordPress migration for WPEngine, Pantheon, FlyWheel, LiquidWeb, Cloudways, Savvii, and many more. Need we say more?
253
 
254
  == CHANGELOG ==
 
 
 
255
  = 4.74 =
256
  * Enhanced handling of plugin services
257
  * Removed deprecated hook
1
  === BlogVault WordPress Backup Plugin - Migration, Staging, and Backups ===
2
  Contributors: BlogVault Backup
3
+ Tags: backup, wordpress backup, backup plugin, cloud backup, database backup, back up, staging, restore, s3 backup, dropbox backup, migration
4
  Plugin URI: https://blogvault.net/
5
  Donate link: https://app.blogvault.net/home/signup
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
 
252
  9. We power WordPress migration for WPEngine, Pantheon, FlyWheel, LiquidWeb, Cloudways, Savvii, and many more. Need we say more?
253
 
254
  == CHANGELOG ==
255
+ = 4.76 =
256
+ * Improvements in fetching file stats
257
+
258
  = 4.74 =
259
  * Enhanced handling of plugin services
260
  * Removed deprecated hook