includes/clientside/jsres.php
changeset 1226 de56132c008d
parent 1136 8c664c96fccd
child 1227 bdac73ed481e
equal deleted inserted replaced
1225:4c6da61e613e 1226:de56132c008d
   103 require_once('includes/js-compressor.php');
   103 require_once('includes/js-compressor.php');
   104 
   104 
   105 // try to gzip the output
   105 // try to gzip the output
   106 if ( !defined('ENANO_JSRES_SETUP_ONLY') ):
   106 if ( !defined('ENANO_JSRES_SETUP_ONLY') ):
   107 $do_gzip = false;
   107 $do_gzip = false;
   108 if ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) )
   108 if ( isset($_SERVER['HTTP_ACCEPT_ENCODING']) && getConfig('gzip_output', false) == 1 )
   109 {
   109 {
   110   $acceptenc = str_replace(' ', '', strtolower($_SERVER['HTTP_ACCEPT_ENCODING']));
   110   $acceptenc = str_replace(' ', '', strtolower($_SERVER['HTTP_ACCEPT_ENCODING']));
   111   $acceptenc = explode(',', $acceptenc);
   111   $acceptenc = explode(',', $acceptenc);
   112   if ( in_array('gzip', $acceptenc) )
   112   if ( in_array('gzip', $acceptenc) )
   113   {
   113   {