全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
12
返回列表 发新帖
楼主: 460411234

[疑问] 用过华众的进来!!!

[复制链接]
 楼主| 发表于 2012-12-3 20:51:17 | 显示全部楼层
cpuer 发表于 2012-12-3 20:37
比如连接方式

/incs/setup.asp
  1. <%
  2. if not application("websiteini") then
  3. conn.open constr
  4. menuini = ""
  5. query = "select pt_id,pt_tag,pt_nme from pdttpe where pt_shw=1 order by pt_odr"
  6. set rs4=server.CreateObject("adodb.recordset")
  7. set rs3=server.CreateObject("adodb.recordset")
  8. rs4.Open query, conn, 1, 1
  9. temppdttpe = ""
  10. While Not rs4.EOF
  11. tempclstpe = ""
  12. ''$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$'
  13. tempptid = rs4("pt_id")
  14. query = "select pc_id,pc_nme from v_pdtcls where  pc_tid=" & tempptid & " and (pc_shw=1) order by pt_odr,pc_odr"
  15. rs3.Open query, conn, 1, 1
  16. While Not rs3.EOF
  17. temppcnme = Trim(rs3("pc_nme"))
  18. tempclstpe = tempclstpe & rs3("pc_id") & ":" & temppcnme & ":" & CStr(rs4("pt_id")) & ";"
  19. rs3.MoveNext
  20. Wend
  21. rs3.Close

  22. If Right(tempclstpe, 1) = ";" Then
  23. tempclstpe = Left(tempclstpe, Len(tempclstpe) - 1)
  24. End If

  25. application("pl_menu_" & rs4("pt_tag"))=split(tempclstpe,";")
  26. ''$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$'
  27. tempptnme = Trim(rs4("pt_nme"))
  28. temppdttpe = temppdttpe & rs4("pt_tag") & ":" & tempptnme & ":" & CStr(rs4("pt_id")) & ";"
  29. rs4.MoveNext
  30. Wend
  31. rs4.Close
  32. set rs3=nothing
  33. set rs4=nothing

  34. If Right(temppdttpe, 1) = ";" Then
  35. temppdttpe = Left(temppdttpe, Len(temppdttpe) - 1)
  36. End If

  37. application("pl_menutpe")=split(temppdttpe,";")


  38. query="select * from pltcfg"
  39. set rs3=server.CreateObject("adodb.recordset")
  40. rs3.open query,conn,3,1
  41. if not rs3.eof then
  42. application("pl_prccnt")=rs3("pl_prccnt")
  43. application("pl_modid")=rs3("pl_modid")
  44. application("pl_modadr")=rs3("pl_modadr")
  45. application("pl_agtsys")=rs3("pl_agtsys")
  46. application("pl_modrot")=trim(rs3("pl_modadr"))&"/webmod"&rs3("pl_modid")
  47. application("pl_hst_freedme")=trim(rs3("pl_hst_freedme"))
  48. application("pl_stetag")=trim(rs3("pl_stetag"))
  49. application("pl_stenme")=trim(rs3("pl_stenme"))
  50. application("pl_steurl")=trim(rs3("pl_steurl"))
  51. application("pl_usrnme")=trim(rs3("pl_usrnme"))
  52. application("pl_usrnme_gst")=trim(rs3("pl_usrnme_gst"))
  53. application("pl_usrpss_gst")=trim(rs3("pl_usrpss_gst"))
  54. application("pl_dftprc")=trim(rs3("pl_dftprc"))
  55. application("pl_dftpwr")=trim(rs3("pl_dftpwr"))
  56. application("pl_dmectr_url")=trim(rs3("pl_dmectr_url"))
  57. application("pl_hstctr_url")=trim(rs3("pl_hstctr_url"))
  58. application("pl_ftpctr_url")=trim(rs3("pl_ftpctr_url"))
  59. application("pl_emlctr_url")=trim(rs3("pl_emlctr_url"))
  60. application("pl_sqlctr_url")=trim(rs3("pl_sqlctr_url"))
  61. application("pl_pay_url")=trim(rs3("pl_pay_url"))
  62. application("pl_onlpay_url")=trim(rs3("pl_onlpay_url"))
  63. application("pl_copnme_cn")=trim(rs3("pl_copnme_cn"))
  64. application("pl_copnme_en")=trim(rs3("pl_copnme_en"))
  65. application("pl_adr_cn")=trim(rs3("pl_adr_cn"))
  66. application("pl_cde")=trim(rs3("pl_cde"))
  67. application("pl_emlask")=trim(rs3("pl_emlask"))
  68. application("pl_emlfnc")=trim(rs3("pl_emlfnc"))
  69. application("pl_emlsup")=trim(rs3("pl_emlsup"))
  70. application("pl_emljob")=trim(rs3("pl_emljob"))
  71. application("pl_tel_lng")=trim(rs3("pl_tel_lng"))
  72. application("pl_tel_sht")=trim(rs3("pl_tel_sht"))
  73. application("pl_fax")=trim(rs3("pl_fax"))
  74. application("pl_oicq")=trim(rs3("pl_oicq"))
  75. application("pl_emlsvr")=trim(rs3("pl_emlsvr"))
  76. application("pl_emlath")=trim(rs3("pl_emlath"))
  77. application("pl_emlmbx")=trim(rs3("pl_emlmbx"))
  78. application("pl_emlpss")=trim(rs3("pl_emlpss"))
  79. application("pl_emlnme")=trim(rs3("pl_emlnme"))
  80. application("pl_ifsecnum")=trim(rs3("pl_ifsecnum"))
  81. application("pl_newifcrd")=trim(rs3("pl_newifcrd"))
  82. application("pl_newifcfm")=trim(rs3("pl_newifcfm"))
  83. application("pl_emlsgl")=trim(rs3("pl_emlsgl"))
  84. application("pl_usrnme_sys")=trim(rs3("pl_usrnme_sys"))
  85. application("pl_tstcnt")=trim(rs3("pl_tstcnt"))
  86. end if
  87. rs3.close
  88. query="select pl_ipsfttms,pl_iphrdtms,pl_ipsftday,pl_ifuse,pl_atornw_day from atosys"
  89. rs3.open query,conn,3,1
  90. if not rs3.eof then
  91. application("pl_ipsfttms")=trim(rs3("pl_ipsfttms"))
  92. application("pl_iphrdtms")=trim(rs3("pl_iphrdtms"))
  93. application("pl_ipsftday")=trim(rs3("pl_ipsftday"))
  94. application("pl_ifuse")=trim(rs3("pl_ifuse"))
  95. application("pl_atornw_day")=trim(rs3("pl_atornw_day"))
  96. end if
  97. rs3.close
  98. set rs3=nothing
  99. conn.close
  100. application("websiteini")=true

  101. if instr(application("pl_onlpay_url"),"//") then
  102. pl_onlpay_url_2=right(application("pl_onlpay_url"),len(application("pl_onlpay_url"))-(instr(application("pl_onlpay_url"),"//")+1))
  103. pl_onlpay_url_2=right(pl_onlpay_url_2,len(pl_onlpay_url_2)-instr(pl_onlpay_url_2,"/")+1)
  104. application("pl_onlpay_url_2")=pl_onlpay_url_2
  105. end if

  106. end if
  107. '################################################################################
  108. %>
复制代码
 楼主| 发表于 2012-12-3 20:52:38 | 显示全部楼层
/incs/constr.asp  数据库配置文件
  1. <%
  2. constr="driver={SQL Server};server=localhost;uid=hzhost;pwd=mjj.;database=hzhost"
  3. %>
复制代码
 楼主| 发表于 2012-12-3 20:55:34 | 显示全部楼层
cpuer 发表于 2012-12-3 20:37
比如连接方式

C大  求指点  源码贴上来了
 楼主| 发表于 2012-12-3 21:19:32 | 显示全部楼层
MJJ们刷帖真快啊,顶上去
发表于 2012-12-3 21:20:40 | 显示全部楼层
没用过
 楼主| 发表于 2012-12-3 22:35:28 | 显示全部楼层

MJJ们刷帖真快啊,顶上去
发表于 2012-12-3 22:44:11 | 显示全部楼层
你这个应该是数据库的权限问题,把DATA目录加上你的数据库单独用户名权限!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-1-10 00:00 , Processed in 0.062162 second(s), 7 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表