summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-04-13 18:07:45 +0000
committerthomascube <thomas@roundcube.net>2006-04-13 18:07:45 +0000
commitc1ba9587b52e788f0e9468b77aff3b54e276a6d6 (patch)
tree5716864e7c98b6b0f773cab32956e58405da1676
parentbc8dc6573eac40065b115b36c5bcf7f5a0ff8cba (diff)
Added gzip compression support
-rw-r--r--index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 9bc0e63f1..0c98e8aca 100644
--- a/index.php
+++ b/index.php
@@ -42,7 +42,6 @@
define('RCMAIL_VERSION', '0.1-20060402');
-
// define global vars
$CHARSET = 'UTF-8';
$OUTPUT_TYPE = 'html';
@@ -82,6 +81,10 @@ require_once('PEAR.php');
// set PEAR error handling
// PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_NOTICE);
+// use gzip compression if supported
+if (function_exists('ob_gzhandler'))
+ ob_start('ob_gzhandler');
+
// catch some url/post parameters
$_auth = get_input_value('_auth', RCUBE_INPUT_GPC);