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

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

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

$ a1 K2 R% b# x  @* Z) H* \' C出现在评论处,小问题。放出来怕笑话呢。。0 |. I1 x) l1 N2 ]
01 }elseif($do == 'view'){
9 z, l. z: K3 ?02 ; n: T2 I% _! K) B& n7 o2 a- `
03        require_once(dirname(__FILE__)."/global.php");9 h2 G3 f: D1 e5 h* L5 _
04        require_once(MYMPS_INC."/member.class.php");
( E) X, W8 {' g+ P# M05        require_once(MYMPS_INC."/ip.class.php");
8 `; ~8 ]9 p: ?9 M06
6 b$ ?" J5 m- H07        if(!empty($part)&&$action == 'write'){6 Y3 e$ T8 _% n, ?1 o
08                if(if_other_site_post()){7 E8 a! d) ?* g, G$ i) z& f" ?
09                        $msgs[]="请不要尝试从站外提交数据!";
! l: c0 O* W7 i0 D1 Y- B# v! N10                        show_msg($msgs);, ]6 j5 m% Q4 R3 T9 q1 B1 |: F- z
11                        exit();
, \; e/ C) p, l$ m4 S7 h% L12                }
8 u1 d  I% V; [% n8 H( f13
# q) X2 K% [+ W2 V: c) M4 f14 4 n3 x% X6 Q- \( e" M" h
15                //mymps_chk_randcode();  E; q7 d7 @: J9 d' g
16
" {' C1 m6 b" w* r  w2 F  o17                $content = $_POST[content];' h; L4 N# \  R
18                if(empty($content)){write_msg("请填写评论内容!");exit();}& b$ ^2 X- z4 S
19                if(strlen($content)>255){write_msg("请不要填写超过127个汉字!");exit();}: K- z* \4 [# A
20                $result                 = verify_badwords_filter($mymps_global[cfg_if_comment_verify],'',$_POST[content]);$ z5 g: s: p5 A
21                $content                 = textarea_post_change($result[content]);
0 G, \2 G" h! g& F# q0 k22                $comment_level  = $result[level];
1 G4 H: E, H( i5 G2 d' _* y* C23                $userid                        = $_GET['userid'];
' `" k5 F* }6 D3 |$ L& {8 e24
% H" @; q, ?+ p25 # Z) \( C" [2 f" t
+ z. }: Y4 v6 B2 i0 |# M
26                $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]."')");
2 o! X) V6 d5 q" ?- `27                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都没处理好。出现问题了。% w- d* R& B8 H4 U' I
28                if($comment_level == '1'){: _! M4 ^" Z. ]& d7 D9 P
29                        write_msg("您的评论提交成功!","?part=".$part."&id=".$id);
' Q" Y, K# p' }6 U/ [+ F30                }
+ W' E; A2 k+ T& c! f$ h/ `: l31                else{
0 W& a- w' R6 I- s# w) ^. W32                        write_msg("您提交的留言可能含有违禁词语,审核通过后显示!","?part=".$part."&id=".$id);) C- g9 W' f: e8 K* E6 I
33                }3 I6 t- r+ \0 V
34                exit();: U% y1 B! a% t! o6 F3 E
35        }
2 _: K5 \4 J0 h* q; N结果出现问题了,
% Q1 t1 C/ D0 F. q+ u! H( X$ k; Z8 |# L* Y
接下来就是
) h$ s0 ~2 y) U7 r
% U( X6 z5 l# C! a4 |, a8 t( _5 _直接爆出管理员账号加MD5…
7 a4 a# w- a% i+ P6 `8 _7 ]
回复

使用道具 举报

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

本版积分规则

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