mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 19:00:26 +02:00
Bug #2354 - fix for gzip compression issues.
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/footer.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/footer.php,v $
|
||||||
| $Revision: 1.3 $
|
| $Revision: 1.4 $
|
||||||
| $Date: 2006-12-07 12:59:43 $
|
| $Date: 2006-12-09 06:53:05 $
|
||||||
| $Author: mrpete $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -230,8 +230,8 @@ $etag = md5($page);
|
|||||||
header("Cache-Control: must-revalidate");
|
header("Cache-Control: must-revalidate");
|
||||||
header("ETag: {$etag}");
|
header("ETag: {$etag}");
|
||||||
|
|
||||||
$pref['compression_level'] == 6;
|
$pref['compression_level'] = 6;
|
||||||
if(strstr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") || strstr($_SERVER['HTTP_USER_AGENT'], "Mozilla")) {
|
if(isset($_SERVER["HTTP_ACCEPT_ENCODING"]) && strstr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")) {
|
||||||
$browser_support = true;
|
$browser_support = true;
|
||||||
}
|
}
|
||||||
if(ini_get("zlib.output_compression") == false && function_exists("gzencode")) {
|
if(ini_get("zlib.output_compression") == false && function_exists("gzencode")) {
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $
|
||||||
| $Revision: 1.3 $
|
| $Revision: 1.4 $
|
||||||
| $Date: 2006-12-07 12:53:49 $
|
| $Date: 2006-12-09 06:53:06 $
|
||||||
| $Author: mrpete $
|
| $Author: e107coders $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
@@ -209,8 +209,8 @@ $etag = md5($page);
|
|||||||
header("Cache-Control: must-revalidate");
|
header("Cache-Control: must-revalidate");
|
||||||
header("ETag: {$etag}");
|
header("ETag: {$etag}");
|
||||||
|
|
||||||
$pref['compression_level'] == 6;
|
$pref['compression_level'] = 6;
|
||||||
if(strstr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip") || strstr($_SERVER['HTTP_USER_AGENT'], "Mozilla")) {
|
if(isset($_SERVER["HTTP_ACCEPT_ENCODING"]) && strstr($_SERVER["HTTP_ACCEPT_ENCODING"], "gzip")) {
|
||||||
$browser_support = true;
|
$browser_support = true;
|
||||||
}
|
}
|
||||||
if(ini_get("zlib.output_compression") == false && function_exists("gzencode")) {
|
if(ini_get("zlib.output_compression") == false && function_exists("gzencode")) {
|
||||||
|
Reference in New Issue
Block a user