1、打開文件e/class/functions.php
2、找到以下函數
1 | function GetHtml( $classid , $id , $add , $ecms =0, $doall =0) |
3、在//寫文件之前添加代碼
preg_match_all('/(.*?)</pre>/s',$string,$r);foreach ($r[0] as $key => $value) { $string=str_replace($value, "[#]".$key."[#]", $string);}$string=preg_replace('[rn]', '',$string);$string=preg_replace('/>s+(.*?)<', $string);foreach ($r[0] as $key => $value) { $string=str_replace("[#]".$key."[#]",$value, $string);}//寫文件WriteFiletext($file,$addlevel.$string);
修改后再生成的內容頁就只有一行源碼了,效果圖
新聞熱點
疑難解答