PluginProbe
The WP Remote WordPress Plugin / 4.86
The WP Remote WordPress Plugin v4.86
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/db.php +5 -8 6.484.86 View file →
@@ -1,19 +1,18 @@
1 1 <?php
2 2
3 3 if (!defined('ABSPATH')) exit;
4 -if (!class_exists('WPRDBCallback')) :
4 +if (!class_exists('BVDBCallback')) :
5 5 require_once dirname( __FILE__ ) . '/../streams.php';
6 6
7 -class WPRDBCallback extends WPRCallbackBase {
7 +class BVDBCallback extends BVCallbackBase {
8 8 public $db;
9 9 public $stream;
10 10 public $account;
11 - public $siteinfo;
12 11
13 12 public static $bvTables = array("fw_requests", "lp_requests", "ip_store");
14 13
15 - const DB_WING_VERSION = 1.3;
14 + const DB_WING_VERSION = 1.2;
16 15
17 16 public function __construct($callback_handler) {
18 17 $this->db = $callback_handler->db;
19 18 $this->account = $callback_handler->account;
@@ -106,9 +105,9 @@
106 105 }
107 106
108 107 $randomString = '';
109 108 for ($i = 0; $i < $bsize; $i++) {
110 - $randomString .= $characters[rand(0, $charactersLength - 1)]; // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_rand
109 + $randomString .= $characters[rand(0, $charactersLength - 1)];
111 110 }
112 111
113 112 $this->stream->writeStream($randomString);
114 113 $totalSize -= $bsize;
@@ -138,9 +137,8 @@
138 137 $resp = array();
139 138 foreach($tables as $table) {
140 139 $tname = $table;
141 140 $resp[$tname] = array("description" => $this->db->describeTable($table));
142 - $resp[$tname]["primary_keys_index"] = $this->db->showTableIndex($table);
143 141 }
144 142 return $resp;
145 143 }
146 144
@@ -181,9 +179,9 @@
181 179
182 180 public function process($request) {
183 181 $db = $this->db;
184 182 $params = $request->params;
185 - $stream_init_info = WPRStream::startStream($this->account, $request);
183 + $stream_init_info = BVStream::startStream($this->account, $request);
186 184
187 185 if (array_key_exists('stream', $stream_init_info)) {
188 186 $this->stream = $stream_init_info['stream'];
189 187 switch ($request->method) {
@@ -199,9 +197,8 @@
199 197 break;
200 198 case "describetable":
201 199 $table = $params['table'];
202 200 $resp = array("table_description" => $db->describeTable($table));
203 - $resp["primary_keys_index"] = $db->showTableIndex($table);
204 201 break;
205 202 case "checktable":
206 203 $table = $params['table'];
207 204 $type = $params['type'];