- 积分
- 127886
- 在线时间
- 小时
- 注册时间
- 2010-9-23
- 最后登录
- 1970-1-1
|
X1.5保存草稿 也加分导致会员利用此漏洞刷分....
因为草稿贴在论坛不可见更可怕的是自己回复草稿贴也会加分......
版主和管理员只能眼睁睁看着他们刷....
在这里将本人的临时解决方案分享下.......解决方案是,加分前判断帖子的状态,如果是草稿贴,就不加分
需要修改两个文件- 1. \source\include\post\post_newthread.php (防止发帖时存草稿加分)
- 找到
- if($digest) {
- updatepostcredits('+', $_G['uid'], 'digest', $_G['fid']);
- }
- updatepostcredits('+', $_G['uid'], 'post', $_G['fid']);
- 替换为
- //存草稿不更新积分
- if ($displayorder != -4)
- {
- if($digest) {
- updatepostcredits('+', $_G['uid'], 'digest', $_G['fid']);
- }
- updatepostcredits('+', $_G['uid'], 'post', $_G['fid']);
- }
-
复制代码- 2. \source\include\post\post_newreply.php (防止回复草稿贴加分)
- 找到(有两处,需要全部修改)
- updatepostcredits('+', $_G['uid'], 'reply', $_G['fid']);
- 替换为
- if ($thread['displayorder'] != -4)
- {
- updatepostcredits('+', $_G['uid'], 'reply', $_G['fid']);
- }
复制代码 |
|