doc) && isset($config->doc->$configSection)) { $docConfig = $config->doc->$configSection->toArray(); } else { $docConfig = $config->doc->default->toArray(); } $page = array_merge($page, $docConfig); $doc = new $handlerClass($page); $registry->set('doc', $doc); $doc->renderPageItems($items); $html = $doc->__toString(); $doc->sendHeaders(); $debugHtml = include('_lib/_sys/log.php'); if ($debugHtml) { $html = str_replace('', $debugHtml . '', $html); } if (Qs_Constant::get('COMPRESS_HTML')) { $html = Qs_Packer_Html::compressHtml($html, false); if (false !== strpos(Qs_Request::getHeader('ACCEPT-ENCODING'), 'gzip')) { header('Content-Encoding: gzip'); $html = gzencode($html, 9); } } echo $html;