Index.Asp
资源名称:4.rar [点击查看]
上传用户:zhbanny
上传日期:2020-11-04
资源大小:161k
文件大小:4k
源码类别:

手机WAP编程

开发平台:

ASP/ASPX

  1. <!--#Include File="Inc/xkon.Asp"--><%
  2. Private c,s
  3. Set c=New xkon_Response
  4. Set s=New xkon_Request
  5. Private Sub LaBa()
  6. Application("LaBa")=""
  7. Dim Cn1,i
  8. Set Cn1=Server.CreateObject("Adodb.RecordSet")
  9. Cn1.Open "Select NiChen,NeiRong From LaBa Order By ID Desc",Conn,1,1
  10. For i=1 To Clng(Read_SZ("Shu_LaBa"))
  11. If Cn1.Eof Then Exit For
  12. Application("LaBa")=Application("LaBa")&Cn1("NiChen")&":"&Cn1("NeiRong")&"<br/>"
  13. Cn1.MoveNext
  14. Next
  15. Cn1.Close
  16. Set Cn1=Nothing
  17. End Sub
  18. Private Sub XinTieBa()
  19. Application("XinTieBa")=""
  20. Dim Cn1,i
  21. Set Cn1=Server.CreateObject("Adodb.RecordSet")
  22. Cn1.Open "Select ID,BanKuai_MingChen From BanKuai Order By ID Desc",Conn,1,1
  23. For i=1 To Clng(Read_SZ("Shu_XinTieBa"))
  24. If Cn1.Eof Then Exit For
  25. Application("XinTieBa")=Application("XinTieBa")&"<a href=""B;LieBiao.Asp?ID="&Cn1("ID")&"{(xkon.cn)链接}"">"&Cn1("BanKuai_MingChen")&"</a><br/>"
  26. Cn1.MoveNext
  27. Next
  28. Cn1.Close
  29. Set Cn1=Nothing
  30. End Sub
  31. Private Sub ReTieBa()
  32. Application("ReTieBa")=""
  33. Dim Cn1,i
  34. Set Cn1=Server.CreateObject("Adodb.RecordSet")
  35. Cn1.Open "Select ID,BanKuai_MingChen From BanKuai Order By ChengYuan_Shu Desc",Conn,1,1
  36. For i=1 To Clng(Read_SZ("Shu_XinTieBa"))
  37. If Cn1.Eof Then Exit For
  38. Application("ReTieBa")=Application("ReTieBa")&"<a href=""B;LieBiao.Asp?ID="&Cn1("ID")&"{(xkon.cn)链接}"">"&Cn1("BanKuai_MingChen")&"</a><br/>"
  39. Cn1.MoveNext
  40. Next
  41. Cn1.Close
  42. Set Cn1=Nothing
  43. End Sub
  44. Private Sub XinHuiYuan()
  45. Application("XinHuiYuan")=""
  46. Dim Cn1,i
  47. Set Cn1=Server.CreateObject("Adodb.RecordSet")
  48. Cn1.Open "Select NiChen,ZhangHao From ZhangHao Order By ID Desc",Conn,1,1
  49. For i=1 To Clng(Read_SZ("Shu_XinHuiYuan"))
  50. If Cn1.Eof Then Exit For
  51. Application("XinHuiYuan")=Application("XinHuiYuan")&"<a href=""ZiLiao.Asp?ZhangHao="&Cn1("ZhangHao")&"{(xkon.cn)链接}"">"&Cn1("NiChen")&"</a><br/>"
  52. Cn1.MoveNext
  53. Next
  54. Cn1.Close
  55. Set Cn1=Nothing
  56. End Sub
  57. Private Sub XinTieZhi()
  58. Application("XinTieZhi")=""
  59. Dim Cn1,i
  60. Set Cn1=Server.CreateObject("Adodb.RecordSet")
  61. Cn1.Open "Select MingChen,ID,BanKuai From TieZhi Order By ID Desc",Conn,1,1
  62. For i=1 To CLng(Read_SZ("Shu_XinTieZhi"))
  63. If Cn1.Eof Then Exit For
  64. Application("XinTieZhi")=Application("XinTieZhi")&"<a href=""B;NeiRong.Asp?ID="&Cn1("BanKuai")&"&amp;TID="&Cn1("ID")&"{(xkon.cn)链接}"">"&Cn1("MingChen")&"</a><br/>"
  65. Cn1.MoveNext
  66. Next
  67. Cn1.Close
  68. Set Cn1=Nothing
  69. End Sub
  70. Private Sub ReTieZhi()
  71. Application("ReTieZhi")=""
  72. Dim Cn1,i
  73. Set Cn1=Server.CreateObject("Adodb.RecordSet")
  74. Cn1.Open "Select MingChen,ID,BanKuai From TieZhi Order By HuiFu Desc",Conn,1,1
  75. For i=1 To CLng(Read_SZ("Shu_XinTieZhi"))
  76. If Cn1.Eof Then Exit For
  77. Application("ReTieZhi")=Application("ReTieZhi")&"<a href=""B;NeiRong.Asp?ID="&Cn1("BanKuai")&"&amp;TID="&Cn1("ID")&"{(xkon.cn)链接}"">"&Cn1("MingChen")&"</a><br/>"
  78. Cn1.MoveNext
  79. Next
  80. Cn1.Close
  81. Set Cn1=Nothing
  82. End Sub
  83. Private Sub GengXin()
  84. Call OpenData()
  85. Call LaBa()
  86. Call XinTieBa()
  87. Call ReTieBa()
  88. Call XinHuiYuan()
  89. Call XinTieZhi()
  90. Call ReTieZhi()
  91. Call CloseData()
  92. Application("HuanCun_ShiJian")=Now()
  93. End Sub
  94. If Application("HuanCun_ShiJian")="" Then Call GengXin()
  95. If Application("HuanCun_ShiJian")<DateAdd("n",-Clng(Read_SZ("ShuaXin_HuanCun")),Now()) Then Call GengXin()
  96. Dim NeiRong
  97. NeiRong=Read_Text("Index")
  98. NeiRong=Replace(NeiRong,xkon_S("喇叭"),Application("LaBa"))
  99. NeiRong=Replace(NeiRong,xkon_S("新家族"),Application("XinTieBa"))
  100. NeiRong=Replace(NeiRong,xkon_S("热家族"),Application("ReTieBa"))
  101. NeiRong=Replace(NeiRong,xkon_S("新会员"),Application("XinHuiYuan"))
  102. NeiRong=Replace(NeiRong,xkon_S("新贴子"),Application("XinTieZhi"))
  103. NeiRong=Replace(NeiRong,xkon_S("热贴子"),Application("ReTieZhi"))
  104. NeiRong=Replace(NeiRong,xkon_S("LOGO"),Read_SZ("LT_LOGO"))
  105. Call H_Title("首页")
  106. c.Write(xkon_FenXi(NeiRong))
  107. Call H_End()
  108. Set c=Nothing
  109. Set s=Nothing
  110. %>