1
0
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:
Jakub Vrana
2011-05-24 17:16:13 +02:00
parent d2c513d1c2
commit e641e5ceba
4 changed files with 43 additions and 7 deletions

View File

@@ -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