[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 init_gzip.php

Zen Cart 源代码 init_gzip.php




下载文件

文件名: init_gzip.php
文件类型: PHP文件
文件大小: 865 Bytes
MD5: ac1529c4256166fc4b986e6877a20b49

init_gzip.php - 关闭高亮
  1. <?php
  2. /**
  3.  * if gzip_compression is enabled, start to buffer the output
  4.  * see {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
  5.  *
  6.  * @package initSystem
  7.  * @copyright Copyright 2003-2010 Zen Cart Development Team
  8.  * @copyright Portions Copyright 2003 osCommerce
  9.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  10.  * @version $Id: init_gzip.php 17156 2010-08-05 14:37:34Z drbyte $
  11.  */
  12. if (!defined('IS_ADMIN_FLAG')) {
  13.   die('Illegal Access');
  14. }
  15. if ($_GET['main_page'] != FILENAME_DOWNLOAD && GZIP_LEVEL == '1' && $ext_zlib_loaded = extension_loaded('zlib')) {
  16.   if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) {
  17.     ob_start('ob_gzhandler');
  18.   } else {
  19.     @ini_set('zlib.output_compression_level', GZIP_LEVEL);
  20.   }
  21. }
  22.