找到
=============================
//解析代碼
function RepExeCode($string)
=============================
在這之前添加
//標簽替換4
function CustomNewsBq($name,$indextext){
global
$empire,$dbtbpre,$public_r,$emod_r,$class_r,$class_zr,$fun_r,$navclassid,$navinfor,$class_tr,$level_r,$etable_r;
$file=ECMS_PATH.’e/data/tmp/dt_temp’.$name.’.php’;
$indextext=stripSlashes($indextext);
$indextext=ReplaceTempvar($indextext);//替換全局模板變量
//替換標簽
$indextext=DoRepEcmsLoopBq($indextext);
$indextext=RepBq($indextext);
//寫文件
WriteFiletext($file,AddCheckViewTempCode().$indextext);
//讀取文件內容
ob_start();
include($file);
$string=ob_get_contents();
ob_end_clean();
$string=RepExeCode($string);//解析代碼
return $string;
}
找到
WriteFiletext($file1,AddCheckViewTempCode().$r[0]);
改為
$tmplist= CustomNewsBq (“cp0”,$r[0]);
WriteFiletext($file1,$tmplist);
找到
WriteFiletext($file2,AddCheckViewTempCode().$r[1]);
改為
$tmplist= CustomNewsBq (“cp1”,$r[1]);
WriteFiletext($file2,$tmplist);
?