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.

105 lines
3.4 KiB

  1. <!-- #include file="sh_page.asp" -->
  2. <!-- #include file="tabbar.asp" -->
  3. <%
  4. On Error Resume Next
  5. Set objLocMgr = Server.CreateObject("ServerAppliance.LocalizationManager")
  6. strSourceName = "sakitmsg.dll"
  7. if Err.number <> 0 then
  8. Response.Write "Error in localizing the web content "
  9. Response.End
  10. end if
  11. '-----------------------------------------------------
  12. 'START of localization content
  13. Dim L_PAGETITLE_TEXT
  14. Dim L_SECURITYLBL_TEXT
  15. dim L_SECURITYENABLE_TEXT
  16. Dim L_INSTALLED_FIRSTTIME_TEXT
  17. Dim L_IMPORTANT_TEXT
  18. Dim L_SECURITY_HELP_TEXT
  19. Dim L_ENABLE_SECURITY
  20. L_PAGETITLE_TEXT = objLocMgr.GetString(strSourceName, "&H40010012",varReplacementStrings)
  21. L_SECURITYLBL_TEXT = objLocMgr.GetString(strSourceName, "&H40010013",varReplacementStrings)
  22. L_SECURITYENABLE_TEXT = objLocMgr.GetString(strSourceName, "&H40010014",varReplacementStrings)
  23. L_INSTALLED_FIRSTTIME_TEXT = objLocMgr.GetString(strSourceName, "&H40010015",varReplacementStrings)
  24. L_IMPORTANT_TEXT = objLocMgr.GetString(strSourceName, "&H40010016",varReplacementStrings)
  25. L_SECURITY_HELP_TEXT = objLocMgr.GetString(strSourceName, "&H40010017",varReplacementStrings)
  26. L_ENABLE_SECURITY = objLocMgr.GetString(strSourceName, "&H40010018",varReplacementStrings)
  27. 'End of localization content
  28. '-----------------------------------------------------
  29. %>
  30. <HTML>
  31. <HEAD>
  32. <TITLE><%=L_PAGETITLE_TEXT%></TITLE>
  33. <LINK REL="stylesheet" TYPE="text/css" HREF="sh_page.css">
  34. <SCRIPT LANGUAGE="JavaScript" SRC="sh_page.js"></SCRIPT>
  35. </HEAD>
  36. <BODY onDragDrop="return false;" topmargin="0" LEFTMARGIN="0">
  37. <%
  38. ServePageWaterMarkNavIE
  39. ServeTabBar
  40. ServeMoreTasks
  41. call ServePageWaterMarkEndNavIE("images/security_water.gif", "images/oem_logo.gif", false)
  42. %>
  43. </BODY>
  44. </HTML>
  45. <%
  46. Function ServeMoreTasks
  47. Dim arrTaskTitle()
  48. Dim arrTaskURL()
  49. Dim arrTaskIconPath()
  50. Dim arrTaskHelpText()
  51. Dim i
  52. Dim objElements
  53. Dim objItem
  54. Dim objService
  55. Dim objInet
  56. Dim L_SECURITYLBL_TEXT
  57. Dim L_SECURITYENABLE_TEXT
  58. Dim L_NOTASKS_TEXT
  59. Dim blnTest
  60. on Error resume next
  61. Set objService = GetObject("WINMGMTS:{impersonationLevel=impersonate}!\\" & GetServerName & "\root\cimv2:Microsoft_SA_Service.ServiceName=""User Management""")
  62. If Not objService.IsEnabled Then
  63. Response.Write "<BR>"
  64. ServeStandardLabelBar(L_SECURITYLBL_TEXT)
  65. %>
  66. <table border="0" width="386" cellspacing="0">
  67. <tr>
  68. <td width="30" height="20" colspan=2 valign="middle">&nbsp;</td>
  69. <td width="339" height="20">
  70. <P ID=PID_1> <%=L_INSTALLED_FIRSTTIME_TEXT%></P>
  71. <P ID=PID_4><strong><%=L_IMPORTANT_TEXT%></strong><BR><%=L_SECURITY_HELP_TEXT%></P>
  72. <strong><P id=P3_ID01> <a href="" title="<% =L_SECURITYENABLE_TEXT %>" onMouseOver="window.status='<% =L_SECURITYENABLE_TEXT %>';return true;"
  73. onclick="this.href=OpenPage('usermgmt/user_enable.asp'); return true;"><ID ID=PID_3><%=L_ENABLE_SECURITY%></ID></a></strong></td>
  74. </tr>
  75. </table>
  76. <% Else
  77. Response.Write "<BR>"
  78. ServeStandardLabelBar(L_SECURITYLBL_TEXT)
  79. ServeElementBlock "SECURITY", L_NOTASKS_TEXT, True, True, False
  80. End If
  81. Set objService = Nothing
  82. Response.Write "</body></html>"
  83. End Function
  84. %>