方法一、修改您的首页生成HTML路径,注意相对路径的区别;
方法二、
改接口.找到etpost.php中以下代码.
if($cfg_makeindex=='是'){
$pv = new PartView();
$row = $pv->dsql->GetOne("Select * From #@__homepageset");
$templet = str_replace("{style}",$cfg_df_style,$row['templet']);
//$homeFile = dirname(__FILE__)."/".$row['position'];
$homeFile = dirname(__FILE__)."/../".$row['position'];
$homeFile = str_replace("\\","/",$homeFile);
$homeFile = str_replace("//","/",$homeFile);
$fp = fopen($homeFile,"w") or die("首页文件路径错误,无法创建文件");
fclose($fp);
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$templet);
$pv->SaveToHtml($homeFile);
$pv->Close();
}
$arc->Close();
return $reurl;
}
//------------------
//获得缩略图
//------------------
把
$homeFile = dirname(__FILE__)."/../".$row['position'];
改成
$homeFile = dirname(__FILE__)."/".$row['position'];
就解决了
|