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.

244 lines
5.2 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="iiauth.str"-->
  8. <!--#include file="iianoncm.str"-->
  9. <%
  10. On Error Resume Next
  11. Dim path, currentobj
  12. path=Session("dpath")
  13. Session("path")=path
  14. Session("SpecObj")=""
  15. Session("SpecProps")=""
  16. Set currentobj=GetObject(path)
  17. %>
  18. <!--#include file="iiset.inc"-->
  19. <!--#include file="iisetfnt.inc"-->
  20. <%
  21. ' Do not use top.title.Global.update flag if page is loaded into a dialog
  22. bUpdateGlobal = false
  23. %>
  24. <HTML>
  25. <HEAD>
  26. <TITLE>New</TITLE>
  27. <SCRIPT LANGUAGE="javascript">
  28. <!--#include file="iijsfuncs.inc"-->
  29. function loadHelp()
  30. {
  31. top.title.Global.helpFileName="iipy_6";
  32. }
  33. function disableDefault(dir,fromCntrl, toCntrl)
  34. {
  35. if (!dir)
  36. {
  37. if (fromCntrl.value !="")
  38. {
  39. toCntrl.value=fromCntrl.value;
  40. fromCntrl.value="";
  41. }
  42. }
  43. else
  44. {
  45. if (toCntrl.value !="")
  46. {
  47. fromCntrl.value=toCntrl.value;
  48. toCntrl.value="";
  49. }
  50. }
  51. }
  52. function enableDefault(chkCntrl)
  53. {
  54. chkCntrl.checked=true;
  55. }
  56. function SetDomain()
  57. {
  58. dname = document.userform.DefaultLogonDomain.value;
  59. dname=prompt("<%= L_ENTERDOMAIN_TEXT %>",dname);
  60. if ((dname != "") && (dname != null))
  61. {
  62. document.userform.DefaultLogonDomain.value=dname;
  63. }
  64. }
  65. function warnBasic(chkcntrl)
  66. {
  67. if (chkcntrl.checked)
  68. {
  69. if (!confirm("<%= L_BASICWARNING1_TEXT & L_BASICWARNING2_TEXT & L_BASICWARNING3_TEXT & L_BASICWARNING4_TEXT%>"))
  70. {
  71. chkcntrl.checked = false;
  72. }
  73. }
  74. }
  75. function warnDigest(chkcntrl)
  76. {
  77. if (chkcntrl.checked)
  78. {
  79. if (!confirm("<%= L_DIGESTWARN_TEXT %>"))
  80. {
  81. chkcntrl.checked = false;
  82. }
  83. }
  84. }
  85. function SetUser()
  86. {
  87. <% if Session("IsAdmin") then %>
  88. thefile="iipop.asp?pg=iianon.asp&tools=no";
  89. title="AnonymousUser"
  90. width = <%= iHScale(L_IIANON_W) %>;
  91. height = <%= iVScale(L_IIANON_H) %>;
  92. popbox=window.open(thefile,title,"toolbar=no,scrollbars=yes,directories=no,menubar=no,width="+width+",height="+height);
  93. if(popbox !=null){
  94. if (popbox.opener==null){
  95. popbox.opener=self;
  96. }
  97. }
  98. <% end if %>
  99. }
  100. </SCRIPT>
  101. </HEAD>
  102. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" LINK="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0 onLoad="loadHelp();" >
  103. <FORM NAME="userform">
  104. <TABLE HEIGHT="100%" WIDTH="100%" CELLPADDING=0 CELLSPACING=0>
  105. <TR><TD VALIGN="top">
  106. <TABLE BORDER=0 BGCOLOR="<%= Session("BGCOLOR") %>" CELLPADDING=10 CELLSPACING=0>
  107. <TR>
  108. <TD>
  109. <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=0>
  110. <TR>
  111. <TD VALIGN="top" COLSPAN = 2>
  112. <%= sFont("","","",True) %>
  113. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  114. <% if Session("IsAdmin") then %>
  115. <%= checkbox("AuthAnonymous","setCntrlState(this.checked,btnAnonUser);", false) %>
  116. <% else %>
  117. <%= checkbox("AuthAnonymous","", false) %>
  118. <% end if %>
  119. <B>
  120. <%= L_ANON_TEXT %>
  121. </B>
  122. <IMG SRC="images/hr.gif" WIDTH=<%= L_ANON_HR %> HEIGHT=2 BORDER=0 ALIGN="middle">
  123. <P>
  124. <%= L_NOUSERNEEDED_TEXT %>
  125. </TD>
  126. </TR>
  127. <TD >
  128. <%= sFont("","","",True) %>
  129. <%= L_ACCOUNTUSED_TEXT %>
  130. </TD>
  131. <TD>
  132. <%= sFont("","","",True) %>
  133. <INPUT TYPE="button" NAME="btnAnonUser" VALUE="<%= L_EDIT_TEXT %>" OnClick="SetUser();">
  134. <INPUT TYPE="hidden" NAME="AnonymousUserName" VALUE="<%= currentobj.AnonymousUserName %>">
  135. <INPUT TYPE="hidden" NAME="AnonymousUserPass" VALUE="<%= currentobj.AnonymousUserPass %>">
  136. <INPUT TYPE="hidden" NAME="AnonymousPasswordSync" VALUE="<%= currentobj.AnonymousPasswordSync %>">
  137. </FONT>
  138. </TD>
  139. </TR>
  140. <TR>
  141. <TD COLSPAN = 2>
  142. &nbsp;
  143. </TD>
  144. </TR>
  145. <TR>
  146. <TD VALIGN="top" COLSPAN = 2>
  147. <%= sFont("","","",True) %>
  148. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  149. <B>
  150. <%= L_AUTHACCESS_TEXT %>
  151. </B>
  152. <IMG SRC="images/hr.gif" WIDTH=<%= L_AUTHACCESS_HR %> HEIGHT=2 BORDER=0 ALIGN="middle">
  153. <P>
  154. <%= L_AUTHRESTR_TEXT %><BR>
  155. &nbsp;&nbsp;* <%= L_ANONDISABLED_TEXT %><BR>
  156. &nbsp;&nbsp;* <%= L_ACCESSRESTRICTED_TEXT %> <P>
  157. </FONT>
  158. </TD>
  159. </TR>
  160. <TR>
  161. <TD>
  162. <%= sFont("","","",True) %>
  163. <%= checkbox("AuthBasic","warnBasic(this);setCntrlState(this.checked,btnDefDomain);", false) %>
  164. <%= L_BASIC_TEXT %>&nbsp; <%= L_CLEARPASS_TEXT %>
  165. <P>
  166. <%= L_DEFAULTDOMAIN_TEXT %>&nbsp;&nbsp;
  167. <P>
  168. </TD>
  169. <TD ALIGN="bottom">
  170. <INPUT TYPE="button" NAME="btnDefDomain" VALUE="<%= L_EDIT_TEXT %>" OnClick="SetDomain();">
  171. <INPUT TYPE="hidden" NAME="DefaultLogonDomain" VALUE="<%= currentobj.DefaultLogonDomain %>">
  172. </FONT>
  173. </TD>
  174. </TR>
  175. <TR>
  176. <TD>
  177. <%= sFont("","","",True) %>
  178. <%= checkbox("AuthMD5","warnDigest(this);", false) %>
  179. <%= L_DIGEST_TEXT %>&nbsp;
  180. </FONT>
  181. </TD>
  182. </TR>
  183. <TR>
  184. <TD>
  185. <%= sFont("","","",True) %>
  186. <%= checkbox("AuthNTLM","", false) %>
  187. <%= L_NTLM_TEXT %>
  188. </FONT>
  189. </TD>
  190. </TR>
  191. </TABLE>
  192. </BLOCKQUOTE>
  193. </TD>
  194. </TR>
  195. </TABLE>
  196. </FORM>
  197. <P>
  198. </TD></TR>
  199. </TABLE>
  200. <script language="JavaScript">
  201. <% if Session("IsAdmin") then %>
  202. setCntrlState(document.userform.chkAuthAnonymous.checked,document.userform.btnAnonUser);
  203. <% else %>
  204. setCntrlState(false,document.userform.btnAnonUser);
  205. <% end if %>
  206. setCntrlState(document.userform.chkAuthBasic.checked,document.userform.btnDefDomain);
  207. </script>
  208. </BODY>
  209. </HTML>
  210. <% end if %>