📄 laos_main.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><!--#include file="laos_checkuser.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<link href="../images/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="800" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td width="790"><table width="790" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="92" height="24" align="center" background="../images/admin/right_top.png" class="14"><strong>管理首页</strong></td>
<td width="698" background="../images/admin/right_topbg.png" bgcolor="#FFFFFF"></td>
</tr>
</table>
<table width="790" border="0" align="center" cellpadding="0" cellspacing="0" class="bian">
<tr>
<td height="485" valign="top" bgcolor="f2f7f9"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#B5DAF4">
<tr>
<td height="22" colspan="2" bgcolor="#D8EBFA" class="sl">欢迎使用二月小说系统 1.013</td>
</tr>
<tr>
<td width="17%" height="22" align="right" bgcolor="#F5FBFE">官方公告:</td>
<td width="83%" bgcolor="#F5FBFE"><iframe border="0" frameBorder="0" noResize scrolling="no" width="100%" height="22" src="http://www.2yue.com.cn/vip/gonggao.html"></iframe></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">程序版权:</td>
<td bgcolor="#F5FBFE" class="zbj">本小说程序为Laos原创所有,购买商业版请联系老四。</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">联系Laos:</td>
<td bgcolor="#F5FBFE" class="zbj">QQ:7280091(唯一服务QQ,其它非本人!) Email:upasp@qq.com</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">演示网址:</td>
<td bgcolor="#F5FBFE" class="zbj"><a href="http://www.2yue.com.cn" target="_blank">www.2yue.com.cn</a></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#B5DAF4">
<tr><%'阿江探针版权所有
Response.Buffer = true
Dim ObjTotest(10,4)
ObjTotest(0,0) = "MSWC.AdRotator"
ObjTotest(1,0) = "MSWC.BrowserType"
ObjTotest(2,0) = "MSWC.NextLink"
ObjTotest(3,0) = "MSWC.Tools"
ObjTotest(4,0) = "MSWC.Status"
ObjTotest(5,0) = "MSWC.Counters"
ObjTotest(6,0) = "IISSample.ContentRotator"
ObjTotest(7,0) = "IISSample.PageCounter"
ObjTotest(8,0) = "MSWC.PermissionChecker"
ObjTotest(9,0) = "Scripting.FileSystemObject"
ObjTotest(9,1) = "(FSO 文本文件读写)"
ObjTotest(10,0) = "adodb.connection"
ObjTotest(10,1) = "(ADO 数据对象)"
public IsObj,VerObj,TestObj
public okOS,okCPUS,okCPU
dim i
for i=0 to 10
on error resume next
IsObj=false
VerObj=""
TestObj=""
set TestObj=server.CreateObject(ObjTotest(i,0))
If -2147221005 <> Err then
IsObj = True
VerObj = TestObj.version
if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
end if
ObjTotest(i,2)=IsObj
ObjTotest(i,3)=VerObj
next
sub ObjTest(strObj)
on error resume next
IsObj=false
VerObj=""
TestObj=""
set TestObj=server.CreateObject (strObj)
If -2147221005 <> Err then
IsObj = True
VerObj = TestObj.version
if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
end if
End sub%>
<td height="22" colspan="2" bgcolor="#D8EBFA" class="sl">服务器的有关参数</td>
</tr>
<tr>
<td width="17%" height="22" align="right" bgcolor="#F5FBFE">服务器名:</td>
<td width="83%" bgcolor="#F5FBFE" class="zbj"><%=Request.ServerVariables("SERVER_NAME")%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器IP:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=Request.ServerVariables("LOCAL_ADDR")%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器端口:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=Request.ServerVariables("SERVER_PORT")%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器时间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=now%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">IIS版本:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">脚本超时时间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=Server.ScriptTimeout%> 秒</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">Session过期时间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=session.Timeout%> 分钟</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器解译引擎:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
</tr><%getsysinfo() '获得服务器数据%>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器CPU数量:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=okCPUS%> 个</td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器CPU详情:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=okCPU%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">服务器操作系统:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=okOS%></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table><%
Response.Flush
if ObjTest("Scripting.FileSystemObject") then
set fsoobj=server.CreateObject("Scripting.FileSystemObject")
Response.Flush
dPath = server.MapPath("../")
set dDir = fsoObj.GetFolder(dPath)
dpicPath = server.MapPath("../uploadfile")
set dpicDir = fsoObj.GetFolder(dpicPath)
ddb=split(db,"/")
n=ubound(ddb)
db=replace(db,ddb(n),"")
dbPath = server.MapPath(DB)
set dbDir = fsoObj.GetFolder(dbPath)
set dDrive = fsoObj.GetDrive(dDir.Drive)
%>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#B5DAF4">
<tr>
<td height="22" colspan="2" bgcolor="#D8EBFA" class="sl">网站空间的使用情况</td>
</tr>
<tr>
<td width="17%" height="22" align="right" bgcolor="#F5FBFE">物理路径:</td>
<td width="83%" bgcolor="#F5FBFE" class="zbj"><%=dPath%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">已用空间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=cSize(dDir.Size)%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">图片占用空间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=cSize(dpicDir.Size)%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">数据库占用空间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=cSize(dbDir.Size)%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">可用空间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=cSize(dDrive.AvailableSpace)%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">文件夹数目:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=dDir.SubFolders.Count%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">文件总数目:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=dDir.Files.Count%></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="#F5FBFE">创建时间:</td>
<td bgcolor="#F5FBFE" class="zbj"><%=dDir.DateCreated%></td>
</tr>
<%getsysinfo()%>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#B5DAF4">
<tr>
<td height="22" colspan="2" bgcolor="#D8EBFA" class="sl">IIS自带ASP组件</td>
</tr>
<%For i=0 to 10%><tr>
<td width="17%" height="22" align="right" bgcolor="#F5FBFE" style="word-break: break-all"><%=ObjTotest(i,0) & "<font color=#888888> " & ObjTotest(i,1)%>:</td>
<td width="83%" bgcolor="#F5FBFE" class="zbj"><%
If Not ObjTotest(i,2) Then
Response.Write "<font color=red><b>×</b></font>"
Else
Response.Write "<font ><b>√</b></font> <a title='" & ObjTotest(i,3) & "'>" & left(ObjTotest(i,3),11) & "</a>"
End If%></td>
</tr>
<%next
Set getxmlhttp = Server.CreateObject("Msxml2.XMLHTTP")
%>
<tr>
<td width="17%" height="22" align="right" bgcolor="#F5FBFE" style="word-break: break-all">Msxml2.XMLHTTP:</td>
<td width="83%" bgcolor="#F5FBFE" class="zbj"><%If Err Then
Err.Clear%><font color='red'><b>×</b></font><%else%><font ><b>√</b></font><%end if%></td>
</tr>
</table>
<%
end if
function cIsReady(trd)
Select Case trd
case true: cIsReady="<font class=fonts><b>√</b></font>"
case false: cIsReady="<font color='red'><b>×</b></font>"
End Select
end function
function cSize(tSize)
if tSize>=1073741824 then
cSize=int((tSize/1073741824)*1000)/1000 & " GB"
elseif tSize>=1048576 then
cSize=int((tSize/1048576)*1000)/1000 & " MB"
elseif tSize>=1024 then
cSize=int((tSize/1024)*1000)/1000 & " KB"
else
cSize=tSize & "B"
end if
end function
sub getsysinfo()
on error resume next
Set WshShell = server.CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("SYSTEM")
okOS = cstr(WshSysEnv("OS"))
okCPUS = cstr(WshSysEnv("NUMBER_OF_PROCESSORS"))
okCPU = cstr(WshSysEnv("PROCESSOR_IDENTIFIER"))
if isnull(okCPUS) then
okCPUS = Request.ServerVariables("NUMBER_OF_PROCESSORS")
elseif okCPUS="" then
okCPUS = Request.ServerVariables("NUMBER_OF_PROCESSORS")
end if
if Request.ServerVariables("OS")="" then okOS=okOS & "(可能是 Windows Server 2003)"
end sub
%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table></td>
</tr>
</table><table width="100%" border="0" cellspacing="0" cellpadding="00">
<tr>
<td height="8"></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -