Empire ECMS line of code generated as static / static pages disrupted Tutorial

A page of content into modified line
1, to open the file E / class / the functions.php
2, locate the following function

function GetHtml($classid,$id,$add,$ecms=0,$doall=0)

3, // add code before writing files

/ * A product technology - replaces line with large spaces * / 
preg_match_all ( ' / 
.? (*) <\ / Pre> / S ', $ String , $ R & lt );
 the foreach ( $ R & lt [0] AS  $ Key => $ value ) {
     $ String = str_replace ( $ value ., "[#]" $ Key "[#]",. $ String ); 
} 
$ String = preg_replace ( '[\ R & lt \ n-]', '', $ String );
 $ String = preg_replace ( '/> \ S + (*.?) <', $ String );
foreach ($r[0] as $key => $value) {
    $string=str_replace("[#]".$key."[#]",$value, $string);
}
//写文件
WriteFiletext($file,$addlevel.$string);

 

Guess you like

Origin www.cnblogs.com/yuesha/p/11067910.html