[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * @package admin 4 * @copyright Copyright 2003-2006 Zen Cart Development Team 5 * @copyright Portions Copyright 2003 osCommerce 6 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 7 * @version $Id: init_gzip.php 3001 2006-02-09 21:45:06Z wilt $ 8 */ 9 if (!defined('IS_ADMIN_FLAG')) { 10 die('Illegal Access'); 11 } 12 // Used in the "Backup Manager" to compress backups 13 define('LOCAL_EXE_GZIP', '/usr/bin/gzip'); 14 define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip'); 15 define('LOCAL_EXE_ZIP', '/usr/local/bin/zip'); 16 define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip'); 17 18 // GZIP for Admin 19 // if gzip_compression is enabled, start to buffer the output 20 if ( (GZIP_LEVEL == '1') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) { 21 if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) { 22 if (PHP_VERSION >= '4.0.4') { 23 ob_start('ob_gzhandler'); 24 } else { 25 include(DIR_WS_FUNCTIONS . 'gzip_compression.php'); 26 ob_start(); 27 ob_implicit_flush(); 28 } 29 } else { 30 @ini_set('zlib.output_compression_level', GZIP_LEVEL); 31 } 32 } 33 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |