PluginProbe
The WP Remote WordPress Plugin / 5.88
The WP Remote WordPress Plugin v5.88
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 -2 4.875.88 View file →
@@ -7,12 +7,13 @@
7 7 class BVDBCallback extends BVCallbackBase {
8 8 public $db;
9 9 public $stream;
10 10 public $account;
11 + public $siteinfo;
11 12
12 13 public static $bvTables = array("fw_requests", "lp_requests", "ip_store");
13 14
14 - const DB_WING_VERSION = 1.2;
15 + const DB_WING_VERSION = 1.3;
15 16
16 17 public function __construct($callback_handler) {
17 18 $this->db = $callback_handler->db;
18 19 $this->account = $callback_handler->account;
@@ -105,9 +106,9 @@
105 106 }
106 107
107 108 $randomString = '';
108 109 for ($i = 0; $i < $bsize; $i++) {
109 - $randomString .= $characters[rand(0, $charactersLength - 1)];
110 + $randomString .= $characters[rand(0, $charactersLength - 1)]; // phpcs:ignore WordPress.WP.AlternativeFunctions.rand_rand
110 111 }
111 112
112 113 $this->stream->writeStream($randomString);
113 114 $totalSize -= $bsize;
@@ -137,8 +138,9 @@
137 138 $resp = array();
138 139 foreach($tables as $table) {
139 140 $tname = $table;
140 141 $resp[$tname] = array("description" => $this->db->describeTable($table));
142 + $resp[$tname]["primary_keys_index"] = $this->db->showTableIndex($table);
141 143 }
142 144 return $resp;
143 145 }
144 146
@@ -197,8 +199,9 @@
197 199 break;
198 200 case "describetable":
199 201 $table = $params['table'];
200 202 $resp = array("table_description" => $db->describeTable($table));
203 + $resp["primary_keys_index"] = $db->showTableIndex($table);
201 204 break;
202 205 case "checktable":
203 206 $table = $params['table'];
204 207 $type = $params['type'];