我自己写的聊天室源代码(六)

发表于:2007-06-30来源:作者:点击数: 标签:
*************************用户自杀************************* %‘’deleteuser.asp% html head meta http-equiv=Content-Type content=text/html; charset=gb2312 title用户自杀/title meta name=GENERATOR content=Microsoft FrontPage 3.0 script language
*************************用户自杀*************************
<%‘’deleteuser.asp%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用户自杀</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<script language="JavaScript"><!--
function windowload()
{
document.forms[0].name.focus();
}
function formsubmit()
{
document.forms[0].submit();
}
function mm(text)
{
var aa=""
if (text==1)
    aa=document.forms[0].name.value
if (text==3)
    aa=document.forms[0].pass.value
return aa;
}
function msg(text)
{
alert(text);
return;
}
// --></script>
<script language="VBScript"><!--
function input(tt)
    dim sc_name,sc_pass,sc_flag
    sc_flag = 0
    ‘’姓名
    sc_name = ""
    sc_name = trim(mm(1))
    if sc_name = "" then
        msg("必须输入:您的昵称")
        sc_flag = 1
    end if
    sc_pass = ""
    sc_pass = mm(3)
    if sc_pass = "" then
        msg("必须输入:您的口令")
        sc_flag = 1
    end if
    if sc_flag = 0 then
        formsubmit()
    else
        windowload()
    end if
end function
--></script>

<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>

<body onload="windowload();">

<form method="POST" action="deleteusercl.asp">
  <div align="center"><center><p><font face="隶书" color="#FF0000"><big><big>大家看,我要自杀了!!!</big></big></font></p>
  </center></div><table border="0" width="100%" cellspacing="0">
    <tr>
      <td width="33%" rowspan="5"><div align="right"><p><img src="images/suicide.gif"
      alt="suicide.gif (4831 bytes)" WIDTH="149" HEIGHT="205"></td>
      <td width="33%"></td>
      <td width="34%"><div align="left"></div></td>
    </tr>
    <tr>
      <td width="33%"><div align="right"></div></td>
      <td width="34%"><div align="left"></div></td>
    </tr>
    <tr>
      <td width="33%"><div align="right"><p>您的昵称:</p>
      </div><div align="right"><p>您的口令:</td>
      <td width="34%"><input type="text" name="name" size="20"><p><input type="text" name="pass"
      size="20"></td>
    </tr>
    <tr>
      <td width="33%"><div align="right"></div></td>
      <td width="34%"><div align="left"></div></td>
    </tr>
    <tr>
      <td width="33%"><div align="right"><p><input type="button" value="不想活了" name="B1"
      onclick="input(this)"></td>
      <td width="34%"><div align="left"><p><input type="button" value="忍辱偷生" name="B2"
      onclick="window.close();"></td>
    </tr>
  </table>
</form>
</body>
</html>
************************自杀处理***************************
<%‘’deleteusercl.asp%>
<%response.buffer = true%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自杀处理</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>
<%
set conn=createobject("adodb.connection")
conn.open "chat","chat","chat001"
dim sc_name,sc_pass,sc_flag
sc_flag = 0
sc_name = replace(trim(request.form("name")),"<","<")
sc_pass = request.form("pass")
sql1 = "select user_password from user_info_table where user_name=‘’" + sc_name + "‘’"
set rs=conn.execute(sql1)
if rs.eof then
    sc_flag = 1
else
    if trim(sc_pass)<>trim(rs(0)) then
        sc_flag = 2
        rs.close
    end if
end if
if sc_flag = 0 then
    sql1 = "delete user_info_table where user_name=‘’" + sc_name + "‘’"
    set rs=conn.execute(sql1)
    sql1 = "delete user_bq_table where user_name=‘’" + sc_name + "‘’"
    set rs=conn.execute(sql1)
    sql1 = "delete user_aclearcase/" target="_blank" >cction_table where user_name=‘’" + sc_name + "‘’"
    set rs=conn.execute(sql1)
    sql1 = "delete user_hello_table where user_name=‘’" + sc_name + "‘’"
    set rs=conn.execute(sql1)
    sql1 = "delete user_friend_table where user_name=‘’" + sc_name + "‘’"
    set rs=conn.execute(sql1)
end if
select case sc_flag
    case 0
        response.redirect "deleteuserok.asp"
    case 1
        response.redirect "deleteuserno.asp"
    case 2
        response.redirect "deleteuserps.asp"
end select
conn.close
%>

<body>
</body>
</html>
************************自杀成功****************************
<%‘’deleteuserok.asp%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自杀成功</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>

<body>

<p align="center"><img src="images/jxw_fail.gif" width="120" height="145"
alt="jxw_fail.gif (2499 bytes)"><font face="隶书" color="#FF00FF"><big><big><big>砰!砰!!杀身成仁!舍生取义!!</big></big></big></font></p>

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" startspan U-File="_private/form_results.txt"
  S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan --><div
  align="center"><center><p><input type="button" value="我死了" name="B1"
  onclick="window.close()"></p>
  </center></div>
</form>
</body>
</html>
***********************账号不存在***********************
<%‘’deleteuserno.asp%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>账号不存在</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>

<body>

<p align="center"><img src="images/jxw_ok.gif" width="120" height="145"
alt="jxw_ok.gif (2182 bytes)"><font face="隶书" color="#FF00FF"><big><big>哈哈!账号不存在!!</big></big></font></p>

<p> </p>

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" startspan U-File="_private/form_results.txt"
  S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan --><div
  align="center"><center><p><input type="button" value="还想死" name="B1"
  onclick="location.href=‘’deleteuser.asp‘’;"><input type="button" value="不死了" name="B2"
  onclick="window.close();"></p>
  </center></div>
</form>
</body>
</html>
*******************************口令不正确*************************
<%‘’deleteuserps.asp%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>口令不正确</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Theme" content="none, default">
<meta name="Microsoft Border" content="none">
</head>

<body>

<p align="center"><img src="images/jxw_ok.gif" width="120" height="145"
alt="jxw_ok.gif (2182 bytes)"><font face="隶书" color="#FF00FF"><big><big>咦?没死?!哦,口令错了!!</big></big></font></p>

<p> </p>

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" startspan U-File="_private/form_results.txt"
  S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan --><div
  align="center"><center><p><input type="button" value="继续追杀" name="B1"
  onclick="location.href=‘’deleteuser.asp‘’;"><input type="button" value="饶他一名"
  name="B2" onclick="window.close();"></p>
  </center></div>
</form>
</body>
</html>

原文转自:http://www.ltesting.net