1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +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:
jakubvrana
2007-07-20 17:22:24 +00:00
parent 038e688ec9
commit b3c372768f

View File

@@ -1,5 +1,7 @@
<?php
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) {
global $mysql;