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