mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
Content-Disposition
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@227 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
header("Content-Type: text/plain; charset=utf-8");
|
header("Content-Type: text/plain; charset=utf-8");
|
||||||
|
$filename = (strlen($_GET["db"]) ? preg_replace('~[^a-z0-9_]~i', '-', (strlen($_GET["dump"]) ? $_GET["dump"] : $_GET["db"])) : "dump");
|
||||||
|
header("Content-Disposition: inline; filename=$filename.sql");
|
||||||
|
|
||||||
function dump_table($table, $data = true) {
|
function dump_table($table, $data = true) {
|
||||||
global $mysql;
|
global $mysql;
|
||||||
|
Reference in New Issue
Block a user