1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Adjust check for php-enabled compression

This commit is contained in:
e107steved
2010-07-26 21:47:31 +00:00
parent 8bf0f68473
commit 7c42e8f136

View File

@@ -1,20 +1,16 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| Copyright (C) 2008-2009 e107 Inc (e107.org)
| http://e107.org
|
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $
| $Revision$
| $Date$
| $Author$
+----------------------------------------------------------------------------+
* e107 website system
*
* Copyright 2008-2010 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Default footer for user pages
*
* $URL$
* $Id$
*
*/
if (!defined('e107_INIT'))
{
@@ -297,11 +293,13 @@ header("Cache-Control: must-revalidate");
header("ETag: {$etag}");
$pref['compression_level'] = 6;
if (strstr(varset($_SERVER["HTTP_ACCEPT_ENCODING"], ""), "gzip"))
$browser_support = FALSE;
$server_support = FALSE;
if (strstr(varset($_SERVER['HTTP_ACCEPT_ENCODING'], ''), 'gzip'))
{
$browser_support = true;
}
if (ini_get("zlib.output_compression") == false && function_exists("gzencode"))
if(ini_get("zlib.output_compression") == '' && function_exists("gzencode"))
{
$server_support = true;
}