includes/functions.php
changeset 373 5c6e09bc7d69
parent 372 5bd429428101
child 376 66732bd4532c
equal deleted inserted replaced
372:5bd429428101 373:5c6e09bc7d69
  2737   if ( $do_gzip && function_exists('ob_gzhandler') )
  2737   if ( $do_gzip && function_exists('ob_gzhandler') )
  2738   {
  2738   {
  2739     $gzip_contents = ob_get_contents();
  2739     $gzip_contents = ob_get_contents();
  2740     ob_end_clean();
  2740     ob_end_clean();
  2741     
  2741     
  2742     $return = ob_gzhandler($gzip_contents);
  2742     $return = @ob_gzhandler($gzip_contents);
  2743     if ( $return )
  2743     if ( $return )
  2744     {
  2744     {
  2745       header('Content-encoding: gzip');
  2745       header('Content-encoding: gzip');
  2746       echo $gzip_contents;
  2746       echo $gzip_contents;
  2747     }
  2747     }