找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2217|回复: 0
打印 上一主题 下一主题

蚂蚁信息分类系统mymps_1.6gbk 最新0day

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-4 16:13:21 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

. r0 P! |' T2 [6 ^0 {. {7 k' p出现在评论处,小问题。放出来怕笑话呢。。
$ r6 G. C; |+ @; |01 }elseif($do == 'view'){
# i( A% u0 t/ r2 o# y3 C02 % U- ]; g0 b6 C" K* A/ E* q& _
03        require_once(dirname(__FILE__)."/global.php");9 M  W7 g& w4 d0 P5 f6 E% q$ r
04        require_once(MYMPS_INC."/member.class.php");' ]7 ?2 h5 U/ C) r# L- J
05        require_once(MYMPS_INC."/ip.class.php");
* V! }- Y9 N0 A5 a06
# W9 n! _" a8 C5 L07        if(!empty($part)&&$action == 'write'){5 X, P' }$ r2 ]/ \
08                if(if_other_site_post()){
: u" p; _2 W; G: ^& M/ t" R# P09                        $msgs[]="请不要尝试从站外提交数据!";  F- G9 I: `; D2 x' ^1 n% F& a
10                        show_msg($msgs);
9 I3 r7 \% d6 T- d11                        exit();. D6 c7 L, i' n6 K8 R4 }
12                }, S( O$ J4 @4 d6 L4 _
13
! d* [# p9 _# N14 9 d, t$ ~: ?" t& C! v+ |# w
15                //mymps_chk_randcode();
3 W4 B! M& c$ T- Q16
$ d  q. i* i. G2 d8 y1 P17                $content = $_POST[content];
* W" Q  i4 T4 q% j" w& ]18                if(empty($content)){write_msg("请填写评论内容!");exit();}
) |( z# r% Q' S0 R) Z19                if(strlen($content)>255){write_msg("请不要填写超过127个汉字!");exit();}
6 j( m# J- S3 ?20                $result                 = verify_badwords_filter($mymps_global[cfg_if_comment_verify],'',$_POST[content]);5 l: t" B/ g3 o; F4 ?
21                $content                 = textarea_post_change($result[content]);9 G. d9 b# g4 J$ `
22                $comment_level  = $result[level];
& z/ J- }6 u; L  c7 {2 w8 E23                $userid                        = $_GET['userid'];4 e* ?1 g, V4 z- B! Z% Q" ^
24
, P7 e5 W1 o+ C5 J, T' L4 C25
6 e  O( M4 e1 W6 ~. `4 G3 K6 Y
8 P7 G# ~0 _" |" `, y26                $db->query("INSERT INTO `{$db_mymps}".$part."_comment` (".$part."id,content,pubtime,ip,comment_level,userid)VALUES('$id','$content','".time()."','".GetIP()."','$comment_level','".$_POST[userid]."')");
* A4 s% @. U% e% r27                echo "INSERT INTO `{$db_mymps}".$part."_comment` (".$part."id,content,pubtime,ip,comment_level,userid)VALUES('$id','$content','".time()."','".GetIP()."','$comment_level','".$_POST[userid]."')";//userid和getip都没处理好。出现问题了。
' P6 q) C9 @% ?; V, g! v28                if($comment_level == '1'){4 ~. `9 I& N9 A% t! \; q. n) Z
29                        write_msg("您的评论提交成功!","?part=".$part."&id=".$id);
; T0 G$ E4 }5 E( A& N- n3 I( W- z30                }
) j8 S4 Z8 B, r- V2 G  w31                else{
$ ]! @" o* _7 {# K% D* G! J32                        write_msg("您提交的留言可能含有违禁词语,审核通过后显示!","?part=".$part."&id=".$id);5 |9 r: |" u9 U2 Y& I. K- ?7 K0 |1 `
33                }; B% g, G0 C1 U/ F6 C+ v! s0 W
34                exit();! `( _: w. i8 Y
35        }
8 k" V) t" \) z  `, U- }结果出现问题了,' V6 j9 d  e* q: ^, A7 S! w, f8 N

( k0 f1 W0 M0 b7 S8 g4 ]' \1 Z/ m6 E5 T接下来就是
4 c( Y; D! N: M) F" |  B  ^( k% Q- |
直接爆出管理员账号加MD5…, V% _& C$ s1 i6 f2 \
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表