📄 main.asp
字号:
<!--#include file = "../Include/DBClass.inc.asp"-->
<!--#include file = "../Include/SysLoginCheck.inc.asp" -->
<%
Sub Showspecialspaceinfo(method)
dim fso,d,fc,f1,size,showsize,drvpath
set fso=server.createobject("scripting.filesystemobject")
drvpath=server.mappath("../NewsDB/")
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
%>
<HTML>
<HEAD>
<TITLE>管理中心</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/style.css" type="text/css">
</HEAD>
<BODY bgColor=#FFFFFF topMargin=0 leftmargin="0">
<!--#include file="../Include/Top.asp" -->
<TABLE cellSpacing=0 cellPadding=0 width=95% align=center border=0>
<TR>
<TD >
<p><b><font color="#FF0000">欢迎光临 <%=homepage_title%>--管理控制面板</font></b></p>
<p><b>官方网站</b>:<a href="http://www.sxzx.net" target="_blank">21世纪人才周刊</a></p>
<p>在这里,您可以控制你所有的网站设置。请在此页的左侧选择您要进行管理的链接。</p>
</TD>
</TR>
</TABLE>
<table cellpadding="2" cellspacing="1" border="0" width="95%" align="center">
<tr bgcolor="#799AE1">
<td colspan=2 height=25>
<div align="center"><font color="#FFFFFF"><b>数据库信息统计</b></font></div>
</td>
<tr>
<tr>
<td width="50%" height=23 bgcolor="#DDEEFF">服务器类型:<%=Request.ServerVariables("OS")%>(IP:<%=Request.ServerVariables("LOCAL_ADDR")%>)</td>
<td width="50%" bgcolor="#DDEEFF">脚本解释引擎:<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
</tr>
<tr>
<td width="50%" height=23 bgcolor="#DDEEFF">站点物理路径:<%=request.ServerVariables("APPL_PHYSICAL_PATH")%></td>
<td width="50%" bgcolor="#DDEEFF">数据库占用空间总计:
<%
Dim fsoflag
fsoflag=1
if fsoflag=1 then
showspecialspaceinfo("All")
else
response.write "本功能已经被关闭"
end if
%>
</td>
</tr>
<tr>
<td width="50%" height=23 bgcolor="#DDEEFF">FSO文本读写:
<%If Not IsObjInstalled(theInstalledObjects(9)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%>
</td>
<td width="50%" bgcolor="#DDEEFF">数据库使用:
<%If Not IsObjInstalled(theInstalledObjects(10)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%>
</td>
</tr>
<tr>
<td width="50%" height=23 bgcolor="#DDEEFF">Jmail组件支持:
<%If Not IsObjInstalled(theInstalledObjects(13)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%>
</td>
<td width="50%" bgcolor="#DDEEFF">CDONTS组件支持:
<%If Not IsObjInstalled(theInstalledObjects(14)) Then%>
<font color="#FF0000"><b>×</b></font>
<%else%>
<b>√</b>
<%end if%>
</td>
</tr>
</table>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td bgcolor="#799AE1" height="25">
<div align="center"><font color="#FFFFFF"><b>数据库操作帮助</b></font></div>
</td>
</tr>
<tr>
<td bgcolor="#DDEEFF" height="100"> </td>
</tr>
<tr>
<td height="30">
<div align="center"><font face="Arial, Helvetica, sans-serif">Copyright
(c) 2001-2002 www.haola.net. All Rights Reserved </font></div>
</td>
</tr>
</table>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -