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.

95 lines
2.2 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>Dynamic Ip Page</TITLE>
  10. <%
  11. Dim objLocMgr
  12. Dim varReplacementStrings
  13. Dim strConfirmAutoText
  14. Const CONFIRM_AUTO_TEXT = "&H40020006"
  15. On Error Resume Next
  16. Err.Clear
  17. Set objLocMgr = Server.CreateObject("ServerAppliance.LocalizationManager")
  18. If Err.number = 0 Then
  19. strConfirmAutoText = objLocMgr.GetString("salocaluimsg.dll",CONFIRM_AUTO_TEXT,varReplacementStrings)
  20. Set objLocMgr = Nothing
  21. End If
  22. If strConfirmAutoText = "" Then
  23. strConfirmAutoText = "IP address will be obtained from server automatically"
  24. End If
  25. Err.Clear
  26. 'Since we are in this page, dynamic ip is selected
  27. Session("Network_FocusItem") = "0"
  28. %>
  29. <SCRIPT LANGUAGE="VBScript">
  30. <!--
  31. Option Explicit
  32. public iIdleTimeOut
  33. Sub window_onload()
  34. Dim objKeypad
  35. Set objKeypad = CreateObject("Ldm.SAKeypadController")
  36. objKeypad.Setkey 0,0,FALSE
  37. objKeypad.Setkey 1,0,FALSE
  38. objKeypad.Setkey 2,0,FALSE
  39. objKeypad.Setkey 3,0,FALSE
  40. objKeypad.Setkey 4,27,FALSE
  41. objKeypad.Setkey 5,13,FALSE
  42. Set objKeypad = Nothing
  43. iIdleTimeOut = window.SetTimeOut("IdleHandler()",300000)
  44. End Sub
  45. Sub keydown()
  46. window.clearTimeOut(iIdleTimeOut)
  47. iIdleTimeOut = window.SetTimeOut("IdleHandler()",300000)
  48. If window.event.keycode = 13 Then
  49. window.navigate "localui_setdynamic.asp"
  50. End If
  51. If window.event.keycode = 27 Then
  52. window.navigate "localui_network.asp"
  53. End If
  54. End Sub
  55. Sub IdleHandler()
  56. window.navigate "localui_main.asp"
  57. End Sub
  58. -->
  59. </SCRIPT>
  60. <HEAD>
  61. <body RIGHTMARGIN=0 LEFTMARGIN=0 onkeydown="keydown">
  62. <A STYLE="position:absolute; top:0; left:0; font-size:10; font-family=arial;" onkeydown="keydown">
  63. <%=strConfirmAutoText%>
  64. </A>
  65. </body>
  66. </html>