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.

264 lines
6.1 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="iifvddir.str"-->
  8. <%
  9. On Error Resume Next
  10. Dim path, currentobj, spath, instobj
  11. path=UCase(Session("dpath"))
  12. spath=UCase(Session("spath"))
  13. if spath = "" then
  14. spath = Mid(path,1,InStr(path,"/ROOT")-1)
  15. Session("spath")=spath
  16. end if
  17. Set currentobj=GetObject(path)
  18. Set instobj=GetObject(spath)
  19. Session("SpecObj")=spath
  20. Session("SpecProps")="MSDosDirOutput"
  21. function writeFSPath(fieldsize,onchangeproc,onfocusproc, onblurproc,hidden,adminonly)
  22. On Error Resume Next
  23. Dim thispath, fspath, parenttype, parentobj
  24. if Session("vtype") = "dir" then
  25. thispath = Session("dpath")
  26. fspath = ""
  27. parenttype = ""
  28. Do Until Instr(parenttype, "VirtualDir") <> 0
  29. 'we need clear our path not found error..
  30. err = 0
  31. 'add our initial whack...
  32. fspath = "/" + fspath
  33. 'and cyle through the baseobj till we find the next whack,
  34. 'building up the path in new name as we go
  35. Do Until Right(thispath,1) = "/"
  36. fspath = Right(thispath,1) & fspath
  37. thispath = Mid(thispath,1,Len(thispath)-1)
  38. Loop
  39. 'once we're out, we need to lop off the last whack...
  40. thispath = Mid(thispath,1,Len(thispath)-1)
  41. 'and try to set the object again...
  42. Set parentobj=GetObject(thispath)
  43. if err <> 0 then
  44. parenttype = ""
  45. else
  46. parenttype=parentobj.KeyType
  47. end if
  48. Loop
  49. fspath = parentobj.Path & "\" & Replace(fspath,"/","\")
  50. writeFSPath = fspath
  51. else
  52. writeFSPath = text("Path",fieldsize,onchangeproc,onfocusproc, onblurproc,hidden,adminonly)
  53. end if
  54. end function
  55. %>
  56. <!--#include file="iiset.inc"-->
  57. <!--#include file="iisetfnt.inc"-->
  58. <HTML>
  59. <HEAD>
  60. <TITLE></TITLE>
  61. <SCRIPT LANGUAGE="JavaScript">
  62. <% if Session("vtype") = "svc" or Session ("vtype") = "server" then %>
  63. top.title.Global.helpFileName="iipz_5";
  64. <% else %>
  65. top.title.Global.helpFileName="iipz_3";
  66. <% end if %>
  67. var Global=top.title.Global;
  68. <!--#include file="iijsfuncs.inc"-->
  69. function disableDefault(dir,fromCntrl, toCntrl){
  70. if (!dir){
  71. if (fromCntrl.value !=""){
  72. toCntrl.value=fromCntrl.value;
  73. fromCntrl.value="";
  74. }
  75. }
  76. else{
  77. if (toCntrl.value !=""){
  78. fromCntrl.value=toCntrl.value;
  79. toCntrl.value="";
  80. }
  81. }
  82. }
  83. function enableDefault(chkCntrl){
  84. chkCntrl.checked=true;
  85. }
  86. function setLog(chkCntrl){
  87. if (chkCntrl.checked){
  88. document.userform.DontLog.value = "False";
  89. }
  90. else{
  91. document.userform.DontLog.value = "True";
  92. }
  93. }
  94. function SetBool(){
  95. if (document.userform.rdohdnMSDOSDirOutput[0].checked){
  96. document.userform.MSDOSDirOutput.value="False"
  97. }
  98. else{
  99. document.userform.MSDOSDirOutput.value="True"
  100. }
  101. }
  102. function listFuncs(){
  103. this.writeList=buildListForm;
  104. }
  105. function buildListForm(){
  106. <% if Session("vtype") <> "dir" then %>
  107. //if (document.userform.Path.value !="<%= currentobj.path %>"){
  108. //top.title.nodeList[0].deCache();
  109. //}
  110. <% end if %>
  111. }
  112. function chkPath(pathCntrl){
  113. if (pathCntrl.value != ""){
  114. top.connect.location.href = "iichkpath.asp?path=" + escape(pathCntrl.value);
  115. }
  116. }
  117. listFunc=new listFuncs();
  118. </SCRIPT>
  119. <% if Session("canBrowse") then %>
  120. <SCRIPT SRC="JSDirBrowser/JSBrowser.js">
  121. </SCRIPT>
  122. <SCRIPT LANGUAGE="JavaScript">
  123. JSBrowser = new BrowserObj(null,false,TDIR,<%= Session("FONTSIZE") %>);
  124. function setPath(cntrl){
  125. JSBrowser = new BrowserObj(cntrl,POP,TDIR,<%= Session("FONTSIZE") %>)
  126. }
  127. </SCRIPT>
  128. <% end if %>
  129. </HEAD>
  130. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=5 TEXT="#000000" LINK="#FFFFFF" >
  131. <%= sFont("","","",True) %>
  132. <HR>
  133. <FORM NAME="userform" onSubmit="return false">
  134. <TABLE BORDER=0 CELLPADDING=0>
  135. <TR>
  136. <TD VALIGN="middle">
  137. <%= sFont("","","",True) %>
  138. <%= L_PATH_TEXT %>
  139. </FONT>
  140. </TD>
  141. <TD VALIGN="middle">
  142. <%= sFont("","","",True) %>
  143. <%= writeFSPath(45,"chkPath(this);","","",false,true) %>&nbsp;&nbsp;
  144. </FONT>
  145. </TD>
  146. <TD>
  147. <%= sFont("","","",True) %>&nbsp;&nbsp;
  148. <% if Session("canBrowse") then %>
  149. <% if Session("IsAdmin") then %>
  150. <% if Session("vtype") <> "dir" then %>
  151. <INPUT TYPE="button" NAME="hdnBrowser" VALUE="<%= L_BROWSE_TEXT %>" OnClick="setPath(document.userform.Path);">
  152. <% end if %>
  153. <% end if %>
  154. <% end if %>
  155. </FONT>
  156. </TD>
  157. </TR>
  158. <TR HEIGHT= 4>
  159. <TD>&nbsp;
  160. </TD>
  161. </TR>
  162. <TR>
  163. <TD COLSPAN=3>
  164. <%= sFont("","","",True) %>
  165. <%= checkbox("AccessRead","",false) %>&nbsp;<%= L_READ_TEXT %><BR>
  166. <%= checkbox("AccessWrite","",false) %>&nbsp;<%= L_WRITE_TEXT %><BR>
  167. <% if currentobj.DontLog then %>
  168. <INPUT TYPE="checkbox" NAME="hdnDontLog" OnClick="top.title.Global.updated=true;setLog(this);">&nbsp;<%= L_LOGACCESS_TEXT %><BR>
  169. <INPUT TYPE="hidden" NAME="DontLog" VALUE="True">
  170. <% else %>
  171. <INPUT TYPE="checkbox" NAME="hdnDontLog" CHECKED OnClick="top.title.Global.updated=true;setLog(this);">&nbsp;<%= L_LOGACCESS_TEXT %><BR>
  172. <INPUT TYPE="hidden" NAME="DontLog" VALUE="False">
  173. <% end if %>
  174. </FONT>
  175. </TD>
  176. </TR>
  177. </TABLE>
  178. <% if Session("vtype") = "svc" or Session("vtype") = "server" then%>
  179. <!-- set the current object = to the instance level object for MSDOSDirOutput -->
  180. <P>
  181. <IMG SRC="images/hr.gif" WIDTH=5 HEIGHT=2 BORDER=0 ALIGN="middle">
  182. <%= L_DIRECTORYSTYLE_TEXT %>
  183. <IMG SRC="images/hr.gif" WIDTH=350 HEIGHT=2 BORDER=0 ALIGN="middle">
  184. <P>
  185. <TABLE BORDER=0 CELLPADDING=0 WIDTH = 200>
  186. <TR>
  187. <TD COLSPAN=3>
  188. <%= sFont("","","",True) %>
  189. <%= printradio("hdnMSDOSDirOutput", not instobj.MSDOSDirOutput, "SetBool();",false) %>
  190. &nbsp;
  191. <%= L_UNIX_TEXT %>&reg;
  192. </FONT>
  193. </TD>
  194. </TR>
  195. <TR>
  196. <TD COLSPAN=3>
  197. <%= sFont("","","",True) %>
  198. <%= printradio("hdnMSDOSDirOutput", instobj.MSDOSDirOutput, "SetBool();",false) %>
  199. &nbsp;
  200. <%= L_MSDOS_TEXT %>&reg;
  201. <% if instobj.MSDOSDirOutput then %>
  202. <INPUT TYPE="hidden" NAME="MSDOSDirOutput" VALUE="True">
  203. <% else %>
  204. <INPUT TYPE="hidden" NAME="MSDOSDirOutput" VALUE="False">
  205. <% end if %>
  206. </FONT>
  207. </TD>
  208. </TR>
  209. </TABLE>
  210. <% end if %>
  211. </FORM>
  212. </BLOCKQUOTE>
  213. </FONT>
  214. </BODY>
  215. </HTML>
  216. <%end if %>