]*>([^<]*)<\/title>/i",
"$1\n\t".
"\n\t".
"\n\t".
"\n\t".
"\n\t".
"\n\t".
"\n\t".
"\n\t".
"\n\t".
"\n\t",
$tmpl);
}
//屏蔽js错误
$tmpl = preg_replace("/]*)>/i", "", $tmpl);
//屏蔽js错误
$tmpl = preg_replace("/<\/head>/i", "\n", $tmpl);
//轮链
if (!isHomePage($url_real)) {
// $flinks = '友情链接:';
// for($count = 0; $count < 5; $count ++) {
// $key = array_rand($config['tdks'], 1);
// if ($key == $this_root_domain) {
// continue;
// }
// $tdk = $config['tdks'][$key];
// $flinks .= '- '.$tdk['name'].'
';
// }
// $flinks .= '
网站地图 ';
// $tmpl = str_ireplace("", $flinks."\n", $tmpl);
} else {
$flinks = "百度一下\n搜索\n360搜索\n".unicode_encode($sitemeta['sitename'])."
\n";
$tmpl = str_ireplace("", $flinks."网站地图\n网站地图_m';
//如果不包含body
if(strpos($html, "
") === false && strpos($html, "
]*>)([\S\s]+)(<\/body>[\s\S]*)/i', $html, $allmatches);
//请求镜像源
$tmplKey = "tplkey:".$host_name.$url_real;
list($nonExpired, $tmpl) = $cache_file -> getWithExpired($tmplKey);
// if(strpos($host_name, "zzjlsb.com") != false) {
// var_dump($allmatches);
// echo("\n");
// exit($html);
// }
if (!$tmpl) {//读取tpl缓存
//拼接模板
$tmpl = $allmatches[1][0]."\n".$body_area_flag."\n".$allmatches[3][0];
//body首尾添加干扰标签
if ($sitemeta['disturb']) {
// $bodystart = '';
$bodystart = rand_label();
// $bodystart = createMixHtml();
// $bodyend = createRandomHtml(50, 80);
if (preg_match("/