TotalPage > 1) {
//用正则匹配把
分页符去掉
$this->Fields['body2'] = preg_replace('/# p#副
标题# e#/U','',$this->Fields['body2']);
$this->SplitFields = explode("#p2222#",$this->Fields['body2']);
$this->Fields['tmptitle'] = (emptyempty($this->Fields['tmptitle']) ? $this->Fields['title'] : $this->Fields['tmptitle']);
$this->Fields['title'] = $this->Fields['tmptitle'];
$this->TotalPage = count($this->SplitFields);
$this->Fields['totalpage'] = $this->TotalPage;
$TRUEfilenameall = $this->GetTruePath().$fileF
irst."_all.".$this->ShortName;
$this->ParseDMFields(1,0);
$this->dtp->Sav
eto($TRUEfilenameall);
if($cfg_remote_site=='Y' && $isremote == 1)
{
//分析远程
文件路径
$remotefile = str_replace(DEDEROOT,$TRUEfilename);
$localfile = '..'.$remotefile;
//创建远程
文件夹
$remotedir = preg_replace("#[^/]*.html#",$remotefile);
$this->ftp->rmkdir($remotedir);
$this->ftp->upload($localfile,$remotefile,'ascii');
}
}
//阅读全文结束