index.asp
来自「1.支持文章」· ASP 代码 · 共 64 行
ASP
64 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="Conn.asp"-->
<!--#include file="SysCls/KS_CommonCls.asp"-->
<!--#include file="SysCls/KS_RefreshCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 0628 Free
'Copyright (C) 2006-2008 Kesion.Com All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com
'演示站点:http://test.kesion.com
'郑重声明:
' ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
' ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
' ③、科汛网络保留此软件的法律追究权利
'==================================================================================================================
Dim CacheTF:CacheTF=false rem 页面是否缓存
Dim CacheTime:CacheTime=60 rem 缓存失败时间
Dim KSCls
Set KSCls = New SiteIndex
KSCls.Execute()
Set KSCls = Nothing
Class SiteIndex
Private KSCMS, KSRFObj
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
Set KSRFObj = New Refresh
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
Dim FileContent,FsoIndex:FsoIndex=KSCMS.GetConfig("FsoIndex")
IF Split(FsoIndex,".")(1)<>"asp" Then
Response.Redirect KSCMS.GetConfig("FsoIndex"):Exit Sub
Else
Dim KSCache:Set KSCache = New ClsCache
KSCache.name=KSCMS.SiteSN&"Index"
IF KSCache.valid and KSCache.value<>"" And CacheTF=true Then
FileContent =KSCache.value
Else
Call KSCache.clean
FileContent = KSRFObj.LoadTemplate(9999)
Application(Cstr(KSCMS.SiteSN & "RefreshType")) = "INDEX" '设置刷新类型,以便取得当前位置导航等
Application(Cstr(KSCMS.SiteSN & "RefreshFolderID")) = "0" '设置当前刷新目录ID 为"0" 以取得通用标签
If Trim(FileContent) = "" Then FileContent = "首页模板不存在!"
FileContent=KSRFObj.KSLabelReplaceAll(FileContent)
KSCache.add FileContent,dateadd("n",CacheTime,now)
End If
End IF
Response.Write FileContent
End Sub
End Class
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?