require_once 'content/api/util/util.php'; require_once 'content/api/main.php'; require_once 'content/api/tmpl/layout.php'; function compress_html($html) { preg_match_all('!(<(?:code|pre|script).*>[^<]+(?:code|pre|script)>)!',$html,$pre); $html = preg_replace('!<(?:code|pre).*>[^<]+(?:code|pre)>!', '#pre#', $html); $html = preg_replace('##', '', $html); $html = preg_replace('/[\r\n\t]+/', ' ', $html); $html = preg_replace('/>[\s]+', '><', $html); $html = preg_replace('/[\s]+/', ' ', $html); if (!empty($pre[0])) { foreach ($pre[0] as $tag) { $html = preg_replace('!#pre#!', $tag, $html,1); } } return $html; } ?>
printCeoTitle($glPageInfo); printCeoMeta($glPageInfo); // for cache control $tm = '24'; $updateCacheContent = TRUE; ?> printCeoLink($glPageInfo); ?> $cssArr = array('css/style.css'); for ($i = 0; $i < count($cssArr); $i++) { $cssContent = file_get_contents($cssArr[$i]); if ($cssContent) { echo ''; } } $tm = time(); ?> ob_start('compress_html'); ?>