From 22596a4ec09ac5666d27fa1a810c83d9e0dfe3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 4 Aug 2001 13:02:10 +0000 Subject: [PATCH] added two directives to disable the use of compression for dump files --- ChangeLog | 3 +++ Documentation.html | 10 ++++++++++ config.inc.php3 | 2 ++ db_details.php3 | 4 ++-- tbl_properties.php3 | 4 ++-- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e8f40d5b..b4b3e944e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ $Id$ $Source$ 2001-08-04 Loïc Chapeaux + * config.inc.php3, db_details.php3, Documentation.html, + tbl_properties.php3: added two directives to disable the use of + compression for dump files. * Documentation.html: fixed some typos thanks to Larry Meaney. * lang/chinese_big5.inc.php3: updated thanks to Taiyen Hung ¬x®õ¤¸. diff --git a/Documentation.html b/Documentation.html index 49c485df6..8ce73c84c 100755 --- a/Documentation.html +++ b/Documentation.html @@ -472,6 +472,16 @@

+
+ $cfgGZipDump boolean
+ $cfgBZipDump boolean +
+
+ Defines whether to allow the use of gzip/bzip compression when creating + a dump file or not. +

+
+
$cfgManualBase string
If set to an URL which points to the MySQL documentation, appropriate diff --git a/config.inc.php3 b/config.inc.php3 index ec7717f33..24a468d55 100755 --- a/config.inc.php3 +++ b/config.inc.php3 @@ -88,6 +88,8 @@ $cfgSkipLockedTables = FALSE; // mark used tables, make possible to show $cfgMaxRows = 30; $cfgOrder = 'ASC'; $cfgOBGzip = TRUE; // GZIP output buffering +$cfgGZipDump = TRUE; // Allow the use of gzip/bzip compression +$cfgBZipDump = TRUE; // for dump files /** diff --git a/db_details.php3 b/db_details.php3 index 3383ec605..92b6e7a40 100755 --- a/db_details.php3 +++ b/db_details.php3 @@ -443,8 +443,8 @@ if ($num_tables > 0) { = 40004) { - $is_gzip = @function_exists('gzencode'); - $is_bzip = @function_exists('bzcompress'); + $is_gzip = ($cfgGZipDump && @function_exists('gzencode')); + $is_bzip = ($cfgBZipDump && @function_exists('bzcompress')); if ($is_gzip || $is_bzip) { echo "\n" . ' ('; if ($is_gzip) { diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 947823c93..eac19175c 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -634,8 +634,8 @@ echo "\n"; = 40004) { - $is_gzip = @function_exists('gzencode'); - $is_bzip = @function_exists('bzcompress'); + $is_gzip = ($cfgGZipDump && @function_exists('gzencode')); + $is_bzip = ($cfgBZipDump && @function_exists('bzcompress')); if ($is_gzip || $is_bzip) { echo "\n" . ' (' . "\n"; if ($is_gzip) {