b FajK;
织梦DedeCMS允许不同会员发布相同文章,不允许同一会员发布重复文章的方法: %c\kLSe
打开 /member/inc/archives_check.php 文件 [(3s5)O
找到 7mdd}L^h
Z
//检测文档是否重复 I_z(ft.
if($cfg_mb_cktitle=='Y') MomHSv Q\
{ 6uo;4}0
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' "); [H<TcT8
if(is_array($row)) /<8y>
{ Ws`ndR
ShowMsg("对不起,请不要发布重复文档!","-1","0",5000); hF0,{v
exit(); 1]~w?)..'
} "t.`/4R2w
} nDC0^&
将 9|}Pf_5]%[
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' "); %;dj6):@
修改为 eyyME c!
$row = $dsql->GetOne("Select * From `dede_archives` where title like '$title' and mid = '".$cfg_ml->M_ID."'");