Admin_Edit.asp
上传用户:angela
上传日期:2022-05-11
资源大小:853k
文件大小:3k
源码类别:

外挂编程

开发平台:

ASP/ASPX

  1. <!--#include file="setup.asp"-->
  2. <!--#include file="check.asp"-->
  3. <%
  4. '=====================================================================
  5. ' 作者声明:转载请保留版权信息,鄙视不要脸的人
  6. '=====================================================================
  7. ' 软件名称:蓝宇网络私服发布系统
  8. ' 软件作者:衡少 QQ:18159079
  9. ' 文件名称:Admin_Edit.asp
  10. ' 更新日期:2007-6-5
  11. '=====================================================================
  12. ' 联系方式:Tel:13203117383,QQ:18159079
  13. ' 程序开发:863(衡少)
  14. ' 官方网站:蓝宇网络(www.863sf.Cn)
  15. '=====================================================================
  16. ' Copyright 2004-2007 863sf.Cn - All Rights Reserved.
  17. '=====================================================================
  18. set rs = server.createobject("adodb.recordset")
  19. dim id,name,ip,gameid,sdate,hour,minute,addr,xingzhi,homepage,Service,download,ulock,addtime,isBest,hot,Daytime,Fine,QQ
  20. id=request("id")
  21. name=tee5.CheckStr(request("name"))
  22. ip=tee5.CheckStr(request.form("ip"))
  23. gameid=trim(request.form("gameid"))
  24. Service=trim(request.form("Service"))
  25. sdate=tee5.CheckStr(request("sdate"))
  26. hour=tee5.CheckStr(request("hour"))
  27. minute=tee5.CheckStr(request("minute"))
  28. addr=tee5.CheckStr(request.form("addr"))
  29. xingzhi=tee5.CheckStr(request.form("xingzhi"))
  30. QQ=tee5.CheckStr(request.form("QQ"))
  31. homepage=tee5.CheckStr(request.form("homepage"))
  32. download=tee5.CheckStr(request.form("download"))
  33. Daytime=tee5.CheckStr(request.form("Daytime"))
  34. addtime=request("addtime")
  35. isBest=tee5.CheckStr(request("isBest"))
  36. hot=tee5.CheckStr(request("hot"))
  37. ulock=tee5.CheckStr(request("ulock"))
  38. Fine=tee5.CheckStr(request.form("Fine"))
  39. if isBest="" then isBest="0"
  40. if hot="" then hot="0"
  41. if Fine="" then Fine="0"
  42. if name="" or ip="" or gameid="" or Service="" or Sdate="" or xingzhi="" or addr="" then
  43. response.write "<script>alert('带*的选项必须填写或选择,请返回检查后再提交');history.back()</script>"
  44. call CloseConn()
  45. response.end
  46. end if
  47. if int(service)>ubound(split(tee5.ssign,",")) then
  48. response.write "<script>alert('非法数据,请勿试图提交非法参数');history.back()</script>"
  49. call CloseConn()
  50. response.end
  51. end if
  52. call edit()
  53. call closeconn()
  54. sub edit()
  55. sql="select * from Gq_sfdata where id="&request("id") 
  56. rs.open sql,conn,1,3
  57. if rs.bof and rs.eof then
  58. rs.close
  59. response.write "<script>alert('无此ID,请返回重新检查');history.back()</script>"
  60. else
  61. rs("name")=name
  62. rs("ip")=ip
  63. rs("gameid")=gameid
  64. rs("service")=service
  65. rs("addr")=addr
  66. rs("xingzhi")=xingzhi
  67. rs("homepage")=homepage
  68. rs("download")=download
  69.         if ulock="" then
  70. rs("ulock")=0
  71. rs("isBest")=0
  72. rs("hot")=0
  73. rs("Fine")=0
  74. else
  75. rs("ulock")=ulock
  76. rs("isBest")=isBest
  77. rs("hot")=hot
  78. rs("Fine")=Fine
  79.         end if
  80. rs("sdate")=sdate
  81. rs("Daytime")=Daytime
  82. rs("hour")=hour
  83. rs("minute")=minute
  84. rs("addtime")=addtime
  85. rs("gameid")=gameid
  86. rs("QQ")=QQ
  87.         if trim(request.form("isBest"))="1" then
  88. rs("BestTime")=Now()
  89. end if
  90.         if trim(request.form("hot"))="1" then
  91. rs("hottime")=Now()
  92. end if
  93.         if trim(request.form("fine"))="1" then
  94. rs("finetime")=Now()
  95. end if
  96.         if trim(request.form("fine"))="2" then
  97. rs("finetime")=Now()
  98. end if
  99. rs.update
  100. response.Redirect "Admin_list.asp"
  101. rs.close
  102. end if
  103. end sub
  104. %>