Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

155 lines
5.1 KiB

  1. <%@ Language=VBScript %>
  2. <% '==================================================
  3. ' Microsoft Server Appliance
  4. '
  5. ' About Page
  6. '
  7. ' Copyright (c) 1999 - 2000 Microsoft Corporation. All rights reserved.
  8. '================================================== %>
  9. <% Option Explicit %>
  10. <!-- #include file="sh_page.asp" -->
  11. <%
  12. Dim objAM
  13. Dim objOS
  14. Dim objHelper
  15. Dim obj
  16. Dim strOSName
  17. Dim strOSBuildNumber
  18. Dim strBuildNum
  19. Dim strPID
  20. Dim iSP
  21. Dim strReturnURL
  22. Dim L_NOOEM_MESSAGE
  23. On Error Resume Next
  24. Set objLocMgr = Server.CreateObject("ServerAppliance.LocalizationManager")
  25. strSourceName = "sakitmsg.dll"
  26. if Err.number <> 0 then
  27. Response.Write "Error in localizing the web content "
  28. Response.End
  29. end if
  30. '-----------------------------------------------------
  31. 'START of localization content
  32. Dim L_PAGETITLE_TEXT
  33. Dim L_ABOUTLBL_TEXT
  34. Dim L_MIC_WINDOWS_TEXT
  35. Dim L_VERSION_TEXT
  36. Dim L_COPYRIGHT_TEXT
  37. Dim L_PRODUCTID_TEXT
  38. Dim L_WARNING_TEXT
  39. Dim L_OS_BUILD_NUMBER
  40. L_PAGETITLE_TEXT = objLocMgr.GetString(strSourceName, "&H40010005",varReplacementStrings)
  41. L_ABOUTLBL_TEXT = objLocMgr.GetString(strSourceName, "&H40010006",varReplacementStrings)
  42. L_MIC_WINDOWS_TEXT = objLocMgr.GetString(strSourceName, "&H40010007",varReplacementStrings)
  43. L_VERSION_TEXT = objLocMgr.GetString(strSourceName, "&H40010008",varReplacementStrings)
  44. L_COPYRIGHT_TEXT = objLocMgr.GetString(strSourceName, "&H40010009",varReplacementStrings)
  45. L_PRODUCTID_TEXT = objLocMgr.GetString(strSourceName, "&H4001000A",varReplacementStrings)
  46. L_WARNING_TEXT = objLocMgr.GetString(strSourceName, "&H4001000B",varReplacementStrings)
  47. L_OS_BUILD_NUMBER = objLocMgr.GetString(strSourceName, "&H40010038", varReplacementStrings)
  48. 'End of localization content
  49. '-----------------------------------------------------
  50. strReturnURL = Request("ReturnURL")
  51. Set objAM = GetObject("WINMGMTS:{impersonationLevel=impersonate}!\\" & GetServerName & "\root\cimv2:Microsoft_SA_Manager=@" )
  52. set objOS = GetObject("WINMGMTS:{impersonationLevel=impersonate}!\\" & GetServerName & "\root\cimv2:Win32_OperatingSystem").Instances_
  53. for each obj in objOS
  54. strOSName = obj.Caption
  55. strOSBuildNumber = obj.BuildNumber
  56. iSP = obj.ServicePackMajorVersion
  57. exit for
  58. next
  59. Dim strWinOS
  60. strWinOS = "Microsoft Windows 2000 Advanced Server"
  61. if strOSName = strWinOS then
  62. if iSP = 1 then
  63. Err.Clear
  64. set objHelper = Server.CreateObject("ServerAppliance.SAHelper")
  65. if Err.Number = 0 then
  66. if objHelper.IsWindowsPowered() = true then
  67. strOSName = "Windows Powered"
  68. end if
  69. set objHelper = Null
  70. end if
  71. end if
  72. end if
  73. strBuildNum = objAM.CurrentBuildNumber
  74. strPID = objAM.ProductId
  75. Set objAM = Nothing
  76. %>
  77. <html>
  78. <!-- Copyright (c) 1999 - 2000 Microsoft Corporation. All rights reserved-->
  79. <head>
  80. <title><% = L_PAGETITLE_TEXT %></title>
  81. <script language=JavaScript src="sh_page.js"></script>
  82. <link rel="STYLESHEET" type="text/css" href="sh_page.css">
  83. <meta http-equiv="Content-Type" content="text/html; charset=<%=GetCharSet()%>">
  84. </head>
  85. <body onDragDrop="return false;" oncontextmenu="return false;" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" class="AREAPAGEBODY">
  86. <form name="frmPage">
  87. <table border="0" width="100%" height="75" cellspacing="0" cellpadding=2 bgcolor=#FFFFFF>
  88. <TR>
  89. <TD align=center><IMG src="<%=m_VirtualRoot%>images/aboutbox_logo.gif" border=0></TD>
  90. </TR>
  91. <TR>
  92. <TD height=5 bgcolor=#CCCCFF></TD>
  93. </TR>
  94. </table>
  95. <BR>
  96. <%
  97. ServeAreaLabelBar(L_ABOUTLBL_TEXT) %>
  98. <table border="0" width="510" cellspacing="0" cellpadding=2>
  99. <tr>
  100. <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  101. <td colspan=3>
  102. <P><strong><ID ID=PID_1><%=L_MIC_WINDOWS_TEXT%></ID></strong><BR>
  103. <span class="AreaText"><ID ID=PID_201><%=L_VERSION_TEXT%></ID> <% =strBuildNum %><ID ID=PID_202>)</ID></span><BR>
  104. <ID ID=PID_3><%=L_COPYRIGHT_TEXT%></ID></P>
  105. <P><%=strOSName%>&nbsp;<%if iSP<>0 then response.write "SP " & iSP end if %>&nbsp;(<%=L_OS_BUILD_NUMBER%>&nbsp;<%=strOSBuildNumber%>)<BR>
  106. <ID ID=PID_4><%=L_PRODUCTID_TEXT%></ID> <% =strPID %></P>
  107. </td>
  108. </tr>
  109. <tr>
  110. <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  111. <td colspan=3>
  112. <P ID=PID_5><span class="AreaText" >
  113. <%=L_WARNING_TEXT%>
  114. </span></P>
  115. </td>
  116. <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  117. </tr>
  118. </table>
  119. <table border="0" width="510" cellspacing="0" cellpadding=0>
  120. <tr>
  121. <td valign="top" width="100%" align=right>
  122. <% ServeAreaButton L_FOKBUTTON_TEXT, "JavaScript:window.close();" %>
  123. </td>
  124. </tr>
  125. </table>
  126. </form>
  127. </body>
  128. </html>