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.

306 lines
7.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="iifvs.str"-->
  8. <!--#include file="iilog.str"-->
  9. <%
  10. Const DEFAULTMAXCONNECTIONS_NUM = 1000
  11. Const DEFAULTPORT = 21
  12. On Error Resume Next
  13. Dim path, currentobj
  14. path=Session("spath")
  15. Session("path")=path
  16. Session("SpecObj")=""
  17. Session("SpecProps")=""
  18. Set currentobj=GetObject(path)
  19. %>
  20. <!--#include file="iiset.inc"-->
  21. <!--#include file="iisetfnt.inc"-->
  22. <!--#include file="iibind.inc"-->
  23. <%
  24. function writeLogTypes(fieldname,value, id, adminonly)
  25. On Error Resume Next
  26. if id = currentobj.LogPlugInClsid then
  27. writeLogTypes="<OPTION SELECTED VALUE='" & id & "'>" & value
  28. else
  29. writeLogTypes="<OPTION VALUE='" & id & "'>" & value
  30. end if
  31. end function
  32. %>
  33. <html>
  34. <head>
  35. <title></title>
  36. <script language="JavaScript">
  37. top.title.Global.helpFileName="iipz";
  38. <!--#include file="iijsfuncs.inc"-->
  39. function SetBinding(){
  40. document.userform.ServerBindings.value=document.userform.hdnIPA.value + ":" + document.userform.hdnPort.value + ":";
  41. }
  42. function SetrdoMax()
  43. {
  44. document.userform.rdoMaxConnections[1].checked=true;
  45. document.userform.hdnhdnMaxConnections.value=document.userform.hdnMaxConnections.value;
  46. }
  47. function SetMaxConn()
  48. {
  49. curval=parseInt(document.userform.hdnMaxConnections.value);
  50. if( document.userform.rdoMaxConnections[0].checked )
  51. {
  52. document.userform.MaxConnections.value=2000000000;
  53. }
  54. else
  55. {
  56. document.userform.MaxConnections.value=document.userform.hdnMaxConnections.value;
  57. }
  58. }
  59. function setLogType(logCntrl,hdncntrl){
  60. if (logCntrl.checked){
  61. hdncntrl.value = 1;
  62. }
  63. else{
  64. hdncntrl.value = 0;
  65. }
  66. }
  67. function setLogUIType(logCntrl){
  68. var logGuid = logCntrl.options[logCntrl.selectedIndex].value;
  69. var logType = "";
  70. if (logGuid == "{FF160663-DE82-11CF-BC0A-00AA006111E0}")
  71. {
  72. logType = "EXT";
  73. }
  74. if (logGuid == "{FF16065B-DE82-11CF-BC0A-00AA006111E0}")
  75. {
  76. logType = "ODBC";
  77. }
  78. top.connect.location.href = "iisess.asp?setLogUI=" + logType +"&LogName=" +escape(logCntrl.options[logCntrl.selectedIndex].text);
  79. }
  80. </script>
  81. </head>
  82. <body bgcolor="<%= Session("BGCOLOR") %>" topmargin="5" text="#000000" >
  83. <TABLE WIDTH = 500 BORDER = 0>
  84. <TR>
  85. <TD>
  86. <%= sFont("","","",True) %>
  87. <B>
  88. <%= L_SITE_TEXT %>
  89. </B>
  90. <P>
  91. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  92. <%= L_VIRTUALSERVERID_TEXT %>
  93. <IMG SRC="images/hr.gif" WIDTH=<%= L_VIRTUALSERVERID_HR %> HEIGHT=2 BORDER=0 ALIGN="middle">
  94. <form name="userform">
  95. <table border="0" cellpadding="0">
  96. <tr>
  97. <td valign="bottom">
  98. <%= sFont("","","",True) %>
  99. <%= L_DESCRIPTION_TEXT %>
  100. </font>
  101. </td>
  102. <td valign="bottom" colspan="2">
  103. <%= sFont("","","",True) %>
  104. <%= text("ServerComment",L_DESCRIPTION_NUM,"","","",false,false) %>
  105. </font>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td valign="bottom">
  110. <%= sFont("","","",True) %>
  111. <%= L_IPADDRESS_TEXT %>
  112. </font>
  113. </td>
  114. <td valign="bottom" colspan="2">
  115. <%= sFont("","","",True) %>
  116. <%= writeBinding("IPAddress",L_IPADDRESS_NUM,"","","SetBinding();",false,true) %>
  117. <input type="hidden" name="ServerBindings" value="<%= currentobj.ServerBindings(0)(0) %>">
  118. </font>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td valign="bottom">
  123. <%= sFont("","","",True) %>
  124. <%= L_TCPPORT_TEXT %>
  125. </font>
  126. </td>
  127. <td valign="bottom">
  128. <%= sFont("","","",True) %>
  129. <%= writeBinding("IPPort",L_TCPPORT_NUM,"","","isNum(this);SetBinding();",false,true) %>
  130. </font>
  131. </td>
  132. </tr>
  133. </table>
  134. <P>
  135. <%= sFont("","","",True) %>
  136. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  137. <%= L_CONNPARAMS_TEXT %>
  138. <IMG SRC="images/hr.gif" WIDTH=<%= L_CONNPARAMS_HR %> HEIGHT=2 BORDER=0 ALIGN="middle">
  139. <P>
  140. <table border="0" cellpadding="0">
  141. <tr>
  142. <td colspan="2">
  143. <%= sFont("","","",True) %>
  144. <%= printradio("MaxConnections", (currentobj.MaxConnections >=2000000000), "SetMaxConn();setCntrlState(!this.checked,hdnMaxConnections);",true) %>
  145. <%= L_UNLIMITED_TEXT %>
  146. </font>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td valign="middle">
  151. <%= sFont("","","",True) %>
  152. <%= printradio("MaxConnections", (currentobj.MaxConnections < 2000000000), "SetMaxConn();setCntrlState(this.checked,hdnMaxConnections);",true) %>
  153. <%= L_LIMITTO_TEXT %>
  154. <input type="hidden" name="MaxConnections" value="<%= currentobj.MaxConnections %>">
  155. </font>
  156. </td>
  157. <td valign="bottom">
  158. <%= sFont("","","",True) %>
  159. <% if (currentobj.MaxConnections < 2000000000) then %>
  160. <%= inputbox(0,"TEXT","hdnMaxConnections",currentobj.MaxConnections,L_CONNECTIONS_NUM,"","", "isNum(this,1,2000000001);SetMaxConn();",false,True,False) %>
  161. <% else %>
  162. <%= inputbox(0,"TEXT","hdnMaxConnections",DEFAULTMAXCONNECTIONS_NUM,L_CONNECTIONS_NUM,"","", "isNum(this,1,2000000001);SetMaxConn();",false,True,False) %>
  163. <% end if %>
  164. </td>
  165. <td valign="middle">
  166. <%= sFont("","","",True) %>
  167. &nbsp;<%= L_CONNECTIONS_TEXT %>
  168. </font>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td> &nbsp;</td>
  173. </tr>
  174. <tr>
  175. <td valign="bottom"><%= sFont("","","",True) %><%= L_CONNTIMEOUT_TEXT %>&nbsp;&nbsp;</font></td>
  176. <td valign="bottom">
  177. <%= text("ConnectionTimeout",L_TIMEOUT_NUM,"","", "isNum(this,1,2147483646);",True,True) %>
  178. </td>
  179. <td valign="bottom">
  180. <%= sFont("","","",True) %>
  181. &nbsp;<%= L_SECONDS_TEXT %>
  182. </font>
  183. </td>
  184. </tr>
  185. <tr>
  186. <td colspan="2" height="4"></td>
  187. </tr>
  188. </table>
  189. <P>
  190. <%= sFont("","","",True) %>
  191. <%
  192. On Error Resume Next
  193. Dim LoggingModules,noLogging, Module, InfoNode, AvailMods
  194. Set LoggingModules = GetObject("IIS://localhost/logging")
  195. Set InfoNode = GetObject("IIS://localhost/MSFTPSVC/Info")
  196. AvailMods = InfoNode.LogModuleList
  197. if err <> 0 then
  198. noLogging = True
  199. end if
  200. %>
  201. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  202. <% if noLogging then %>
  203. <img align="top" src="images/checkoff.gif" width="13" height="13">
  204. <% else %>
  205. <% if currentobj.LogType = 1 then %>
  206. <INPUT TYPE="checkbox" NAME="hdnLogType" checked OnClick = "setLogType(this,document.userform.LogType);setCntrlState(this.checked,document.userform.hdnBtnLogProps);setCntrlState(this.checked,document.userform.LogPlugInClsid);top.title.Global.updated=true;">
  207. <% else %>
  208. <INPUT TYPE="checkbox" NAME="hdnLogType" OnClick = "setLogType(this,document.userform.LogType);setCntrlState(this.checked,document.userform.hdnBtnLogProps);setCntrlState(this.checked,document.userform.LogPlugInClsid);top.title.Global.updated=true;">
  209. <% end if %>
  210. <INPUT TYPE="hidden" NAME="LogType" VALUE="<%= currentobj.LogType %>">
  211. <% end if %>
  212. <%= L_LOGGING_TEXT %>
  213. <IMG SRC="images/hr.gif" WIDTH=<%= L_LOGGING_HR %> HEIGHT=2 BORDER=0 ALIGN="middle">
  214. <P>
  215. <table border="0" cellpadding="0">
  216. <tr>
  217. <td colspan="1">
  218. <%= sFont("","","",True) %>
  219. <%= L_LOGFORMAT_TEXT %>
  220. <%= writeSelect("LogPlugInClsid", 1,"setLogUIType(this);", false) %>
  221. <%
  222. if noLogging then
  223. Response.write "<OPTION>" & L_NONEINSTALLED_TEXT & "</OPTION>"
  224. else
  225. For Each Module in LoggingModules
  226. If InStr(AvailMods, Module.Name) Then
  227. Response.write writeLogTypes("LogPluginClsid", Module.Name, Module.LogModuleId,false)
  228. End If
  229. Next
  230. end if
  231. %>
  232. </select>
  233. </font>
  234. </td>
  235. <td><%= sFont("","","",True) %>
  236. <% if not noLogging then %>
  237. <input type="button" name="hdnBtnLogProps" value="<%= L_EDIT_TEXT %>" onclick="popBox('LogDetail',<%= L_IILOG_W %>,<%= L_IILOG_H %>,'iilog');">
  238. <% end if %>
  239. </FONT>
  240. </td>
  241. </tr>
  242. </table>
  243. </form>
  244. </font>
  245. </TD>
  246. </TR>
  247. </TABLE>
  248. <% if not noLogging then %>
  249. <script language="JavaScript">
  250. setCntrlState(document.userform.rdoMaxConnections[1].checked,document.userform.hdnMaxConnections);
  251. setCntrlState(document.userform.hdnLogType.checked,document.userform.LogPlugInClsid);
  252. setCntrlState(document.userform.hdnLogType.checked,document.userform.hdnBtnLogProps)
  253. setLogUIType(document.userform.LogPlugInClsid)
  254. </script>
  255. <% end if %>
  256. </body>
  257. </html>
  258. <% end if %>