先找到这三个文件
/member/article_add.php
/member/article_add_action.php
/member/archives_addcheck.php
1、把前两个文件里面的
注释掉下面的:
//CheckRank(0,0); |
2.、把/member/article_add_action.php里的
注释掉下面的:
//if($cInfos['sendrank'] > $cfg_ml->M_Type){ //$row = $dsql->GetOne("Select membername From dede_arcrank where rank='".$cInfos['sendran/k']."' "); //$dsql->Close(); //ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档!","-1","0",5000); //exit(); //} |
3、最后/member/archives_addcheck.php文件中 还有个等级验证
注释掉下面的:
//if($cInfos['sendrank'] > $cfg_ml->M_Type){ //$row = $dsql->GetOne("Select membername From dede_arcrank where rank='".$cInfos['sendrank']."' "); //$dsql->Close(); //ShowMsg("对不起,需要 [".$row['membername']."] 才能在这个频道发布文档!","-1","0",5000); //exit(); //} |
ok,游客可以投稿了。
游客上传附件
1、首先修改 include/dialoguser/config.php //检验用户登录状态
$cfg_ml = new MemberLogin(); /*if(!$cfg_ml->IsLogin()) { $gurl = $cfg_memberurl."/login.php?gourl=".urlencode($dedeNowurl); echo "<script language='javascript'>location='$gurl';</script>"; exit(); } */ |
2、include/inc_memberlogin.php
/*function CheckUserSpace($uid){ global $cfg_mb_max,$dsql; if(!is_object($dsql)) $dsql = new DedeSql(false); $hasuse = GetUserSpace($uid,$dsql); $maxSize = $cfg_mb_max * 1024 * 1024; if($hasuse >= $maxSize){ $dsql->Close(); ShowMsg('你的空间已满,不允许上传新文件!','-1'); exit(); } } */ |
3、include/FCKeditor/editor/dialog/imageuser.php
/*CheckUserSpace($cfg_ml->M_ID);*/ |
/*$savepath = $cfg_user_dir."/".$cfg_ml->M_ID;*/ |
注:仅供参考,考虑到安全问题,切忌后台系统参数限制除图片之外的附近上传权限!