www.gusucode.com > Tatter Tools 0.961 SE GB2312 简体中文版 > upload/reply_exe.php
<? include("inc_global.php"); include("inc_function.php"); if ($mode == "insert") { if ($is_secret == "on") $is_secret = 1; else $is_secret = 0; if ($c_homepage == "http://") $c_homepage = ""; put_query (" insert into t3_".$dbid."_reply ( pno, rno, name, homepage, body, password, is_secret, regdate, ip ) values ( $pnum, $num, '".str_tag_off($c_name)."', '".str_tag_off($c_homepage)."', '".str_tag_off($c_body)."', password('$c_password'), '$is_secret', '".time()."', '".$REMOTE_ADDR."' ) "); set_rp_cnt($pnum); setcookie ("c_guest_name", $c_name, time()+60*60*24*30); setcookie ("c_guest_homepage", $c_homepage, time()+60*60*24*30); ?> <script type="text/javascript"> alert('留言回复已发送成功\t'); opener.exe_frame.location.href='add_exe.php?md=rp&num=<?=$pnum?>&d_target=post_<?=$pnum?>'; window.close(); </script> <? } $c_name = stripslashes(stripslashes($HTTP_COOKIE_VARS["c_guest_name"])); $c_homepage = $HTTP_COOKIE_VARS["c_guest_homepage"]; if (!$c_homepage) $c_homepage = "http://"; if (return_authority()) $buf = substr($p_user_pass, 8); ?><html> <head> <title><?=$p_version?></title> <meta http-equiv="Content-type" content="text/html; charset=gb2312"> <link rel="stylesheet" href="admin/style.css"> </head> <body background="images/e_back.gif" style="margin:0; padding:0"> <script type="text/javascript" src="lib.js"></script> <script type="text/javascript"> function onclick_submit(form, mode){ trim_all(form); if (isNull(form.c_name, '请输入您的大名')) return false; if (isNull(form.c_body, '请输入回复内容')) return false; form.mode.value = 'insert'; form.submit(); } </script> <form method="post" name="reply_exe" action="<?=$PHP_SELF?>"> <input type="hidden" name="mode"> <input type="hidden" name="pnum" value="<?=$pnum?>"> <input type="hidden" name="num" value="<?=$num?>"> <table cellpadding="0" cellspacing="0" width="100%" style="height:100%"><tr> <td> <table cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" width="100%" style="border-style:solid;border-width:1;border-color:#444444"><tr> <td align="center" style="font-size:8pt; font-family:verdana; padding:10 0 12 5; background-image:url('images/back.gif')"> <b><?=$p_version?></b> </td> </tr><tr> <td align="center" valign="top"> <? input_block(); ?> <div style="padding:10px;"><b>保留测试地址:文件在reply_exe.php</b></div> <div align="left"> <table cellpadding="0" cellspacing="0" style="margin:5 0 0 0"><tr> <td align="right" width="80">大名 :: </td> <td><input class=text type=text name="c_name" value="<?=$c_name?>" style="width:150"></td> <td align="right" width="90">密码 :: </td> <td><input class="text" type="password" name="c_password" value="<?=$buf?>" style="width:70"></td> </tr></table> <table cellpadding="0" cellspacing="0" style="margin:5 0 0 0"><tr> <td align="right" width="80">主页 :: </td> <td><input class="text" type="text" name="c_homepage" value="<?=$c_homepage?>" style="width:310"></td> </tr></table> <table cellpadding="0" cellspacing="0" style="margin:2 0 0 0"><tr> <td style="padding:0 0 0 80"> <table cellpadding="0" cellspacing="0" style="margin:5 0 5 0"><tr> <td><input type="checkbox" name="is_secret"></td> <td style="padding:1 0 0 2">私密回复</td> </tr></table> <textarea class="text" rows="3" cols="55" name="c_body" style="width:310;"><?=$body?></textarea> </td> </tr></table> </div> <a href="#" onclick="onclick_submit(document.reply_exe, 'insert');"><img class="ib" src="./images/b_submit.gif" alt="" style="margin:10 0 15 0"></a> </td> </tr></table> </td> </tr></table> </form> </body> </html>