zcMain.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:4k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <%@language=vbscript codepage=936 %>
  2. <!--#include file="articleconn.asp"-->
  3. <%
  4. Dim theInstalledObjects(17)
  5. theInstalledObjects(0) = "MSWC.AdRotator"
  6. theInstalledObjects(1) = "MSWC.BrowserType"
  7. theInstalledObjects(2) = "MSWC.NextLink"
  8. theInstalledObjects(3) = "MSWC.Tools"
  9. theInstalledObjects(4) = "MSWC.Status"
  10. theInstalledObjects(5) = "MSWC.Counters"
  11. theInstalledObjects(6) = "IISSample.ContentRotator"
  12. theInstalledObjects(7) = "IISSample.PageCounter"
  13. theInstalledObjects(8) = "MSWC.PermissionChecker"
  14. theInstalledObjects(9) = "Scripting.FileSystemObject"
  15. theInstalledObjects(10) = "adodb.connection"
  16.     
  17. theInstalledObjects(11) = "SoftArtisans.FileUp"
  18. theInstalledObjects(12) = "SoftArtisans.FileManager"
  19. theInstalledObjects(13) = "JMail.SMTPMail"
  20. theInstalledObjects(14) = "CDONTS.NewMail"
  21. theInstalledObjects(15) = "Persits.MailSender"
  22. theInstalledObjects(16) = "LyfUpload.UploadFile"
  23. theInstalledObjects(17) = "Persits.Upload.1"
  24. %>
  25. <html>
  26. <head>
  27. <title>后台管理首页</title>
  28. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  29. <link rel="stylesheet" href="inc/Admin_Style.css">
  30. </head>
  31. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  32. <table border="0" cellspacing="0" width="100%" cellpadding="0" id="table1">
  33. <tr>
  34. <td>
  35. <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table2">
  36. <tr>
  37. <td width="481" background="IMAGES/admin_main_01.gif" height="25">
  38. &nbsp;</td>
  39. <td>&nbsp;</td>
  40. <td width="20">&nbsp;</td>
  41. </tr>
  42. <tr>
  43. <td><img height="43" src="IMAGES/admin_main_02.gif" width="481"></td>
  44. <td vAlign="top"> </td>
  45. <td>&nbsp;</td>
  46. </tr>
  47. <tr>
  48. <td><img height="35" src="IMAGES/admin_main_03.gif" width="481"></td>
  49. <td align="right" background="IMAGES/admin_main_04bg.gif">
  50. <img height="35" src="IMAGES/admin_main_04.gif" width="68"></td>
  51. <td background="IMAGES/admin_main_04bg.gif">&nbsp;</td>
  52. </tr>
  53. </table>
  54. <table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table3">
  55. <tr>
  56. <td>&nbsp;</td>
  57. </tr>
  58. </table>
  59. </td>
  60. </tr>
  61. </table>
  62. <!--#include file="top1.asp"-->
  63. <br>
  64. <table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center>
  65.   <tr align="center" bgcolor="#429AEF"> 
  66.     <td height=25 colspan=2 ><strong><font color="#FFFFFF">服 务 器 信 息</font></strong><tr> 
  67.   <tr> 
  68.     <td width="50%"  class="tdbg" height=23>服务器类型:<%=Request.ServerVariables("OS")%>(IP:<%=Request.ServerVariables("LOCAL_ADDR")%>)</td>
  69.     <td width="50%" class="tdbg">脚本解释引擎:<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
  70.   </tr>
  71.   <tr> 
  72.     <td width="50%" class="tdbg" height=23>站点物理路径:<%=request.ServerVariables("APPL_PHYSICAL_PATH")%></td>
  73.     <td width="50%" class="tdbg">数据库地址:<%=db%></td>
  74.   </tr>
  75.   <tr> 
  76.     <td width="50%" class="tdbg" height=23>FSO文本读写:
  77.       <%If Not IsObjInstalled(theInstalledObjects(9)) Then%>
  78.       <font color="red"><b>×</b></font>
  79.       <%else%>
  80.       <b>√</b>
  81.       <%end if%></td>
  82.     <td width="50%" class="tdbg">数据库使用:
  83.       <%If Not IsObjInstalled(theInstalledObjects(10)) Then%>
  84.       <font color="red"><b>×</b></font>
  85.       <%else%>
  86.       <b>√</b>
  87.       <%end if%></td>
  88.   </tr>
  89.   <tr> 
  90.     <td width="50%" class="tdbg" height=23>Jmail组件支持:
  91.       <%If Not IsObjInstalled(theInstalledObjects(13)) Then%>
  92.       <font color="red"><b>×</b></font>
  93.       <%else%>
  94.       <b>√</b>
  95.       <%end if%></td>
  96.     <td width="50%" class="tdbg">CDONTS组件支持:
  97.       <%If Not IsObjInstalled(theInstalledObjects(14)) Then%>
  98.       <font color="red"><b>×</b></font>
  99.       <%else%>
  100.       <b>√</b>
  101.       <%end if%></td>
  102.   </tr>
  103.   <tr>
  104.     <td class="tdbg" height=23> </td>
  105.     <td align="right" class="tdbg"> </td>
  106.   </tr>
  107. </table>
  108. <br>
  109. <table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center>
  110.   <tr align="center" bgcolor="#429AEF"> 
  111.     <td height=25 ><strong><font color="#FFFFFF" Arial, Helvetica, sans-serif>联 系 我 们</font></strong> 
  112.   <tr> 
  113.     <td width="100%"  class="tdbg" height=138> </td>
  114.   </tr>
  115.   </table>
  116. <div align="center"><br>
  117.   <BR>
  118. </div>
  119. </body>
  120. </html>
  121. <%
  122. Function IsObjInstalled(strClassString)
  123. On Error Resume Next
  124. IsObjInstalled = False
  125. Err = 0
  126. Dim xTestObj
  127. Set xTestObj = Server.CreateObject(strClassString)
  128. If 0 = Err Then IsObjInstalled = True
  129. Set xTestObj = Nothing
  130. Err = 0
  131. End Function
  132. %>