📄 system_main.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="../../Conn.asp"-->
<!--#include file="../../SysCls/KS_CommonCls.asp"-->
<!--#include file="../Inc/Session.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 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 KSCls
Set KSCls = New System_Main
KSCls.Execute()
Set KSCls = Nothing
Class System_Main
Private KSCMS
Private Sub Class_Initialize()
Set KSCMS=New CommonCls
End Sub
Private Sub Class_Terminate()
Call KSCMS.CloseConn()
Set KSCMS=Nothing
End Sub
Public Sub Execute()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../Inc/Admin_Style.CSS" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../JS/Common.js"></script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25" class="sort">
<div align="center" ><strong>服务器参数探测</strong></div></td>
</tr>
<tr>
<td><table width="699" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width=1 bgcolor="#E3E3E3"></td>
<td width="1011"><div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1"></td>
</tr>
</table>
<%
Dim theInstalledObjects(23)
theInstalledObjects(0) = "MSWC.AdRotator"
theInstalledObjects(1) = "MSWC.BrowserType"
theInstalledObjects(2) = "MSWC.NextLink"
theInstalledObjects(3) = "MSWC.Tools"
theInstalledObjects(4) = "MSWC.Status"
theInstalledObjects(5) = "MSWC.Counters"
theInstalledObjects(6) = "IISSample.ContentRotator"
theInstalledObjects(7) = "IISSample.PageCounter"
theInstalledObjects(8) = "MSWC.PermissionChecker"
theInstalledObjects(9) = "Scripting.FileSystemObject"
theInstalledObjects(10) = "adodb.connection"
theInstalledObjects(11) = "SoftArtisans.FileUp"
theInstalledObjects(12) = "SoftArtisans.FileManager"
theInstalledObjects(13) = "JMail.SMTPMail"
theInstalledObjects(14) = "CDONTS.NewMail"
theInstalledObjects(15) = "Persits.MailSender"
theInstalledObjects(16) = "LyfUpload.UploadFile"
theInstalledObjects(17) = "Persits.Upload.1"
theInstalledObjects(18) = "CreatePreviewImage.cGvbox" 'CreatePreviewImage
theInstalledObjects(19) = "Persits.Jpeg" 'AspJpeg
theInstalledObjects(20) = "SoftArtisans.ImageGen" 'SoftArtisans ImgWriter V1.21
theInstalledObjects(21) = "sjCatSoft.Thumbnail"
theInstalledObjects(22) = "Microsoft.XMLHTTP"
theInstalledObjects(23) = "Adodb.Stream"
%> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1"></td>
</tr>
</table>
<table width="700" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <font color="#006666"><strong>使用本系统,请确认您的服务器和您的浏览器满足以下要求:</strong></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1"></td>
</tr>
</table>
<table width="699" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CDCDCD">
<tr bgcolor="#EEF8FE">
<td width="48%" height="22"> <font face="Verdana, Arial, Helvetica, sans-serif">JRO.JetEngine</font><span class="small2">:</span>
<%
On Error Resume Next
Server.CreateObject("JRO.JetEngine")
if err=0 then
Response.Write("<font color=#0076AE>√</font>")
else
Response.Write("<font color=red>×</font>")
end if
err=0
Response.Write(" (ADO 数据对象):")
On Error Resume Next
Server.CreateObject("adodb.connection")
if err=0 then
Response.Write("<font color=#0076AE>√</font>")
else
Response.Write("<font color=red>×</font>")
end if
err=0
%> </td>
<td width="52%" height="22"> 当前数据库
<%
If Application("DataBaseType") = 1 Then
Response.Write "<font color=#0076AE>MS SQL</font>"
else
Response.Write "<font color=#0076AE>ACCESS</font>"
end if
%> </td>
</tr>
<tr bgcolor="#EEF8FE">
<td height="22"> <span class="small2"><font face="Verdana, Arial, Helvetica, sans-serif">FSO</font></span>文本文件读写<span class="small2">:</span>
<%
On Error Resume Next
Server.CreateObject(KSCMS.GetConfig("FsoObjName"))
if err=0 then
Response.Write("<font color=#0076AE>支持√</font>")
else
Response.Write("<font color=red>不支持×</font>")
end if
err=0
%> </td>
<td height="22"> Microsoft.XMLHTTP
<%If Not IsObjInstalled(theInstalledObjects(22)) Then%>
<font color="red">×</font>
<%else%>
<font color="0076AE"> √</font>
<%end if%>
Adodb.Stream
<%If Not IsObjInstalled(theInstalledObjects(23)) Then%>
<font color="red">×</font>
<%else%>
<font color="0076AE"> √</font>
<%end if%> </td>
</tr>
<tr bgcolor="#EEF8FE">
<td height="22" colspan="2"> 科汛 2006 SP1 组件<span class="small2">:
<%
On Error Resume Next
Server.CreateObject("KS_Common.Common")
if err=0 then
Response.Write("<font color=#0076AE>支持√</font>")
else
Response.Write("<font color=red>不支持×</font>")
end if
err=0
%>
(组件版本)请确保服务器安装最新版本的科汛组件</span></td>
</tr>
<tr bgcolor="#EEF8FE">
<td height="22" colspan="2"> 客户端浏览器版本:
<%
Dim Agent,Browser,version,tmpstr
Agent=Request.ServerVariables("HTTP_USER_AGENT")
Agent=Split(Agent,";")
If InStr(Agent(1),"MSIE")>0 Then
Browser="MS Internet Explorer "
version=Trim(Left(Replace(Agent(1),"MSIE",""),6))
ElseIf InStr(Agent(4),"Netscape")>0 Then
Browser="Netscape "
tmpstr=Split(Agent(4),"/")
version=tmpstr(UBound(tmpstr))
ElseIf InStr(Agent(4),"rv:")>0 Then
Browser="Mozilla "
tmpstr=Split(Agent(4),":")
version=tmpstr(UBound(tmpstr))
If InStr(version,")") > 0 Then
tmpstr=Split(version,")")
version=tmpstr(0)
End If
End If
Response.Write(""&Browser&" "&version&"")
%>
[需要IE5.5或以上,服务器建议采用Windows 2000或Windows 2003 Server]</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1"></td>
</tr>
</table>
<table width="700" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <font color="#006666"><strong>服务器信息</strong></font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="1"></td>
</tr>
</table>
<table width="699" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CDCDCD">
<tr bgcolor="#EEF8FE">
<td height="25"> 服务器类型:<font face="Verdana, Arial, Helvetica, sans-serif"><%=Request.ServerVariables("OS")%>(IP:<%=Request.ServerVariables("LOCAL_ADDR")%>)</font></td>
<td height="25"> <span class="small2"><font face="Verdana, Arial, Helvetica, sans-serif">WEB</font></span>服务器的名称和版本<font face="Verdana, Arial, Helvetica, sans-serif">:<font color=#0076AE><%=Request.ServerVariables("SERVER_SOFTWARE")%></font></font></td>
</tr>
<tr bgcolor="#EEF8FE">
<td width="48%" height="25"> 返回服务器的主机名,<font face="Verdana, Arial, Helvetica, sans-serif">IP</font>地址<font face="Verdana, Arial, Helvetica, sans-serif">:<font color=#0076AE><%=Request.ServerVariables("SERVER_NAME")%></font></font></td>
<td width="52%" height="25"> 服务器操作系统<font face="Verdana, Arial, Helvetica, sans-serif">:<font color=#0076AE><%=Request.ServerVariables("OS")%></font></font></td>
</tr>
<tr bgcolor="#EEF8FE">
<td width="48%" height="25"> 站点物理路径<font face="Verdana, Arial, Helvetica, sans-serif">:<%=request.ServerVariables("APPL_PHYSICAL_PATH")%></font></td>
<td width="52%" height="25"> 虚拟路径<font face="Verdana, Arial, Helvetica, sans-serif">:<%=Request.ServerVariables("SCRIPT_NAME")%></font></td>
</tr>
<tr bgcolor="#EEF8FE">
<td width="48%" height="25"> 脚本超时时间<span class="small2">:</span><font color=#0076AE><%=Server.ScriptTimeout%></font> 秒</td>
<td width="52%" height="25"> 脚本解释引擎<span class="small2">:</span><font face="Verdana, Arial, Helvetica, sans-serif"><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %> </font> </td>
</tr>
<tr bgcolor="#EEF8FE">
<td height="25"> 服务器端口<font face="Verdana, Arial, Helvetica, sans-serif">:<%=Request.ServerVariables("SERVER_PORT")%></font></td>
<td height="25"> 协议的名称和版本<font face="Verdana, Arial, Helvetica, sans-serif">:<%=Request.ServerVariables("SERVER_PROTOCOL")%></font></td>
</tr>
<tr bgcolor="#EEF8FE">
<td height="25"> 服务器 <font face="Verdana, Arial, Helvetica, sans-serif">CPU</font>
数量<font face="Verdana, Arial, Helvetica, sans-serif">:<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%></font> 个 </td>
<td height="25"> 客户端操作系统:
<%
dim thesoft,vOS
thesoft=Request.ServerVariables("HTTP_USER_AGENT")
if instr(thesoft,"Windows NT 5.0") then
vOS="Windows 2000"
elseif instr(thesoft,"Windows NT 5.2") then
vOs="Windows 2003"
elseif instr(thesoft,"Windows NT 5.1") then
vOs="Windows XP"
elseif instr(thesoft,"Windows NT") then
vOs="Windows NT"
elseif instr(thesoft,"Windows 9") then
vOs="Windows 9x"
elseif instr(thesoft,"unix") or instr(thesoft,"linux") or instr(thesoft,"SunOS") or instr(thesoft,"BSD") then
vOs="类Unix"
elseif instr(thesoft,"Mac") then
vOs="Mac"
else
vOs="Other"
end if
Response.Write(vOs)
%> </td>
</tr>
</table>
<table width="700" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <font color="#006666"><strong>系统版本信息</strong></font></td>
</tr>
</table>
<table width="699" height="63" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CDCDCD">
<tr bgcolor="#EEF8FE">
<td height="30"> 当前版本<font face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td height="30"> <strong><font color=red>
<%=Application("VerInfo")%>
</font></strong></td>
</tr>
<tr bgcolor="#EEF8FE">
<td width="24%" height="30"> 版权声明</td>
<td width="76%" height="30"> 1、本软件为共享软件,未经书面授权,不得向任何第三方提供本软件系统;<br>
2、用户自由选择是否使用,在使用中出现任何问题和由此造成的一切损失科汛网络将不承担任何责任;<br>
3、本软件受中华人民共和国《著作权法》《计算机软件保护条例》等相关法律、法规保护,科汛网络保留一切权利。
<p></p></td>
</tr>
</table>
<br>
</div></td>
</tr>
</table></td>
</tr>
</table>
</html>
<%
End Sub
Function IsObjInstalled(strClassString)
On Error Resume Next
IsObjInstalled = False
Err = 0
Dim xTestObj
Set xTestObj = Server.CreateObject(strClassString)
If Err = 0 Then IsObjInstalled = True
If Err = -2147352567 Then IsObjInstalled = True
Set xTestObj = Nothing
Err = 0
End Function
End Class
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -