Source code of Windows XP (NT5)
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.

79 lines
2.7 KiB

  1. <html>
  2. <head>
  3. <title> Terminal Services Connection to <%Response.Write Request.QueryString("Server")%></title>
  4. </head>
  5. <body>
  6. <script language="vbscript" >
  7. <!--
  8. const FullScreenWarnTxt1 = "Your current security settings do not allow automatically switching to fullscreen mode."
  9. const FullScreenWarnTxt2 = "You can use ctrl-alt-pause to toggle your terminal services session to fullscreen mode"
  10. const FullScreenTitleTxt = "Terminal Services Connection "
  11. Const ErrMsgText = "Error connecting to terminal server: "
  12. sub window_onLoad()
  13. If not "<%Response.Write Request.QueryString("Server")%>" = "" then
  14. srvName = "<%Response.Write Request.QueryString("Server")%>"
  15. else
  16. srvName = Document.location.hostname
  17. end if
  18. MsTscAx.Server = srvName
  19. MsTscAx.AdvancedSettings.ProxyServer = "<%Response.Write Request.QueryString("ProxyServer")%>"
  20. MsTscAx.AdvancedSettings.ProxyUseHttps = true
  21. Document.all.srvNameField.innerHtml = srvName
  22. MsTscAx.Domain = "<%Response.Write Request.QueryString("Domain")%>"
  23. MsTscAx.UserName = "<%Response.Write Request.QueryString("UserName")%>"
  24. if "<% Response.Write Request.QueryString("FS") %>" = "1" then
  25. if MsTscAx.SecuredSettingsEnabled then
  26. MsTscAx.SecuredSettings.FullScreen = "<% Response.Write Request.QueryString("FS") %>" = "1"
  27. else
  28. msgbox (FullScreenWarnTxt1 & vbCrLf & FullScreenWarnTxt2 )
  29. end if
  30. end if
  31. // MsTscAx.FullScreenTitle = FullScreenTitleTxt & "(" & "<%Response.Write Request.QueryString("Server")%>" & ")"
  32. MsTscAx.Connect()
  33. end sub
  34. -->
  35. </script>
  36. <center>
  37. <table>
  38. <tr>
  39. <OBJECT language="vbscript" ID="MsTscAx"
  40. CLASSID="CLSID:a41a4187-5a86-4e26-b40a-856f9035d9cb"
  41. CODEBASE="mstscax.cab#version=5,0,2221,1"
  42. WIDTH=<% resWidth = Request.QueryString("rW")
  43. if resWidth < 200 or resWidth > 1600 then
  44. resWidth = 800
  45. end if
  46. Response.Write resWidth %>
  47. HEIGHT=<% resHeight = Request.QueryString("rH")
  48. if resHeight < 200 or resHeight > 1200 then
  49. resHeight = 600
  50. end if
  51. Response.Write resHeight %>>
  52. </OBJECT>
  53. </tr>
  54. <tr>
  55. <br>
  56. <font size="1" color="#000000" face="Verdana, Arial, Helvetica">
  57. You are logged in to <i><span id="srvNameField"></span></i></font><br>
  58. </tr>
  59. <script language="VBScript">
  60. <!--
  61. sub MsTscAx_OnDisconnected(disconnectCode)
  62. if not disconnectCode = 2 then
  63. msgbox ErrMsgText & MsTscAx.Server
  64. end if
  65. 'redirect back to login page
  66. Window.Navigate("/")
  67. end sub
  68. -->
  69. </script>
  70. </table>
  71. </center>
  72. </body>
  73. </html>