|
- '二级域名转发系统
- nowmain = Request.ServerVariables("HTTP_HOST")
- If Request.ServerVariables("SCRIPT_NAME") = "/index.asp" then
- Set conn=Server.CreateObject("ADODB.CONNECTION")
- conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("sjk#.mdb")
- Set rs=Server.CreateObject("ADODB.RecordSet")
- rs.open "select * from dnsurl where alldomain='"&nowmain&"'",conn,1,1
- if not rs.eof then
- dz=rs("userurl")
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- Response.Write "<script Language=Javascript>parent.location.href='" & dz & "'</script>"
- Response.End
- end if
- end if
复制代码
缺失endif 你自己看看 |
|