找到 /e/class/functions.php 文件
替换一下内容,替换前请记得备份
//替换关键字
function ReplaceKey($newstext,$classid=0){
global $empire,$dbtbpre,$public_r,$class_r;
if(empty($newstext)||$class_r[$classid]['keycid']==-1){return $newstext;}
$where='';
if(!empty($class_r[$classid]['keycid'])){$where=" where cid='".$class_r[$classid]['keycid']."'";}
$newstext=stripslashes($newstext);
preg_match_all('/<a[^>](.*)a>|<img[^>](.*)>|<pre[^>](.*)pre>|<h[^>](.*)h>|<video[^>](.*)video>|<dt[^>](.*)dt>|<th[^>](.*)th>|<script[^>](.*)script>||<em[^>](.*)em>|<strong[^>](.*)strong>|<i[^>](.*)i>|<font[^>](.*)font>|<form[^>](.*)form>/isU',stripslashes($newstext),$rs);
if($rs[0]){foreach($rs[0] as $k=>$v){$newstext=str_replace($v,"[!--{$k}--]",$newstext);}}
$sql=$empire->query("select keyname,keyurl from {$dbtbpre}enewskey".$where);
while($r=$empire->fetch($sql)){
if(STR_IREPLACE){
$newstext=empty($public_r[repkeynum])?str_ireplace($r[keyname],''.$r[keyname].'',$newstext):preg_replace('/'.$r[keyname].'(?!([^<]*>)|([^<]*<a="">))/i',''.$r[keyname].'',$newstext,$public_r[repkeynum]);
}else{
$newstext=empty($public_r[repkeynum])?str_replace($r[keyname],''.$r[keyname].'',$newstext):preg_replace('/'.$r[keyname].'(?!([^<]*>)|([^<]*<a="">))/i',''.$r[keyname].'',$newstext,$public_r[repkeynum]);
}
}
if($rs[0]){foreach($rs[0] as $k=>$v){$newstext=str_replace("[!--{$k}--]",$v,$newstext);}}
return $newstext;
}