⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adminindex.asp

📁 这是一个校友录管理系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc/sessionadmin.asp"-->
<%

Dim ObjTotest(26,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(10,0) = "adodb.connection"
	
ObjTotest(11,0) = "SoftArtisans.FileUp"
ObjTotest(12,0) = "SoftArtisans.FileManager"
ObjTotest(13,0) = "LyfUpload.UploadFile"
ObjTotest(14,0) = "Persits.Upload.1"
ObjTotest(15,0) = "w3.upload"

ObjTotest(16,0) = "JMail.SmtpMail"
ObjTotest(17,0) = "CDONTS.NewMail"
ObjTotest(18,0) = "Persits.MailSender"
ObjTotest(19,0) = "SMTPsvg.Mailer"
ObjTotest(20,0) = "DkQmail.Qmail"
ObjTotest(21,0) = "Geocel.Mailer"
ObjTotest(22,0) = "IISmail.Iismail.1"
ObjTotest(23,0) = "SmtpMail.SmtpMail.1"
	
ObjTotest(24,0) = "SoftArtisans.ImageGen"
ObjTotest(25,0) = "W3Image.Image"

public IsObj,VerObj

'检查预查组件支持情况及版本

dim i
for i=0 to 25
	on error resume next
	IsObj=false
	VerObj=""
	dim 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=""
	dim 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
%>

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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">
<!--#include file="inc/css.asp"-->
<title><%=WebSiteName%></title>
</head>
<body topmargin="0" background="images/bg.gif">
<!--#include file="admintop.asp"-->
<div align="center">
  <center>
  <table border="0" width="755" cellspacing="0" cellpadding="0">
    <tr>
      <td width="189" style="background-color: #FFFFFF; border-left: 1 solid #000000; border-top: 1 solid #000000; border-bottom: 1 solid #000000" valign="top"> 
		<!--#include file="aleft.asp"-->
      </td>
      <td width="562" style="background-color: #FFFFFF; border: 1 solid #000000" valign="top">
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" height="25" bgcolor="#EDEDED" style="border-bottom: 1 solid #000000;">
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%">
                    <p align="center">当前你使用的服务器概况</td>                 
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td width="100%" valign="top">
            <div align="center">
              <center>
              <table border="0" width="90%" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%" height="8" colspan="2"></td>
                </tr>
                <tr>
                  <td width="100%" height="20" bgcolor="#EDEDED" style="border: 1 solid #000000" colspan="2">
                    <p align="center"><font class="fonts"><b>服务器的有关参数</b></font></p>
                  </td>
                </tr>
                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;服务器名称</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=Request.ServerVariables("SERVER_NAME")%></td>
                </tr>
                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;服务器               
                    IP</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=Request.ServerVariables("LOCAL_ADDR")%></td>
                </tr>
                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;服务器端口</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=Request.ServerVariables("SERVER_PORT")%></td>
                </tr>
                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;服务器时间</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=now%></td>
                </tr>
                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;IIS               
                    版本</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
                </tr>
                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;脚本超时时间</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=Server.ScriptTimeout%> 秒</td>     
                </tr>

                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;本文件路径</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%></td>
                </tr>

                <tr>
                  <td width="35%" height="20" style="border-left: 1 solid #000000; border-bottom: 1 solid #000000" bgcolor="#F7F7F7">&nbsp;服务器CPU数量</td>
                  <td width="65%" height="20" style="border-left: 1 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000">&nbsp;<%=Request.ServerVariables("NUMBER_OF_PROCESSORS")%></td>
                </tr>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -