PluginProbe
The WP Remote WordPress Plugin / 6.76
The WP Remote WordPress Plugin v6.76
6.76 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 All 54 releases
← All changes | callback/wings/watch.php +9 -7 6.696.76 View file →
@@ -143,16 +143,16 @@
143 143
144 144 if (array_key_exists('lp', $params)) {
145 145 require_once dirname( __FILE__ ) . '/../../protect/lp.php';
146 146 $lp_params = $params['lp'];
147 - if (!isset($lp_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(WPRProtectLP_V669::TABLE_NAME))) {
147 + if (!isset($lp_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(WPRProtectLP_V676::TABLE_NAME))) {
148 148 $limit = intval($lp_params['limit']);
149 149 $filter = $lp_params['filter'];
150 150 $offset = isset($lp_params['offset']) ? intval($lp_params['offset']) : 0;
151 - $table = $db->getBVTable(WPRProtectLP_V669::TABLE_NAME);
151 + $table = $db->getBVTable(WPRProtectLP_V676::TABLE_NAME);
152 152 $resp["lplogs"] = $this->getOffsetResetInfo($lp_params, $offset, $table);
153 153 if (empty($resp["lplogs"])) {
154 - $db->deleteBVTableContent(WPRProtectLP_V669::TABLE_NAME, $lp_params['rmfilter']);
154 + $db->deleteBVTableContent(WPRProtectLP_V676::TABLE_NAME, $lp_params['rmfilter']);
155 155 $resp["lplogs"] = $this->getData($table, $limit, $filter);
156 156 }
157 157 } else {
158 158 $resp["lplogs"] = array("status" => "TABLE_NOT_PRESENT");
@@ -166,16 +166,16 @@
166 166
167 167 if (array_key_exists('fw', $params)) {
168 168 require_once dirname( __FILE__ ) . '/../../protect/fw.php';
169 169 $fw_params = $params['fw'];
170 - if (!isset($fw_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(WPRProtectFW_V669::TABLE_NAME))) {
170 + if (!isset($fw_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(WPRProtectFW_V676::TABLE_NAME))) {
171 171 $limit = intval($fw_params['limit']);
172 172 $filter = $fw_params['filter'];
173 173 $offset = isset($fw_params['offset']) ? intval($fw_params['offset']) : 0;
174 - $table = $db->getBVTable(WPRProtectFW_V669::TABLE_NAME);
174 + $table = $db->getBVTable(WPRProtectFW_V676::TABLE_NAME);
175 175 $resp["fwlogs"] = $this->getOffsetResetInfo($fw_params, $offset, $table);
176 176 if (empty($resp["fwlogs"])){
177 - $db->deleteBVTableContent(WPRProtectFW_V669::TABLE_NAME, $fw_params['rmfilter']);
177 + $db->deleteBVTableContent(WPRProtectFW_V676::TABLE_NAME, $fw_params['rmfilter']);
178 178 $resp["fwlogs"] = $this->getData($table, $limit, $filter);
179 179 }
180 180 } else {
181 181 $resp["fwlogs"] = array("status" => "TABLE_NOT_PRESENT");
@@ -214,9 +214,11 @@
214 214
215 215 if (array_key_exists('actlog', $params)) {
216 216 require_once dirname( __FILE__ ) . '/../../wp_actlog.php';
217 217 $actlog_params = $params['actlog'];
218 - if (!isset($actlog_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(BVWPActLog::$actlog_table))) {
218 + if (!is_array($actlog_params) || !isset($actlog_params['limit'], $actlog_params['filter'], $actlog_params['rmfilter'])) {
219 + $resp["actlogs"] = array("status" => "INVALID_PARAMETERS");
220 + } elseif (!isset($actlog_params['bv_check_table']) || $db->isTablePresent($db->getBVTable(BVWPActLog::$actlog_table))) {
219 221 $table = $db->getBVTable(BVWPActLog::$actlog_table);
220 222 $limit = intval($actlog_params['limit']);
221 223 $filter = $actlog_params['filter'];
222 224 $offset = isset($actlog_params['offset']) ? intval($actlog_params['offset']) : 0;