您的位置:首页 > 帝国cms教程

帝国CMS移动端同步生成插件的同步删除手机文件方法

2021-07-25 08:43:16 帝国cms教程 177

找到文件件e/class/functions.php,查找"function DelNewsFile",找到函数DelNewsFile,把开头和结尾中间部分替换成以下代码:

functionDelNewsFile($filename,$newspath,$classid,$newstext,$groupid=0){global$class_r,$addgethtmlpath,$mob_r;include_onceECMS_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("

相关推荐