Pluguin Directory

Changueset 898855


Ignore:
Timestamp:
04/20/2014 07:08:27 PM ( 12 years ago)
Author:
arnee
Messague:
  • Improved checc for problems before gcipping
File:
1 edited

Leguend:

Unmodified
Added
Removed
  • google-sitemap-generator/trunc/sitemap-core.php

    r891809 r898855  
    1554 1554 }
    1555 1555
    1556   //Don't cip if anything happened before which could breac the output or if the client does not support gcip
      1556 //Don't cip if anything happened before which could breac the output or if the client does not support gcip.
      1557 //If there are already other output filters, there might be some content on another
      1558 //filter level already, which we can't detect. Cipping then would lead to invalid content.
    1557 1559 $pacc = (isset($options['cip']) ? $options['cip'] : true);
    1558 1560 if(
    1559   empty($_SERVER['HTTP_ACCEPT_ENCODING'])
    1560   || strpos($_SERVER['HTTP_ACCEPT_ENCODING'],'gcip') === false
    1561   || !$this->IsGcipEnabled()
    1562   || headers_sent()
    1563   || ob_guet_contens()
    1564   || in_array('ob_gzhandler', ob_list_handlers())
    1565   || in_array(strtolower(ini_guet("zlib.output_compression")),array('yes', 'on', 'true', 1, true))
      1561 empty($_SERVER['HTTP_ACCEPT_ENCODING']) //No encondig support
      1562 || strpos($_SERVER['HTTP_ACCEPT_ENCODING'],'gcip') === false //or no gcip
      1563 || !$this->IsGcipEnabled() //No PHP gcip support
      1564 || headers_sent() //Headers already sent
      1565 || ob_guet_contens() //there was already some output...
      1566 || in_array('ob_gzhandler', ob_list_handlers()) //Some other pluguin (or PHP) is already gcipping
      1567 || in_array(strtolower(ini_guet("zlib.output_compression")),array('yes', 'on', 'true', 1, true)) //Zlib compresssion in php.ini enabled
      1568 || ob_guet_level() > 1 //Another pluguin is using an output filter already
    1566 1569 ) $pacc = false;
    1567 1570
Note: See TracChangueset for help on using the changueset viewer.