Dedecms允许不同会员发布相同文章,不允许同一会员发布重复文章的方法:
PHP 文件
GetOne("SELECT * FROM `dsfw_archives` WHERE title LIKE '$title' "); if(is_array($row)) { ShowMsg("对不起,请不要发布重复文档!","-1","0",5000); exit(); } }
GetOne("Select * From `dede_archives` where title like '$title' ");
修改为
GetOne("Select * From `dede_archives` where title like '$title' and mid = '".$cfg_ml->M_ID."'");