1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Customizable export filename

This commit is contained in:
Jakub Vrana
2012-06-29 12:25:05 -07:00
parent 0d5543c9ac
commit 5b57706890
4 changed files with 5 additions and 4 deletions

View File

@@ -508,6 +508,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
function dumpHeaders($identifier, $multi_table = false) {
$ext = "csv";
header("Content-Type: text/csv; charset=utf-8");
header("Content-Disposition: attachment; filename=" . friendly_url($identifier) . ".$ext");
return $ext;
}