PluginProbe
The WP Remote WordPress Plugin / 4.79
The WP Remote WordPress Plugin v4.79
6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 5.73 All 53 releases
← All changes | callback/wings/watch.php +10 -23 5.094.79 View file →
@@ -6,9 +6,9 @@
6 6 class BVWatchCallback extends BVCallbackBase {
7 7 public $db;
8 8 public $settings;
9 9
10 - const WATCH_WING_VERSION = 1.1;
10 + const WATCH_WING_VERSION = 1.0;
11 11
12 12 public function __construct($callback_handler) {
13 13 $this->db = $callback_handler->db;
14 14 $this->settings = $callback_handler->settings;
@@ -93,10 +93,10 @@
93 93 if (array_key_exists('lp', $params)) {
94 94 require_once dirname( __FILE__ ) . '/../../protect/wp/lp/config.php';
95 95 $lp_params = $params['lp'];
96 96 if (!isset($lp_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(BVWPLPConfig::$requests_table))) {
97 - $limit = intval($lp_params['limit']);
98 - $filter = $lp_params['filter'];
97 + $limit = intval(urldecode($lp_params['limit']));
98 + $filter = urldecode($lp_params['filter']);
99 99 $db->deleteBVTableContent(BVWPLPConfig::$requests_table, $lp_params['rmfilter']);
100 100 $table = $db->getBVTable(BVWPLPConfig::$requests_table);
101 101 $resp["lplogs"] = $this->getData($table, $limit, $filter);
102 102 } else {
@@ -112,10 +112,10 @@
112 112 if (array_key_exists('fw', $params)) {
113 113 require_once dirname( __FILE__ ) . '/../../protect/fw/config.php';
114 114 $fw_params = $params['fw'];
115 115 if (!isset($fw_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(BVFWConfig::$requests_table))) {
116 - $limit = intval($fw_params['limit']);
117 - $filter = $fw_params['filter'];
116 + $limit = intval(urldecode($fw_params['limit']));
117 + $filter = urldecode($fw_params['filter']);
118 118 $db->deleteBVTableContent(BVFWConfig::$requests_table, $fw_params['rmfilter']);
119 119 $table = $db->getBVTable(BVFWConfig::$requests_table);
120 120 $resp["fwlogs"] = $this->getData($table, $limit, $filter);
121 121 } else {
@@ -127,10 +127,10 @@
127 127 require_once dirname( __FILE__ ) . '/../../wp_dynsync.php';
128 128 $isdynsyncactive = $settings->getOption('bvDynSyncActive');
129 129 if ($isdynsyncactive == 'yes') {
130 130 if (!isset($params['bv_check_table']) || $db->isTablePresent($db->getBVTable(BVWPDynSync::$dynsync_table))) {
131 - $limit = intval($params['limit']);
132 - $filter = $params['filter'];
131 + $limit = intval(urldecode($params['limit']));
132 + $filter = urldecode($params['filter']);
133 133 $this->deleteBvDynamicEvents($params['rmfilter']);
134 134 $table = $db->getBVTable(BVWPDynSync::$dynsync_table);
135 135 $data = $this->getData($table, $limit, $filter);
136 136 $resp['last_id'] = $data['last_id'];
@@ -144,10 +144,10 @@
144 144 if (array_key_exists('actlog', $params)) {
145 145 require_once dirname( __FILE__ ) . '/../../wp_actlog.php';
146 146 $actlog_params = $params['actlog'];
147 147 if (!isset($actlog_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(BVWPActLog::$actlog_table))) {
148 - $limit = intval($actlog_params['limit']);
149 - $filter = $actlog_params['filter'];
148 + $limit = intval(urldecode($actlog_params['limit']));
149 + $filter = urldecode($actlog_params['filter']);
150 150 $db->deleteBVTableContent(BVWPActLog::$actlog_table, $actlog_params['rmfilter']);
151 151 $table = $db->getBVTable(BVWPActLog::$actlog_table);
152 152 $resp["actlogs"] = $this->getData($table, $limit, $filter);
153 153 } else {
@@ -154,26 +154,13 @@
154 154 $resp["actlogs"] = array("status" => "TABLE_NOT_PRESENT");
155 155 }
156 156 }
157 157
158 - if (array_key_exists('airlift_stats', $params)) {
159 - $airlift_stats_table = "airlift_stats";
160 - $airlift_stats_params = $params['airlift_stats'];
161 - $table = $db->getBVTable($airlift_stats_table);
162 - if (!isset($airlift_stats_params['bv_check_table']) || $db->isTablePresent($table)) {
163 - $limit = intval($airlift_stats_params['limit']);
164 - $filter = $airlift_stats_params['filter'];
165 - $db->deleteBVTableContent($airlift_stats_table, $airlift_stats_params['rmfilter']);
166 - $resp["airlift_stats"] = $this->getData($table, $limit, $filter);
167 - } else {
168 - $resp["airlift_stats"] = array("status" => "TABLE_NOT_PRESENT");
169 - }
170 - }
171 158 $resp["status"] = "done";
172 159 break;
173 160 case "rmdata":
174 161 require_once dirname( __FILE__ ) . '/../../wp_dynsync.php';
175 - $filter = $params['filter'];
162 + $filter = urldecode($params['filter']);
176 163 $resp = array("status" => $this->deleteBvDynamicEvents($filter));
177 164 break;
178 165 default:
179 166 $resp = false;