Added bzip support for dump files
This commit is contained in:
@@ -365,12 +365,25 @@ if ($num_tables > 0) {
|
||||
<input type="checkbox" name="asfile" value="sendit" onclick="return checkTransmitDump(this.form, 'transmit')" />
|
||||
<?php echo $strSend . "\n"; ?>
|
||||
<?php
|
||||
// gzip encode feature
|
||||
if (function_exists('gzencode')) {
|
||||
echo "\n";
|
||||
?>
|
||||
(<input type="checkbox" name="gzip" value="gzip" onclick="return checkTransmitDump(this.form, 'gzip')" /><?php echo $strGzip; ?>)
|
||||
<?php
|
||||
// gzip and bzip2 encode features
|
||||
if (PMA_INT_VERSION >= 40004) {
|
||||
$is_gzip = @function_exists('gzencode');
|
||||
$is_bzip = @function_exists('bzcompress');
|
||||
if ($is_gzip || $is_bzip) {
|
||||
echo "\n" . ' (';
|
||||
if ($is_gzip) {
|
||||
?>
|
||||
<input type="checkbox" name="gzip" value="gzip" onclick="return checkTransmitDump(this.form, 'gzip')" /><?php echo $strGzip . (($is_bzip) ? ' ' : '') . "\n"; ?>
|
||||
<?php
|
||||
}
|
||||
if ($is_bzip) {
|
||||
echo "\n"
|
||||
?>
|
||||
<input type="checkbox" name="bzip" value="bzip" onclick="return checkTransmitDump(this.form, 'bzip')" /><?php echo $strBzip . "\n"; ?>
|
||||
<?php
|
||||
}
|
||||
echo "\n" . ' )';
|
||||
}
|
||||
}
|
||||
echo "\n";
|
||||
?>
|
||||
|
Reference in New Issue
Block a user