📄 admin.asp
字号:
<!--#include file="conn.asp"-->
<%if session("china_admin")="" then
'response.redirect "login.asp"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<TITLE>管理中心</TITLE>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<%
Sub Showspecialspaceinfo(method)
dim fso,d,fc,f1,size,showsize,drvpath
set fso=server.createobject("scripting.filesystemobject")
drvpath=server.mappath("../db/")
drvpath=left(drvpath,(instrrev(drvpath,"\")-1))
set d=fso.getfolder(drvpath)
if method="All" then
size=d.size
elseif method="Program" then
set fc=d.Files
for each f1 in fc
size=size+f1.size
next
end if
showsize=size & " Byte"
if size>1024 then
size=(size\1024)
showsize=size & " KB"
end if
if size>1024 then
size=(size/1024)
showsize=formatnumber(size,2) & " MB"
end if
if size>1024 then
size=(size/1024)
showsize=formatnumber(size,2) & " GB"
end if
response.write "<font face=verdana>" & showsize & "</font>"
end sub
%>
<%
Dim theInstalledObjects(17)
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"
Function IsObjInstalled(strClassString)
On Error Resume Next
IsObjInstalled = False
Err = 0
Dim xTestObj
Set xTestObj = Server.CreateObject(strClassString)
If 0 = Err Then IsObjInstalled = True
Set xTestObj = Nothing
Err = 0
End Function
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#799AE1">
<tr>
<td height="20" bgcolor="#799AE1" align="center">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font color="#FFFFFF" style="font-size:14px">数 据 库 信 息 统 计</font></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <br>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6DFF7">
<tr bgcolor="#FFFFFF">
<td width="50%" height=23> 服务器类型:<%=Request.ServerVariables("OS")%>(IP:<%=Request.ServerVariables("LOCAL_ADDR")%>)</td>
<td width="50%"> 脚本解释引擎:<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="50%" height=23> 站点物理路径:<%=request.ServerVariables("APPL_PHYSICAL_PATH")%></td>
<td width="50%"> 数据库占用空间总计:
<%
fsoflag=1
if fsoflag=1 then
showspecialspaceinfo("All")
else
response.write "本功能已经被关闭"
end if
%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="50%" height=23> FSO文本读写:
<%If Not IsObjInstalled(theInstalledObjects(9)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%> </td>
<td width="50%"> 数据库使用:
<%If Not IsObjInstalled(theInstalledObjects(10)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="50%" height=23> Jmail组件支持:
<%If Not IsObjInstalled(theInstalledObjects(13)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%> </td>
<td width="50%"> CDONTS组件支持:
<%If Not IsObjInstalled(theInstalledObjects(14)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%> </td>
</tr>
</table>
<br>
</td>
</tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#799AE1">
<tr>
<td height="20" bgcolor="#799AE1" align="center">
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><font color="#FFFFFF" style="font-size:14px">系 统 版 权 说 明</font></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <br>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#D6DFF7">
<tr bgcolor="#FFFFFF">
<td colspan="2">
<table border="0" width="100%" cellspacing="6" cellpadding="0" id="table1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -