Declare support for adminer.sql.gz
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1153 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
c6d0802d42
commit
8625e91e73
|
@ -140,7 +140,15 @@ if (!ini_get("file_uploads")) {
|
||||||
<input type="submit" name="file" value="<?php echo lang('Run file'); ?>">
|
<input type="submit" name="file" value="<?php echo lang('Run file'); ?>">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<p><?php echo lang('Webserver file %s', '<code>adminer.sql</code>'); ?> <input type="submit" name="webfile" value="<?php echo lang('Run file'); ?>">
|
<p><?php
|
||||||
|
$compress = array();
|
||||||
|
foreach (array("gz" => "zlib", "bz2" => "bzip2") as $key => $val) {
|
||||||
|
if (in_array("compress.$val", stream_get_wrappers())) {
|
||||||
|
$compress[] = ".$key";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
echo lang('Webserver file %s', "<code>adminer.sql" . ($compress ? "[" . implode("|", $compress) . "]" : "") . "</code>");
|
||||||
|
?> <input type="submit" name="webfile" value="<?php echo lang('Run file'); ?>">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if ($history) {
|
if ($history) {
|
||||||
|
|
Loading…
Reference in a new issue