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

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

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

" U8 D+ L- t# m$ l  K9 r2 w1 C4 f出现在评论处,小问题。放出来怕笑话呢。。* L1 @1 U# a3 N) C2 x& M. z
01 }elseif($do == 'view'){. W: U$ k6 q; g* ^4 e
02 ! G: U; V+ N- u+ {3 K" e9 V
03        require_once(dirname(__FILE__)."/global.php");1 s: F; |# F8 w. ?
04        require_once(MYMPS_INC."/member.class.php");
3 J* Q, w0 @7 j1 }05        require_once(MYMPS_INC."/ip.class.php");2 ]& ~+ ?9 z4 `8 M; D7 Q
06
1 X/ {/ }3 u) H( P07        if(!empty($part)&&$action == 'write'){
& ]# c0 v$ r% t% b7 x! G08                if(if_other_site_post()){
& i1 ^7 |: j% W: y8 R09                        $msgs[]="请不要尝试从站外提交数据!";9 H0 b6 Q9 m4 H7 ?
10                        show_msg($msgs);- j* |; j7 r! U6 M9 _
11                        exit();6 y, n2 ~, U/ R$ m' J' E
12                }" q0 e* o7 u6 V( {, X
13   B4 N; ^+ M$ e
14
1 g. l- x$ N, n0 K0 A15                //mymps_chk_randcode();
( Y% P9 d* l0 o7 D/ i16 8 e( a  F! ]3 C9 q
17                $content = $_POST[content];
9 a( `1 J9 J! q4 k7 H18                if(empty($content)){write_msg("请填写评论内容!");exit();}! s( g! j$ c! }* d* \5 F
19                if(strlen($content)>255){write_msg("请不要填写超过127个汉字!");exit();}1 B! l* i  n# D, y* U
20                $result                 = verify_badwords_filter($mymps_global[cfg_if_comment_verify],'',$_POST[content]);
# A; b) V1 u# {7 R7 T* G21                $content                 = textarea_post_change($result[content]);
9 {% z& }$ O7 X# a3 h" |+ E22                $comment_level  = $result[level];! y; ^" E% C/ V! l
23                $userid                        = $_GET['userid'];* e0 c! S( s6 }, W5 l
24 8 K4 b& y4 ~8 M8 n
25 0 c, d. [# j9 v5 I( q

0 v5 @: ^9 D( k1 j5 `! J, ]7 Q26                $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]."')");
* h0 d) H4 E% }; |! P$ |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都没处理好。出现问题了。
: s; E& S5 ~5 M28                if($comment_level == '1'){
+ V* p0 k3 K+ t$ e% c) L29                        write_msg("您的评论提交成功!","?part=".$part."&id=".$id);+ c6 [/ }8 [9 e  [$ F, w
30                }
/ e0 \& s% y) Q. X9 y; H5 L31                else{; }# e7 B+ v6 m
32                        write_msg("您提交的留言可能含有违禁词语,审核通过后显示!","?part=".$part."&id=".$id);$ O7 @7 h/ G+ @4 x' l: y
33                }
& X/ \  ]8 T+ h+ J1 t" [34                exit();% F+ O9 @3 a2 O2 e/ H/ Y$ H
35        }
& Y$ L5 k/ x6 Y  q+ N7 I( f8 _- a1 `结果出现问题了,
# f1 u" ]& j0 i; q3 _4 _$ t
- [/ s4 Q7 m9 r9 N: ^, Z接下来就是
% `4 A) i) n! w( U4 r; z2 l
. Z$ i) U3 J% i% Q直接爆出管理员账号加MD5…
, e; G) I" @% L0 o8 R
回复

使用道具 举报

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

本版积分规则

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