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.

161 lines
3.8 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% 'Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <% if Session("FONTSIZE") = "" then %>
  5. <!--#include file="iito.inc"-->
  6. <% else %>
  7. <!--#include file="iimlti.str"-->
  8. <!--#include file="iimltihd.str"-->
  9. <!--#include file="iisetfnt.inc"-->
  10. <%
  11. dim TotalWidth
  12. TotalWidth = L_IPADDRESSCOLWIDTH_NUM + L_IPPORTCOLWIDTH_NUM + L_SSLPORTCOLWIDTH_NUM + L_HOSTCOLWIDTH_NUM
  13. %>
  14. <HTML>
  15. <HEAD>
  16. <TITLE></TITLE>
  17. </HEAD>
  18. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" LINK="#000000" VLINK="#000000" ALINK="navy" TOPMARGIN=10 TEXT="#000000" onLoad="loadList();loadHelp();">
  19. <FORM NAME="userform">
  20. <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2>
  21. <TR>
  22. <TD COLSPAN=4 >
  23. <%= sFont("","","",True) %>
  24. <%= L_MULTIPLE_TEXT %>
  25. <BR>&nbsp;
  26. </FONT>
  27. </TD>
  28. </TR>
  29. </TABLE>
  30. </FORM>
  31. </BODY>
  32. <SCRIPT LANGUAGE="JavaScript">
  33. <!--#include file="iijsfuncs.inc"-->
  34. <!--#include file="iijsls.inc"-->
  35. function loadHelp(){
  36. top.title.Global.helpFileName="iipy_27";
  37. }
  38. function loadList(){
  39. parent.list.location.href="iimltils.asp";
  40. }
  41. function buildListForm(){
  42. numrows=0;
  43. for (var i=0; i < cachedList.length; i++) {
  44. numrows=numrows + 1;
  45. }
  46. qstr="numrows="+numrows;
  47. qstr=qstr+"&cols=ServerBindings&cols=SecureBindings"
  48. top.hlist.location.href="iihdn.asp?"+qstr;
  49. <% 'the list values will be grabbed by the hiddenlistform script... %>
  50. }
  51. function SetListVals(){
  52. listForm=top.hlist.document.hiddenlistform;
  53. j=0;
  54. var bindings = "";
  55. var first=true;
  56. for (var i=0; i < cachedList.length; i++) {
  57. if (!cachedList[i].deleted){
  58. if (first)
  59. {
  60. top.opener.document.userform.hdnPort.value= cachedList[i].ipport;
  61. top.opener.document.userform.hdnIPA.value= cachedList[i].ipaddress;
  62. top.opener.document.userform.hdnHost.value= cachedList[i].host;
  63. first = false;
  64. }
  65. if (cachedList[i].sslport != ""){
  66. listForm.elements[j++].value="";
  67. listForm.elements[j++].value=cachedList[i].ipaddress+":"+cachedList[i].sslport +":"+cachedList[i].host;
  68. }
  69. else{
  70. bindings += (cachedList[i].ipaddress+":"+cachedList[i].ipport+":"+cachedList[i].host + ",");
  71. listForm.elements[j++].value=cachedList[i].ipaddress+":"+cachedList[i].ipport+":"+cachedList[i].host;
  72. listForm.elements[j++].value="";
  73. }
  74. }
  75. cachedList[i].updated=false;
  76. }
  77. top.opener.document.userform.ServerBindings.value = bindings
  78. }
  79. function listObj(id,ia,ip,sp,hn){
  80. this.id = id;
  81. this.deleted=false;
  82. this.newitem=false;
  83. this.updated=false;
  84. this.ipaddress=initParam(ia,"");
  85. this.ipport=initParam(ip,"");
  86. this.sslport=initParam(sp,"");
  87. this.host=initParam(hn,"");
  88. this.isSecure = (this.sslport != "");
  89. }
  90. listFunc=new listFuncs("ipaddress","isSecure",top.opener.top);
  91. cachedList=new Array()
  92. <%
  93. On Error Resume Next
  94. Dim path, currentobj
  95. Dim aBinding, ssl, arraybound, Binding, SecureBinding
  96. Dim barraysize, added, i, j, nexti
  97. path=Session("spath")
  98. Session("path")=path
  99. Session("SpecObj")=path
  100. Session("SpecProps")="ServerBindings"
  101. Set currentobj=GetObject(path)
  102. Redim aBinding(UBound(currentobj.ServerBindings))
  103. Redim ssl(UBound(currentobj.SecureBindings))
  104. aBinding=currentobj.ServerBindings
  105. ssl=currentobj.SecureBindings
  106. if not IsArray(ssl) then
  107. ssl=Array(1)
  108. ssl(0)=currentobj.SecureBindings
  109. end if
  110. nexti=0
  111. arraybound=UBound(aBinding)
  112. if aBinding(0) = "" then
  113. aBinding(0) = ":80:"
  114. end if
  115. for i=0 to arraybound
  116. Binding=split(aBinding(i),":")
  117. %>cachedList[<%= i %>]=new listObj(<%= i %>,"<%= Binding(0) %>","<%= Binding(1) %>","","<%= Binding(2) %>");<%
  118. Next
  119. nexti = i
  120. arraybound=UBound(ssl)
  121. for each secitem in ssl
  122. SecureBinding=split(secitem,":")
  123. %>cachedList[<%= nexti %>]=new listObj(<%= nexti %>,"<%= SecureBinding(0) %>","","<%= SecureBinding(1) %>","<%= SecureBinding(2) %>");<%
  124. nexti=nexti + 1
  125. Next
  126. %>
  127. </SCRIPT>
  128. </HTML>
  129. <% end if %>