changeadmin.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:5k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="../checkpost.asp"-->
  2. <!--#include file="../MD5/md5.asp" -->
  3. <!--#include file="security.asp"-->
  4. <!--#include file="articleconn.asp"-->
  5. <%if session("flag")>1 then
  6.     response.write "<script>alert('您的操作权限不够!');history.back();</script>"
  7.     response.end
  8. end if
  9. %>
  10. <%
  11. my=request("my")
  12. change=request("change")
  13. delet=request("delet")
  14. addname=request("addname")
  15. cmdok=request("cmdok")
  16. set rs=server.createobject("adodb.recordset")
  17. if my<>"" then
  18. name=Replace(request("name"), "'", "''")
  19. pwd=Replace(request("pwd"), "'", "''")
  20. sql="select * from password where id=1"
  21. rs.open sql,conn,1,3
  22. rs("name")=name
  23. rs("pwd")=md5(pwd)
  24. rs.update
  25. rs.close
  26. end if
  27. if change<>"" then
  28. typena=request("typename")
  29. sql="select * from type where typeid="&Replace(request("typeid"), "'", "''")
  30. rs.open sql,conn,1,3
  31. rs("type")=typena
  32. rs.update
  33. rs.close
  34. end if
  35. if request("changemovie")<>"" then
  36. sql="select * from movie where id="&clng(request("id"))
  37. rs.open sql,conn,1,3
  38. rs("movie")=trim(request("moviev"))
  39. rs("ipsip")=trim(request("ipsipb"))
  40. rs.update
  41. rs.close
  42. end if
  43. if request("addmovieip")<>"" then
  44. sql="select * from movie"
  45. rs.open sql,conn,1,3
  46. rs.addnew
  47. rs("movie")=Replace(request("moviet"), "'", "''")
  48. rs("ipsip")=Replace(request("ipsipt"), "'", "''")
  49. rs.update
  50. rs.close
  51. end if
  52. if delet<>"" then
  53.    conn.execute"delete from type where typeid="&Replace(request("typeid"), "'", "''")
  54. end if
  55. if request("deletserver")<>"" then
  56.    conn.execute"delete from movie where id="&clng(request("id"))
  57. end if
  58. if addname<>"" then
  59. typer=request("type")
  60. rs.open "select * from type",conn,1,3
  61. rs.addnew
  62. rs("type")=typer
  63. rs.update
  64. rs.close
  65. end if
  66. if cmdok<>"" then
  67.    homes=request("homes")
  68.    url=request("url")
  69.    urls=request("urls")
  70.    times=request("time")
  71.    pthy=request("pthy")
  72.    bjhy=request("bjhy")
  73.    hjhy=request("hjhy")
  74.    zcdj=request("zcdj")
  75.    zcms=request("zcms")
  76.    zcst=request("zcst")
  77.    zcsd=request("zcsd")
  78.    phone=request("phone")
  79.    qq=request("qq")
  80.    mail=request("mail")
  81.    soft1=request("soft1")
  82.    soft2=request("soft2")
  83.    soft3=request("soft3")
  84.    soft4=request("soft4")
  85.    bank1=request("bank1")
  86.    bank2=request("bank2")
  87.    bank3=request("bank3")
  88.    bank4=request("bank4")
  89.    car1=request("car1")
  90.    car2=request("car2")
  91.    car3=request("car3")
  92.    car4=request("car4")
  93.    name1=request("name1")
  94.    name2=request("name2")
  95.    name3=request("name3")
  96.    name4=request("name4")
  97. xdizhi=request("xdizhi")
  98. xdizhi2=request("xdizhi2")
  99. xjie=request("xjie")
  100. xshangzong=request("xshangzong")
  101. xuser=request("xuser")
  102. gmulu=request("gmulu")
  103. gusermulu=request("gusermulu")
  104. host=request("host")
  105. host2=request("host2")
  106. kai=request("kai")
  107. zhuceci=request("zhuceci")
  108. shopover=request("shopover")
  109. shopover2=request("shopover2")
  110. upkai=request("upkai")
  111. bbskai=request("bbskai")
  112. bbskainame=request("bbskainame")
  113. paimaikai=request("paimaikai")
  114. paimainame=request("paimainame")
  115. gengduo=request("gengduo")
  116. fakai=request("fakai")
  117. guang1=request("guang1")
  118. guang11=request("guang11")
  119. logo=request("logo")
  120. fapiaofei=request("fapiaofei")
  121. ticheng=request("ticheng")
  122. ticheng1=request("ticheng1")
  123. ticheng2=request("ticheng2")
  124. ticheng3=request("ticheng3")
  125. ticheng4=request("ticheng4")
  126. ticheng5=request("ticheng5")
  127. webname=request("webname")
  128. weburl=request("weburl")
  129. set_logo=request("set_logo")
  130. set_ie=request("set_ie")
  131. webtitle=request("webtitle")
  132. adminurl=request("adminurl")
  133. logintype=request("logintype")
  134. loginip=request("loginip")
  135. bad_words=request("bad_words")
  136. keywords=request("keywords")
  137. Description=request("Description")
  138. pay=request("pay")
  139.    rs.open "select * from home",conn,1,3
  140.    rs("homes")=homes
  141.    rs("url")=url
  142.    rs("urls")=urls
  143.    rs("time")=times
  144.    rs("pthy")=pthy
  145.    rs("bjhy")=bjhy
  146.    rs("hjhy")=hjhy
  147.    rs("zcdj")=zcdj
  148.    rs("zcms")=zcms
  149.    rs("zcst")=zcst
  150.    rs("zcsd")=zcsd
  151.    rs("sitephone")=phone
  152.    rs("qqone")=qq
  153.    rs("mail")=mail
  154.    rs("soft1")=soft1
  155.    rs("soft2")=soft2
  156.    rs("soft3")=soft3
  157.    rs("soft4")=soft4
  158.    rs("bank1")=bank1
  159.    rs("bank2")=bank2
  160.    rs("bank3")=bank3
  161.    rs("bank4")=bank4
  162.    rs("car1")=car1
  163.    rs("car2")=car2
  164.    rs("car3")=car3
  165.    rs("car4")=car4
  166.    rs("name1")=name1
  167.    rs("name2")=name2
  168.    rs("name3")=name3
  169.    rs("name4")=name4
  170. rs("xdizhi")=xdizhi
  171. rs("xdizhi2")=xdizhi2
  172. rs("xjie")=xjie
  173. rs("xshangzong")=xshangzong
  174. rs("xuser")=xuser
  175. rs("gmulu")=gmulu
  176. rs("gusermulu")=gusermulu
  177. rs("host")=host
  178. rs("host2")=host2
  179. rs("kai")=kai
  180. rs("zhuceci")=zhuceci
  181. rs("shopover")=shopover
  182. rs("shopover2")=shopover2
  183. rs("upkai")=upkai
  184. rs("bbskai")=bbskai
  185. rs("bbskainame")=bbskainame
  186. rs("paimaikai")=paimaikai
  187. rs("paimainame")=paimainame
  188. rs("gengduo")=gengduo
  189. rs("fakai")=fakai
  190. rs("logo")=logo
  191. rs("fapiaofei")=fapiaofei
  192. rs("ticheng")=ticheng
  193. rs("ticheng1")=ticheng1
  194. rs("ticheng2")=ticheng2
  195. rs("ticheng3")=ticheng3
  196. rs("ticheng4")=ticheng4
  197. rs("ticheng5")=ticheng5
  198. rs("webname")=webname
  199.  rs("weburl")=weburl
  200.  rs("set_logo")=set_logo
  201.  rs("set_ie")=set_ie
  202.  rs("webtitle")=webtitle
  203.  rs("adminurl")=adminurl
  204.  rs("logintype")=logintype
  205.  rs("loginip")=loginip
  206.  rs("Pay")=pay
  207.    rs.update
  208.    rs.close
  209. end if
  210.    set rs=nothing
  211.    conn.close
  212.    set conn=nothing
  213. response.redirect Request.ServerVariables("HTTP_REFERER")
  214. %>
  215. </body>
  216. </html>