mirror of
https://github.com/vrana/adminer.git
synced 2025-08-21 13:51:33 +02:00
Limit commands and import in customization (bug #3194432)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
// any method change in this file should be transferred to editor/include/adminer.inc.php and plugins/plugin.php
|
||||
|
||||
class Adminer {
|
||||
/** @var array operators used in select, null for all operators */
|
||||
var $operators;
|
||||
@@ -295,6 +297,20 @@ username.form['driver'].onchange();
|
||||
echo "</div></fieldset>\n";
|
||||
}
|
||||
|
||||
/** Print command box in select
|
||||
* @return bool whether to print default commands
|
||||
*/
|
||||
function selectCommandPrint() {
|
||||
return !information_schema(DB);
|
||||
}
|
||||
|
||||
/** Print import box in select
|
||||
* @return bool whether to print default import
|
||||
*/
|
||||
function selectImportPrint() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/** Print extra text in the end of a select form
|
||||
* @param array fields holding e-mails
|
||||
* @param array selectable columns
|
||||
|
Reference in New Issue
Block a user