}
/** Returns export format options
- * @return array
+ * @return array empty to disable export
*/
function dumpFormat() {
return array('sql' => 'SQL', 'csv' => 'CSV,', 'csv;' => 'CSV;', 'tsv' => 'TSV');
</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);
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)