| @@ 100-106 (lines=7) @@ | ||
| 97 | if (!empty($modSettings['enableCompressedOutput']) && !headers_sent()) |
|
| 98 | { |
|
| 99 | // If zlib is being used, turn off output compression. |
|
| 100 | if (ini_get('zlib.output_compression') >= 1 || ini_get('output_handler') == 'ob_gzhandler') |
|
| 101 | $modSettings['enableCompressedOutput'] = '0'; |
|
| 102 | else |
|
| 103 | { |
|
| 104 | ob_end_clean(); |
|
| 105 | ob_start('ob_gzhandler'); |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | // Register an error handler. |
|
| @@ 40-43 (lines=4) @@ | ||
| 37 | // This is done to clear any output that was made before now. |
|
| 38 | if(!empty($modSettings['enableCompressedOutput']) && !headers_sent() && ob_get_length() == 0) |
|
| 39 | { |
|
| 40 | if(@ini_get('zlib.output_compression') == '1' || @ini_get('output_handler') == 'ob_gzhandler') |
|
| 41 | $modSettings['enableCompressedOutput'] = 0; |
|
| 42 | else |
|
| 43 | ob_start('ob_gzhandler'); |
|
| 44 | } |
|
| 45 | ||
| 46 | if(empty($modSettings['enableCompressedOutput'])) |
|