Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 7815802

Browse files
committed
new: adminer 4.3.1
1 parent e6f8651 commit 7815802

File tree

5 files changed

+149
-51
lines changed

5 files changed

+149
-51
lines changed

media/adminer.php

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

media/loader.php

100644100755
File mode changed.

media/plugins/joomla.php

100644100755
File mode changed.

media/plugins/plugin.php

100644100755
Lines changed: 67 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<?php
22

33
/** Adminer customization allowing usage of plugins
4-
* @link http://www.adminer.org/plugins/#use
5-
* @author Jakub Vrana, http://www.vrana.cz/
4+
* @link https://www.adminer.org/plugins/#use
5+
* @author Jakub Vrana, https://www.vrana.cz/
66
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
77
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
88
*/
9-
10-
defined('_JEXEC') or die;
11-
129
class AdminerPlugin extends Adminer
1310
{
1411
/** @access protected */
@@ -25,7 +22,7 @@ function _findRootClass($class)
2522
/** Register plugins
2623
* @param array object instances or null to register all classes starting by 'Adminer'
2724
*/
28-
function AdminerPlugin($plugins)
25+
function __construct($plugins)
2926
{
3027
if ($plugins === null) {
3128
$plugins = array();
@@ -106,7 +103,7 @@ function dumpOutput()
106103
return $this->_appendPlugin(__FUNCTION__, $args);
107104
}
108105

109-
function editFunctions()
106+
function editFunctions($field)
110107
{
111108
$args = func_get_args();
112109
return $this->_appendPlugin(__FUNCTION__, $args);
@@ -126,7 +123,7 @@ function credentials()
126123
return $this->_applyPlugin(__FUNCTION__, $args);
127124
}
128125

129-
function permanentLogin()
126+
function permanentLogin($create = false)
130127
{
131128
$args = func_get_args();
132129
return $this->_applyPlugin(__FUNCTION__, $args);
@@ -138,7 +135,13 @@ function database()
138135
return $this->_applyPlugin(__FUNCTION__, $args);
139136
}
140137

141-
function databases()
138+
function schemas()
139+
{
140+
$args = func_get_args();
141+
return $this->_applyPlugin(__FUNCTION__, $args);
142+
}
143+
144+
function databases($flush = true)
142145
{
143146
$args = func_get_args();
144147
return $this->_applyPlugin(__FUNCTION__, $args);
@@ -168,115 +171,133 @@ function loginForm()
168171
return $this->_applyPlugin(__FUNCTION__, $args);
169172
}
170173

171-
function login()
174+
function login($login, $password)
175+
{
176+
$args = func_get_args();
177+
return $this->_applyPlugin(__FUNCTION__, $args);
178+
}
179+
180+
function tableName($tableStatus)
181+
{
182+
$args = func_get_args();
183+
return $this->_applyPlugin(__FUNCTION__, $args);
184+
}
185+
186+
function fieldName($field, $order = 0)
187+
{
188+
$args = func_get_args();
189+
return $this->_applyPlugin(__FUNCTION__, $args);
190+
}
191+
192+
function selectLinks($tableStatus, $set = "")
172193
{
173194
$args = func_get_args();
174195
return $this->_applyPlugin(__FUNCTION__, $args);
175196
}
176197

177-
function tableName()
198+
function foreignKeys($table)
178199
{
179200
$args = func_get_args();
180201
return $this->_applyPlugin(__FUNCTION__, $args);
181202
}
182203

183-
function fieldName()
204+
function backwardKeys($table, $tableName)
184205
{
185206
$args = func_get_args();
186207
return $this->_applyPlugin(__FUNCTION__, $args);
187208
}
188209

189-
function selectLinks()
210+
function backwardKeysPrint($backwardKeys, $row)
190211
{
191212
$args = func_get_args();
192213
return $this->_applyPlugin(__FUNCTION__, $args);
193214
}
194215

195-
function foreignKeys()
216+
function selectQuery($query, $time)
196217
{
197218
$args = func_get_args();
198219
return $this->_applyPlugin(__FUNCTION__, $args);
199220
}
200221

201-
function backwardKeys()
222+
function sqlCommandQuery($query)
202223
{
203224
$args = func_get_args();
204225
return $this->_applyPlugin(__FUNCTION__, $args);
205226
}
206227

207-
function backwardKeysPrint()
228+
function rowDescription($table)
208229
{
209230
$args = func_get_args();
210231
return $this->_applyPlugin(__FUNCTION__, $args);
211232
}
212233

213-
function selectQuery()
234+
function rowDescriptions($rows, $foreignKeys)
214235
{
215236
$args = func_get_args();
216237
return $this->_applyPlugin(__FUNCTION__, $args);
217238
}
218239

219-
function rowDescription()
240+
function selectLink($val, $field)
220241
{
221242
$args = func_get_args();
222243
return $this->_applyPlugin(__FUNCTION__, $args);
223244
}
224245

225-
function rowDescriptions()
246+
function selectVal($val, $link, $field, $original)
226247
{
227248
$args = func_get_args();
228249
return $this->_applyPlugin(__FUNCTION__, $args);
229250
}
230251

231-
function selectLink()
252+
function editVal($val, $field)
232253
{
233254
$args = func_get_args();
234255
return $this->_applyPlugin(__FUNCTION__, $args);
235256
}
236257

237-
function selectVal()
258+
function tableStructurePrint($fields)
238259
{
239260
$args = func_get_args();
240261
return $this->_applyPlugin(__FUNCTION__, $args);
241262
}
242263

243-
function editVal()
264+
function tableIndexesPrint($indexes)
244265
{
245266
$args = func_get_args();
246267
return $this->_applyPlugin(__FUNCTION__, $args);
247268
}
248269

249-
function selectColumnsPrint()
270+
function selectColumnsPrint($select, $columns)
250271
{
251272
$args = func_get_args();
252273
return $this->_applyPlugin(__FUNCTION__, $args);
253274
}
254275

255-
function selectSearchPrint()
276+
function selectSearchPrint($where, $columns, $indexes)
256277
{
257278
$args = func_get_args();
258279
return $this->_applyPlugin(__FUNCTION__, $args);
259280
}
260281

261-
function selectOrderPrint()
282+
function selectOrderPrint($order, $columns, $indexes)
262283
{
263284
$args = func_get_args();
264285
return $this->_applyPlugin(__FUNCTION__, $args);
265286
}
266287

267-
function selectLimitPrint()
288+
function selectLimitPrint($limit)
268289
{
269290
$args = func_get_args();
270291
return $this->_applyPlugin(__FUNCTION__, $args);
271292
}
272293

273-
function selectLengthPrint()
294+
function selectLengthPrint($text_length)
274295
{
275296
$args = func_get_args();
276297
return $this->_applyPlugin(__FUNCTION__, $args);
277298
}
278299

279-
function selectActionPrint()
300+
function selectActionPrint($indexes)
280301
{
281302
$args = func_get_args();
282303
return $this->_applyPlugin(__FUNCTION__, $args);
@@ -294,25 +315,25 @@ function selectImportPrint()
294315
return $this->_applyPlugin(__FUNCTION__, $args);
295316
}
296317

297-
function selectEmailPrint()
318+
function selectEmailPrint($emailFields, $columns)
298319
{
299320
$args = func_get_args();
300321
return $this->_applyPlugin(__FUNCTION__, $args);
301322
}
302323

303-
function selectColumnsProcess()
324+
function selectColumnsProcess($columns, $indexes)
304325
{
305326
$args = func_get_args();
306327
return $this->_applyPlugin(__FUNCTION__, $args);
307328
}
308329

309-
function selectSearchProcess()
330+
function selectSearchProcess($fields, $indexes)
310331
{
311332
$args = func_get_args();
312333
return $this->_applyPlugin(__FUNCTION__, $args);
313334
}
314335

315-
function selectOrderProcess()
336+
function selectOrderProcess($fields, $indexes)
316337
{
317338
$args = func_get_args();
318339
return $this->_applyPlugin(__FUNCTION__, $args);
@@ -330,61 +351,61 @@ function selectLengthProcess()
330351
return $this->_applyPlugin(__FUNCTION__, $args);
331352
}
332353

333-
function selectEmailProcess()
354+
function selectEmailProcess($where, $foreignKeys)
334355
{
335356
$args = func_get_args();
336357
return $this->_applyPlugin(__FUNCTION__, $args);
337358
}
338359

339-
function selectQueryBuild()
360+
function selectQueryBuild($select, $where, $group, $order, $limit, $page)
340361
{
341362
$args = func_get_args();
342363
return $this->_applyPlugin(__FUNCTION__, $args);
343364
}
344365

345-
function messageQuery()
366+
function messageQuery($query, $time)
346367
{
347368
$args = func_get_args();
348369
return $this->_applyPlugin(__FUNCTION__, $args);
349370
}
350371

351-
function editInput()
372+
function editInput($table, $field, $attrs, $value)
352373
{
353374
$args = func_get_args();
354375
return $this->_applyPlugin(__FUNCTION__, $args);
355376
}
356377

357-
function processInput()
378+
function processInput($field, $value, $function = "")
358379
{
359380
$args = func_get_args();
360381
return $this->_applyPlugin(__FUNCTION__, $args);
361382
}
362383

363-
function dumpDatabase()
384+
function dumpDatabase($db)
364385
{
365386
$args = func_get_args();
366387
return $this->_applyPlugin(__FUNCTION__, $args);
367388
}
368389

369-
function dumpTable()
390+
function dumpTable($table, $style, $is_view = 0)
370391
{
371392
$args = func_get_args();
372393
return $this->_applyPlugin(__FUNCTION__, $args);
373394
}
374395

375-
function dumpData()
396+
function dumpData($table, $style, $query)
376397
{
377398
$args = func_get_args();
378399
return $this->_applyPlugin(__FUNCTION__, $args);
379400
}
380401

381-
function dumpFilename()
402+
function dumpFilename($identifier)
382403
{
383404
$args = func_get_args();
384405
return $this->_applyPlugin(__FUNCTION__, $args);
385406
}
386407

387-
function dumpHeaders()
408+
function dumpHeaders($identifier, $multi_table = false)
388409
{
389410
$args = func_get_args();
390411
return $this->_applyPlugin(__FUNCTION__, $args);
@@ -396,22 +417,22 @@ function homepage()
396417
return $this->_applyPlugin(__FUNCTION__, $args);
397418
}
398419

399-
function navigation()
420+
function navigation($missing)
400421
{
401422
$args = func_get_args();
402423
return $this->_applyPlugin(__FUNCTION__, $args);
403424
}
404425

405-
function databasesPrint()
426+
function databasesPrint($missing)
406427
{
407428
$args = func_get_args();
408429
return $this->_applyPlugin(__FUNCTION__, $args);
409430
}
410431

411-
function tablesPrint()
432+
function tablesPrint($tables)
412433
{
413434
$args = func_get_args();
414435
return $this->_applyPlugin(__FUNCTION__, $args);
415436
}
416437

417-
}
438+
}

0 commit comments

Comments
 (0)