From: jakubvrana Date: Sun, 27 Sep 2009 07:27:16 +0000 (+0000) Subject: Declare support for adminer.sql.gz X-Git-Tag: v3.0.0~381 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=8625e91e732e82faaeb132ddb8bb6254f1a78c0c;p=adminer.git Declare support for adminer.sql.gz git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1153 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 5fdf40af..5047f6fe 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -140,7 +140,15 @@ if (!ini_get("file_uploads")) { -

adminer.sql'); ?> +

"zlib", "bz2" => "bzip2") as $key => $val) { + if (in_array("compress.$val", stream_get_wrappers())) { + $compress[] = ".$key"; + } +} +echo lang('Webserver file %s', "adminer.sql" . ($compress ? "[" . implode("|", $compress) . "]" : "") . ""); +?>