1

Topic: PUN_DISABLE_BUFFERING breaks html layout?

I've integrated punbb 1.2.14 with the overall page layout and noticed that admin_maintenance.php breaks the layout because of PUN_DISABLE_BUFFERING set to 1. Is this setting critical for the maintenance page?

Re: PUN_DISABLE_BUFFERING breaks html layout?

Could you give an example? I don't believe buffering should mess with the layout hmm

3

Re: PUN_DISABLE_BUFFERING breaks html layout?

Does PUN_DISABLE_BUFFERING have to be set to 1 for some reason?

Re: PUN_DISABLE_BUFFERING breaks html layout?

// Enable output buffering
if (!defined('PUN_DISABLE_BUFFERING'))
{
    // For some very odd reason, "Norton Internet Security" unsets this
    $_SERVER['HTTP_ACCEPT_ENCODING'] = isset($_SERVER['HTTP_ACCEPT_ENCODING']) ? $_SERVER['HTTP_ACCEPT_ENCODING'] : '';

    // Should we use gzip output compression?
    if ($pun_config['o_gzip'] && extension_loaded('zlib') && (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false || strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'deflate') !== false))
        ob_start('ob_gzhandler');
    else
        ob_start();
}

Nope