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.

106 lines
2.8 KiB

  1. <%@ LANGUAGE="VBSCRIPT"%>
  2. <%Response.Expires = 0%>
  3. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HEAD>
  4. <META HTTP-EQUIV="Content-Type"
  5. CONTENT="text/html; CHARSET=iso-8859-1">
  6. <META NAME="GENERATOR"
  7. CONTENT="Microsoft Frontpage 2.0">
  8. <HEAD>
  9. <TITLE>Reboot Page</TITLE>
  10. <%
  11. 'Get the values sent by tasks page and store them in session variables
  12. Dim strCurrentPage
  13. Dim strCurrentTask
  14. Dim strFocusItem
  15. Dim objLocMgr
  16. Dim varReplacementStrings
  17. Dim strRebootConfirmText
  18. Const REBOOT_CONFIRM_TEXT = "&H4002000D"
  19. On Error Resume Next
  20. Err.Clear
  21. Set objLocMgr = Server.CreateObject("ServerAppliance.LocalizationManager")
  22. If Err.number = 0 Then
  23. strRebootConfirmText = objLocMgr.GetString("salocaluimsg.dll",REBOOT_CONFIRM_TEXT,varReplacementStrings)
  24. Set objLocMgr = Nothing
  25. End If
  26. If strRebootConfirmText = "" Then
  27. strRebootConfirmText = "Reboot will stop all the current works. Do you really want to proceed?"
  28. End If
  29. Err.Clear
  30. strCurrentPage = Request.QueryString("CurrentPage")
  31. strCurrentTask = Request.QueryString("CurrentTask")
  32. strFocusItem = Request.QueryString("FocusItem")
  33. If strCurrentPage <> "" Then
  34. Session("Task_CurrentPage") = strCurrentPage
  35. End If
  36. If strCurrentTask <> "" Then
  37. Session("Task_CurrentTask") = strCurrentTask
  38. End If
  39. If strFocusItem <> "" Then
  40. Session("Task_FocusItem") = strFocusItem
  41. End If
  42. %>
  43. <SCRIPT LANGUAGE="VBScript">
  44. <!--
  45. Option Explicit
  46. public iIdleTimeOut
  47. Sub window_onload()
  48. Dim objKeypad
  49. Set objKeypad = CreateObject("Ldm.SAKeypadController")
  50. objKeypad.Setkey 0,0,FALSE
  51. objKeypad.Setkey 1,0,FALSE
  52. objKeypad.Setkey 2,0,FALSE
  53. objKeypad.Setkey 3,0,FALSE
  54. objKeypad.Setkey 4,27,FALSE
  55. objKeypad.Setkey 5,13,FALSE
  56. Set objKeypad = Nothing
  57. iIdleTimeOut = window.SetTimeOut("IdleHandler()",300000)
  58. End Sub
  59. Sub keydown()
  60. window.clearTimeOut(iIdleTimeOut)
  61. iIdleTimeOut = window.SetTimeOut("IdleHandler()",300000)
  62. If window.event.keycode = 13 Then
  63. window.navigate "localui_setreboot.asp"
  64. End If
  65. If window.event.keycode = 27 Then
  66. window.navigate "localui_tasks.asp"
  67. End If
  68. End Sub
  69. Sub IdleHandler()
  70. window.navigate "localui_main.asp"
  71. End Sub
  72. -->
  73. </SCRIPT>
  74. <HEAD>
  75. <body RIGHTMARGIN=0 LEFTMARGIN=0 onkeydown="keydown">
  76. <A STYLE="position:absolute; top:0; left:0; font-size:10; font-family=arial;" onkeydown="keydown">
  77. <%=strRebootConfirmText%>
  78. </A>
  79. </body>
  80. </html>