<!–#include file=”conn.asp”–>
<!–#include file=”KS_Cls/KS.PublicCls.asp”–>
<%
‘=============================================
‘KesionCMSV4.0 个人空间二级域名转向处理程序
‘=============================================
‘****************************************************
‘ Software name:Kesion CMS 4.0
‘ Email: [email protected]/* */ . QQ:111394,9537636
‘ Web: http://www.kesion.com http://www.kesion.cn
‘ Copyright (C) Kesion Network All Rights Reserved.
‘****************************************************
Dim KSCls
Set KSCls = New SiteIndex
KSCls.Kesion()
Set KSCls = Nothing
Class SiteIndex
Private KS
Private From,gourl,sdomain,title,username
Private Sub Class_Initialize()
If (Not Response.IsClientConnected)Then
Response.Clear
Response.End
End If
Set KS=New PublicCls
End Sub
Private Sub Class_Terminate()
Call CloseConn()
Set KS=Nothing
End Sub
Public Sub Kesion()
From = LCase(Request.ServerVariables(“HTTP_HOST”))
sdomain = LCase(KS.SSetting(15))
sdomain = Replace(sdomain,”http://”,””)
sdomain = Replace(sdomain,”/”,””)
dim domain1,domain2
domain = LCase (from)
domain = Replace (domain,”http://”,””)
domain = Replace (domain,”/”,””)
if sdomain=domain and sdomain<>”” then
title=KS.Setting(1) & “-个人空间”
gourl=”space/index.asp”
else
domain1= Replace (Left (domain,InStr (domain,”.”)),”.”,””)
if Trim (domain1)=”” or domain1=”www” Then Response.Redirect(“index.asp”):Response.End
dim rs:set rs=conn.execute(“select username,blogname from ks_blog where [domain]='” & KS.R(domain1) & “‘”)
if rs.eof and rs.bof then
rs.close:set rs=nothing
‘=====================这里定义其它系统非个人空间的二级域名转向,如论坛等=============================
if instr(Request.ServerVariables(“SERVER_NAME”),”bbs.kesion.com”)>0 then
response.redirect “bbs/index.asp”
elseif instr(Request.ServerVariables(“SERVER_NAME”),”news.kesion.com”)>0 then
response.redirect “news/”
elseif instr(Request.ServerVariables(“SERVER_NAME”),”help.kesion.com”)>0 then
response.redirect “help/”
else
response.redirect “index.asp”
end if
‘============================================================================
exit sub
end if
title=rs(“blogname”)
domain1=rs(“username”)
rs.close:set rs=nothing
domain2= Right(domain,Len(domain)-InStr(domain,”.”))
gourl=”space/space.asp?username=” & domain1
end if
Response.Write (“<html>”) & vbcrlf
Response.Write (“<meta http-equiv=””Content-Type”” content=””text/html; charset=gb2312″” />”) & vbcrlf
Response.Write (“<title>” & title & “</title>”) & vbcrlf
Response.Write (“<head>”) & vbcrlf
Response.Write (“</head>”) & vbcrlf
Response.Write( “<frameset><frame src=”””&gourl&”””></frameset>”)
End Sub
End Class
%>
以上就是【KesionCMSV4.0 个人空间二级域名转向处理程序】的全部内容了,欢迎留言评论进行交流!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别
丞旭猿论坛
暂无评论内容