Version Description
- Fixed account listing bug in wp-admin
- Handling Activity Log corner case error
Download this release
Release Info
Developer | ritesh.soni36 |
Plugin | WordPress Backup & Security Plugin – BlogVault |
Version | 4.56 |
Comparing to | |
See all releases |
Code changes from version 4.55 to 4.56
- admin/main_page.php +1 -1
- blogvault.php +1 -1
- callback/wings/watch.php +38 -24
- info.php +1 -1
- readme.txt +5 -1
- wp_actlog.php +4 -0
admin/main_page.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<?php require_once dirname( __FILE__ ) . "/top_box.php";?>
|
4 |
</div>
|
5 |
<div class="mui-container-fluid">
|
6 |
-
<?php $accounts = BVAccount::
|
7 |
<div class="mui-panel" style="width:800px; margin:0 auto;border:1px solid #CCC;">
|
8 |
<div class="mui--text-body1" style="text-align:center;font-size:18px;">Accounts associated with this website.</div><br/>
|
9 |
<table cellpadding="10" style="width:700px; margin:0 auto;border:1px solid black;">
|
3 |
<?php require_once dirname( __FILE__ ) . "/top_box.php";?>
|
4 |
</div>
|
5 |
<div class="mui-container-fluid">
|
6 |
+
<?php $accounts = BVAccount::accountsByPlugname($this->settings);?>
|
7 |
<div class="mui-panel" style="width:800px; margin:0 auto;border:1px solid #CCC;">
|
8 |
<div class="mui--text-body1" style="text-align:center;font-size:18px;">Accounts associated with this website.</div><br/>
|
9 |
<table cellpadding="10" style="width:700px; margin:0 auto;border:1px solid black;">
|
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.
|
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.56
|
9 |
Network: True
|
10 |
*/
|
11 |
|
callback/wings/watch.php
CHANGED
@@ -91,11 +91,15 @@ class BVWatchCallback extends BVCallbackBase {
|
|
91 |
if (array_key_exists('lp', $params)) {
|
92 |
require_once dirname( __FILE__ ) . '/../../protect/wp/lp/config.php';
|
93 |
$lp_params = $params['lp'];
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
|
101 |
if (array_key_exists('prelog', $params)) {
|
@@ -106,37 +110,47 @@ class BVWatchCallback extends BVCallbackBase {
|
|
106 |
if (array_key_exists('fw', $params)) {
|
107 |
require_once dirname( __FILE__ ) . '/../../protect/fw/config.php';
|
108 |
$fw_params = $params['fw'];
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
|
116 |
if (array_key_exists('dynevent', $params)) {
|
117 |
require_once dirname( __FILE__ ) . '/../../wp_dynsync.php';
|
118 |
$isdynsyncactive = $settings->getOption('bvDynSyncActive');
|
119 |
if ($isdynsyncactive == 'yes') {
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
129 |
}
|
130 |
}
|
131 |
|
132 |
if (array_key_exists('actlog', $params)) {
|
133 |
require_once dirname( __FILE__ ) . '/../../wp_actlog.php';
|
134 |
$actlog_params = $params['actlog'];
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
|
|
|
|
|
|
140 |
}
|
141 |
|
142 |
$resp["status"] = "done";
|
91 |
if (array_key_exists('lp', $params)) {
|
92 |
require_once dirname( __FILE__ ) . '/../../protect/wp/lp/config.php';
|
93 |
$lp_params = $params['lp'];
|
94 |
+
if (!$lp_params['check_table'] || $db->isTablePresent(BVWPLPConfig::$requests_table)) {
|
95 |
+
$limit = intval(urldecode($lp_params['limit']));
|
96 |
+
$filter = urldecode($lp_params['filter']);
|
97 |
+
$db->deleteBVTableContent(BVWPLPConfig::$requests_table, $lp_params['rmfilter']);
|
98 |
+
$table = $db->getBVTable(BVWPLPConfig::$requests_table);
|
99 |
+
$resp["lplogs"] = $this->getData($table, $limit, $filter);
|
100 |
+
} else {
|
101 |
+
$resp["lplogs"] = array("status" => "TABLE_NOT_PRESENT");
|
102 |
+
}
|
103 |
}
|
104 |
|
105 |
if (array_key_exists('prelog', $params)) {
|
110 |
if (array_key_exists('fw', $params)) {
|
111 |
require_once dirname( __FILE__ ) . '/../../protect/fw/config.php';
|
112 |
$fw_params = $params['fw'];
|
113 |
+
if (!$fw_params['check_table'] || $db->isTablePresent(BVFWConfig::$requests_table)) {
|
114 |
+
$limit = intval(urldecode($fw_params['limit']));
|
115 |
+
$filter = urldecode($fw_params['filter']);
|
116 |
+
$db->deleteBVTableContent(BVFWConfig::$requests_table, $fw_params['rmfilter']);
|
117 |
+
$table = $db->getBVTable(BVFWConfig::$requests_table);
|
118 |
+
$resp["fwlogs"] = $this->getData($table, $limit, $filter);
|
119 |
+
} else {
|
120 |
+
$resp["fwlogs"] = array("status" => "TABLE_NOT_PRESENT");
|
121 |
+
}
|
122 |
}
|
123 |
|
124 |
if (array_key_exists('dynevent', $params)) {
|
125 |
require_once dirname( __FILE__ ) . '/../../wp_dynsync.php';
|
126 |
$isdynsyncactive = $settings->getOption('bvDynSyncActive');
|
127 |
if ($isdynsyncactive == 'yes') {
|
128 |
+
if (!$params['check_table'] || $db->isTablePresent(BVWPDynSync::$dynsync_table)) {
|
129 |
+
$limit = intval(urldecode($params['limit']));
|
130 |
+
$filter = urldecode($params['filter']);
|
131 |
+
$this->deleteBvDynamicEvents($params['rmfilter']);
|
132 |
+
$table = $db->getBVTable(BVWPDynSync::$dynsync_table);
|
133 |
+
$data = $this->getData($table, $limit, $filter);
|
134 |
+
$resp['last_id'] = $data['last_id'];
|
135 |
+
$resp['events'] = $data['rows'];
|
136 |
+
$resp['timestamp'] = time();
|
137 |
+
$resp["status"] = true;
|
138 |
+
}
|
139 |
}
|
140 |
}
|
141 |
|
142 |
if (array_key_exists('actlog', $params)) {
|
143 |
require_once dirname( __FILE__ ) . '/../../wp_actlog.php';
|
144 |
$actlog_params = $params['actlog'];
|
145 |
+
if (!$actlog_params['check_table'] || $db->isTablePresent(BVWPActLog::$actlog_table)) {
|
146 |
+
$limit = intval(urldecode($actlog_params['limit']));
|
147 |
+
$filter = urldecode($actlog_params['filter']);
|
148 |
+
$db->deleteBVTableContent(BVWPActLog::$actlog_table, $actlog_params['rmfilter']);
|
149 |
+
$table = $db->getBVTable(BVWPActLog::$actlog_table);
|
150 |
+
$resp["actlogs"] = $this->getData($table, $limit, $filter);
|
151 |
+
} else {
|
152 |
+
$resp["actlogs"] = array("status" => "TABLE_NOT_PRESENT");
|
153 |
+
}
|
154 |
}
|
155 |
|
156 |
$resp["status"] = "done";
|
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.
|
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.56';
|
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
@@ -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.
|
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.55 =
|
251 |
* Activity Log for Woocommerce events
|
252 |
* Minor improvements in the Firewall
|
6 |
Requires at least: 4.0
|
7 |
Tested up to: 5.7
|
8 |
Requires PHP: 5.4.0
|
9 |
+
Stable tag: 4.56
|
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.56 =
|
251 |
+
* Fixed account listing bug in wp-admin
|
252 |
+
* Handling Activity Log corner case error
|
253 |
+
|
254 |
= 4.55 =
|
255 |
* Activity Log for Woocommerce events
|
256 |
* Minor improvements in the Firewall
|
wp_actlog.php
CHANGED
@@ -125,6 +125,10 @@ if (!class_exists('BVWPActLog')) :
|
|
125 |
}
|
126 |
|
127 |
function add_activity($event_data) {
|
|
|
|
|
|
|
|
|
128 |
$user = wp_get_current_user();
|
129 |
$values = array();
|
130 |
if (!empty($user)) {
|
125 |
}
|
126 |
|
127 |
function add_activity($event_data) {
|
128 |
+
if (!function_exists('wp_get_current_user')) {
|
129 |
+
@include_once(ABSPATH . "wp-includes/pluggable.php");
|
130 |
+
}
|
131 |
+
|
132 |
$user = wp_get_current_user();
|
133 |
$values = array();
|
134 |
if (!empty($user)) {
|