帝国CMS删除信息手机端不同步删除解决方法_帝国cms教程-大众资源网
我们在使用帝国CMS多终端同步插件的时候,后台删掉信息后手机端其实并没有同步删除,这也就是大众资源网近期才辨认出的BUG。
之前一直就可以手动回去手机端目录去一个个删掉,现在终于有时间化解了这个问题,方法如下:
修改步骤
打开文件e/class/functions.php,搜寻"function DelNewsFile",找到函数DelNewsFile,替换成以下代码:
function DelNewsFile($filename,$newspath,$classid,$newstext,$groupid=0){
global $class_r,$addgethtmlpath,$mob_r; include_once ECMS_PATH."e/dongpo/mob/config.php"; //文件类型
if($groupid)
{
$filetype=".php";
}
else
{
$filetype=$class_r[$classid][filetype];
}
//与否有日期目录
if(empty($newspath))
{
$mynewspath="";
}
else
{
$mynewspath=$newspath."/";
}
$iclasspath=ReturnSaveInfoPath($classid,$id);
$r=explode("