1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Plugin for including date in export filename

This commit is contained in:
Jakub Vrana
2012-06-29 14:41:47 -07:00
parent f158d5e392
commit b78b0cd109
6 changed files with 40 additions and 7 deletions

View File

@@ -803,6 +803,10 @@ function search_tables() {
function dump_headers($identifier, $multi_table = false) {
global $adminer;
$return = $adminer->dumpHeaders($identifier, $multi_table);
$output = $_POST["output"];
if ($output != "text") {
header("Content-Disposition: attachment; filename=" . $adminer->dumpFilename($identifier) . ".$return" . ($output != "file" && !ereg('[^0-9a-z]', $output) ? ".$output" : ""));
}
session_write_close();
return $return;
}