首 页 >> 热血江湖技术 >> 热血江湖背包暗格清理ASP
热血江湖背包暗格清理ASP
时间:2008-6-20 来源: 99945 发表讨论

今日新开服 明日新开服 昨日新开服 网通传奇私服 英雄合击私服 变态私服 仿盛大私服

使用方法,修改文件里的SQL帐号,密码,和IP就可以用了.


<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<%
 Set conn1=Server.CreateObject("ADODB.Connection")
  ' on error resume next
   SqlDatabaseName = "rxjhgame"
   SqlPassword = "rxgameadmin"
   SqlUsername = "sa"
   SqlLocalName = "60.190.113.11"
   ConnStr1 = "Provider = Sqloledb; User ID = " & SqlUsername & "; Password = " & SqlPassword & "; Initial Catalog = " & SqlDatabaseName & "; Data Source = " & SqlLocalName & ";"
 if request.QueryString("action") = "submit" then
  conn1.Open connstr1
  char = request.Form("char")
  id = request.Form("id")
  pwd = request.Form("pwd")
  if id= "" or instr(id,"'") or instr(id,"=") or instr(id,"%") then
   response.write "<script>alert('游戏帐号为空或长度不正确!');history.back(-1)</script>"
   response.end
  end if
  if pwd= "" or instr(pwd,"'") or instr(pwd,"=") or instr(pwd,"%") then
   response.write "<script>alert('游戏密码为空或长度不正确!');history.back(-1)</script>"
   response.end
  end if
  if char= "" or instr(char,"'") or instr(char,"=") or instr(char,"%") then
   response.write "<script>alert('游戏角色为空或长度不正确!');history.back(-1)</script>"
   response.end
  end if
  set rs = server.createobject("adodb.recordset")
  rs.open "select * from TBL_ACCOUNT where FLD_ID='" & id & "' and FLD_PASSWORD='" & pwd & "'",conn,1,1
  if rs.eof then
   response.write "<script>alert('你输入的帐号或密码不正确!');history.back(-1)</script>"
   response.end
  end if
  rs.close
  rs.open "select * from TBL_Char where FLD_NAME='" & char & "' and FLD_ID='"& id &"'",conn1,1,1
  if rs.eof then
   response.write "<script>alert('没有找到你所填写的角色!');history.back(-1)</script>"
   response.end
  end if
  rs.close
  dim bin
  bin = "0x"
  for j = 0 to 35
   bin = bin & "00000000000000000000000000000000000000000000000000000000000000000000000000"
  next
  conn1.Execute "update TBL_Char set FLD_ITEM = " & bin & " where FLD_NAME = '" & char & "'"
  response.write "<script>alert('背包清理成功!');history.back(-1)</script>"
  response.end
 end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>卡号处理www.5uwl.net</title>
<style type="text/css">
<!--
body,td,th {
 color: #FFFFFF;
 font-family: Verdana, 宋体, Tahoma;
 font-size: 12px;
}
body {
 background-color: #000000;
}
#form1 input {
 font-family: Verdana, "宋体", Tahoma;
 font-size: 12px;
 border: 1px solid #000000;
}
.STYLE2 {
 color: #FFFF00;
 font-weight: bold;
}
-->
</style>
</head>

<body>
<br />
<br />
<br />
<form id="form1" name="form1" method="post" action="beibao.asp?action=submit">
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#374e48">
    <tr>
      <td height="30" colspan="2" align="center"><strong>背包暗格清理</strong></td>
    </tr>
    <tr>
      <td height="25" align="right">游戏帐号:</td>
      <td><input name="id" type="text" id="id" size="20" />
      游戏帐号.</td>
    </tr>
    <tr>
      <td height="25" align="right">游戏密码:</td>
      <td><input name="pwd" type="text" id="pwd" size="20" />
      游戏密码.</td>
    </tr>
    <tr>
      <td width="195" height="25" align="right">游戏角色:</td>
      <td width="305"><input name="char" type="text" id="char" size="20" />
      游戏角色.</td>
    </tr>
    <tr>
      <td height="35" colspan="2" align="center"><span class="STYLE2">请将背包里的东西全部存入仓库再操作,本操作将清空角色背包.<br />
      如果误操作导致物品被清的,我们是无法恢复的,请使用之前一定要注意.</span></td>
    </tr>
    <tr>
      <td height="35">&nbsp;</td>
      <td><input type="submit" name="Submit" value="提交" /></td>
    </tr>
  </table>
</form>
</body>
</html>

[全文完]

99945文章和资讯源于互联网,版权属于作者,如涉及版权问题请来信告之,谢谢!
鄂ICP备05017171号 违法不良信息举报中心