Ability to disable export
This commit is contained in:
parent
543e172513
commit
1e70b74f4c
|
@ -523,7 +523,7 @@ username.form['driver'].onchange();
|
|||
}
|
||||
|
||||
/** Returns export format options
|
||||
* @return array
|
||||
* @return array empty to disable export
|
||||
*/
|
||||
function dumpFormat() {
|
||||
return array('sql' => 'SQL', 'csv' => 'CSV,', 'csv;' => 'CSV;', 'tsv' => 'TSV');
|
||||
|
|
|
@ -407,12 +407,15 @@ if (!$columns) {
|
|||
</div></fieldset>
|
||||
<?php
|
||||
}
|
||||
print_fieldset("export", lang('Export'));
|
||||
$output = $adminer->dumpOutput();
|
||||
echo ($output ? html_select("output", $output, $adminer_import["output"]) . " " : "");
|
||||
echo html_select("format", $adminer->dumpFormat(), $adminer_import["format"]);
|
||||
echo " <input type='submit' name='export' value='" . lang('Export') . "' onclick='eventStop(event);'>\n";
|
||||
echo "</div></fieldset>\n";
|
||||
$format = $adminer->dumpFormat();
|
||||
if ($format) {
|
||||
print_fieldset("export", lang('Export'));
|
||||
$output = $adminer->dumpOutput();
|
||||
echo ($output ? html_select("output", $output, $adminer_import["output"]) . " " : "");
|
||||
echo html_select("format", $format, $adminer_import["format"]);
|
||||
echo " <input type='submit' name='export' value='" . lang('Export') . "' onclick='eventStop(event);'>\n";
|
||||
echo "</div></fieldset>\n";
|
||||
}
|
||||
}
|
||||
if ($adminer->selectImportPrint()) {
|
||||
print_fieldset("import", lang('Import'), !$rows);
|
||||
|
|
|
@ -6,6 +6,7 @@ SET DEFAULT foreign key action
|
|||
Trim table and column names (bug #3405309)
|
||||
Error message with no response from server in AJAX
|
||||
Esc to cancel AJAX request
|
||||
Ability to disable export (customization)
|
||||
MySQL: set autocommit after connect
|
||||
PostgreSQL: fix alter foreign key
|
||||
PostgreSQL over PDO: connect if the eponymous database does not exist (bug #3391619)
|
||||
|
|
Loading…
Reference in a new issue