home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_03.cab
/
iivdnt.asp
< prev
next >
Wrap
Text File
|
1997-11-12
|
12KB
|
418 lines
<%@ LANGUAGE=VBScript %>
<% Option Explicit %>
<% Response.Expires = 0 %>
<% if Session("FONTSIZE") = "" then %>
<!--#include file="iito.inc"-->
<% else %>
<%
' strings for localization
Const L_ACCESSDENIED_TEXT="Access Denied"
Const L_PATH_TEXT="Network share:"
Const L_CONNECTAS_TEXT="Connect as..."
Const L_USERNAME_TEXT="User Name:"
Const L_PASSWORD_TEXT="Password:"
Const L_ACCESSFLAGS_TEXT="Access Permissions"
Const L_APPFLAGS_TEXT="Permissions"
Const L_READ_TEXT="Read"
Const L_WRITE_TEXT="Write"
Const L_SCRIPT_TEXT="Script"
Const L_EXECUTE_TEXT="Execute (including Script)"
Const L_CONTENTCONTROL_TEXT="Content Control"
Const L_LOGACCESS_TEXT="Log access"
Const L_ENABLEBROWSING_TEXT="Directory browsing allowed"
Const L_INDEX_TEXT="Index this directory"
Const L_FRONTPAGE_TEXT="FrontPage Web"
Const L_APPLICATIONS_TEXT="Application Settings"
Const L_ISAPPROOT_TEXT="This is an application starting point"
Const L_STARTPOINT_TEXT="Starting Point"
Const L_APPNAME_TEXT="Name"
Const L_ISOLATEAPP_TEXT="Run in separate memory space"
Const L_NONE_TEXT = "None"
Const L_CREATE_TEXT = " Create "
Const L_REMOVE_TEXT = " Remove "
Const L_UNLOAD_TEXT = " Unload "
Const L_DISABLE_TEXT = " Disable "
Const L_ENABLE_TEXT = " Enable "
Const L_CONFIGURE_TEXT = " Configure... "
Const L_NA_TEXT = " "
Const L_APPMAP_TEXT = "Mappings... "
On Error Resume Next
Dim path, currentobj, spath, instobj, approot, thisroot, isApp, displayapproot
path=Session("dpath")
Set currentobj=GetObject(path)
spath=Session("spath")
Set instobj=GetObject(spath)
Session("SpecObj")=spath
Session("SpecProps")="FrontPageWeb"
approot = currentobj.AppRoot
if len(approot) <> 0 then
thisroot = LCase(currentobj.ADsPath)
approot = Mid(approot,Instr(approot,"w3svc/")+1)
thisroot = Mid(thisroot,Instr(thisroot,"w3svc/")+1) & "/"
if thisroot=approot then
isApp = True
end if
end if
%>
<!--#include file="iiset.inc"-->
<% Session("isInProc") = currentobj.AppIsolated %>
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
<% if UCase(Right(currentobj.ADsPath,4))="ROOT" then %>
top.title.Global.helpFileName="iipy_3";
<% else %>
top.title.Global.helpFileName="iipy_5";
<% end if %>
var Global=top.title.Global;
function disableDefault(dir,fromCntrl, toCntrl){
if (!dir){
if (fromCntrl.value !=""){
toCntrl.value=fromCntrl.value;
fromCntrl.value="";
}
}
else{
if (toCntrl.value !=""){
fromCntrl.value=toCntrl.value;
toCntrl.value="";
}
}
}
function enableDefault(chkCntrl){
chkCntrl.checked=true;
}
function setLog(chkCntrl){
if (chkCntrl.checked){
document.userform.DontLog.value = "False";
}
else{
document.userform.DontLog.value = "True";
}
}
function popBox(title, width, height, filename){
thefile=(filename + ".asp");
thefile="iipop.asp?pg="+thefile;
<% if Session("Browser") <> "IE3" then %>
width=width +25;
height=height + 50;
<% end if %>
popbox=window.open(thefile,title,"toolbar=no,scrollbars=yes,directories=no,menubar=no,width="+width+",height="+height);
if(popbox !=null){
if (popbox.opener==null){
popbox.opener=self;
}
}
}
function listFuncs(){
this.writeList=buildListForm;
}
function buildListForm(){
}
function setIsolated(isIsolated){
top.connect.location.href = "iisess.asp?isInProc=" + isIsolated;
}
function setApp(isIsolated){
if (document.userform.hdnIsApp.value == "False"){
top.connect.location.href = "iiaction.asp?a=CreateApp&isIsolated=" + isIsolated;
document.userform.hdnAppButton.value = "<%= L_REMOVE_TEXT %>";
document.userform.hdnConfigButton.value = "<%= L_CONFIGURE_TEXT %>";
document.userform.hdnMapButton.value = "<%= L_APPMAP_TEXT %>";
//document.userform.hdnAppUnload.value = "<%= L_UNLOAD_TEXT %>";
document.userform.hdnIsApp.value = "True";
}
else{
top.connect.location.href = "iiaction.asp?a=RemoveApp";
document.userform.hdnAppButton.value = "<%= L_CREATE_TEXT %>";
document.userform.hdnConfigButton.value = "<%= L_NA_TEXT %>";
document.userform.hdnMapButton.value = "<%= L_NA_TEXT %>";
//document.userform.hdnAppUnload.value = "<%= L_NA_TEXT %>";
document.userform.hdnIsApp.value = "False";
}
}
function unloadApp(){
if (document.userform.hdnIsApp.value == "True"){
top.connect.location.href = "iiaction.asp?a=UnloadApp";
}
}
function popConfig(){
if (document.userform.hdnIsApp.value == "True"){
popBox('AppProp',400,400,'iiapp');
}
}
function popAppMap(){
if (document.userform.hdnIsApp.value == "True"){
popBox('AppProp',560,400,'iiamap');
}
}
function setAccessFlag(){
ndx = document.userform.hdnAppAccess.selectedIndex;
if(ndx > 0)
{script = "TRUE"}
else
{script = "FALSE"}
if(ndx > 1)
{exe = "TRUE"}
else
{exe = "FALSE"}
document.userform.AccessScript.value = script;
document.userform.AccessExecute.value = exe;
}
listFunc=new listFuncs();
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#CCCCCC" TOPMARGIN=5 TEXT="#000000" LINK="#FFFFFF" STYLE="font-face: Helv,Arial; font-size:10pt;">
<FONT SIZE=1 FACE="HELV,ARIAL">
<BLOCKQUOTE>
<FORM NAME="userform" onSubmit="return false">
<TABLE BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH = 100>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_PATH_TEXT %>
</FONT>
</TD>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<% if InStr(currentobj.Path,"\\") then %>
<%= text("Path",30,"","","",false,true) %>
<% else %>
<%= inputbox(0,"text","Path","\\",30,"","","",False,True,False) %>
<% end if %>
<!--blank out redirect value...-->
<INPUT TYPE="hidden" NAME="HttpRedirect" VALUE = "">
</FONT>
</TD>
<TD> </TD>
<TD VALIGN="bottom">
</TD>
</TR>
<TR>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_USERNAME_TEXT %>
</FONT>
</TD>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= text("UNCUserName",30,"","","",false,true) %>
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_PASSWORD_TEXT %>
</FONT>
</TD>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= pword("UNCPassword",30,"","","",false,true) %>
</FONT>
</TD>
</TR>
<TR>
<TD WIDTH = 50> </TD>
<TD COLSPAN=3>
<TABLE>
<TR>
<TD VALIGN="top">
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_ACCESSFLAGS_TEXT %><BR>
<%= checkbox("AccessRead","",false) %> <%= L_READ_TEXT %><BR>
<%= checkbox("AccessWrite","",false) %> <%= L_WRITE_TEXT %><P>
</FONT>
</TD>
<TD>
</TD>
<TD VALIGN="top">
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_CONTENTCONTROL_TEXT %><BR>
<% if currentobj.DontLog then %>
<INPUT TYPE="checkbox" NAME="hdnDontLog" OnClick="top.title.Global.updated=true;setLog(this);"> <%= L_LOGACCESS_TEXT %><BR>
<INPUT TYPE="hidden" NAME="DontLog" VALUE="True">
<% else %>
<INPUT TYPE="checkbox" NAME="hdnDontLog" CHECKED OnClick="top.title.Global.updated=true;setLog(this);"> <%= L_LOGACCESS_TEXT %><BR>
<INPUT TYPE="hidden" NAME="DontLog" VALUE="False">
<% end if %>
<%= checkbox("EnableDirBrowsing","",false) %> <%= L_ENABLEBROWSING_TEXT %><BR>
<%= checkbox("ContentIndexed","",false) %> <%= L_INDEX_TEXT %><BR>
<% if Session("vtype") <> "dir" then %>
<% if UCase(Right(currentobj.ADsPath,4))="ROOT" then %>
<% if instobj.FrontPageWeb=True then %>
<INPUT type="checkbox" NAME="chkFrontPageWeb" CHECKED> <%= L_FRONTPAGE_TEXT %>
<% else %>
<INPUT type="checkbox" NAME="chkFrontPageWeb"> <%= L_FRONTPAGE_TEXT %>
<% end if %>
<% end if %>
<% end if %>
</FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD COLSPAN = 4> <HR><P>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_APPLICATIONS_TEXT %>
</FONT>
</TD>
</TR>
<TR>
<TD> </TD>
<TD>
<TABLE>
<TR>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL" COLOR="Gray">
<%= L_APPNAME_TEXT %>:
</FONT>
</TD>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= disabletextstart & "<FONT FACE=HELV SIZE=1> <FONT>" & disabletextend %>
</FONT>
</TD>
</TR>
<TR>
<TD WIDTH =75 >
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_STARTPOINT_TEXT %>:
</FONT>
</TD>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%
approot = Mid(approot,Instr(approot,"ROOT")+4)
if Left(approot,1) = "/" then
approot = Mid(approot,2)
end if
displayapproot = "[" & instobj.ServerComment & "]" & "/" & approot
if Right(displayapproot,1) = "/" then
displayapproot = Mid(displayapproot, 1, len(displayapproot)-1)
end if
%>
<%= disabletextstart & "<FONT FACE=HELV SIZE=1>" & displayapproot & " </FONT>" & disabletextend %>
</FONT>
</TD>
</TR>
<TR>
<TD> </TD>
<TD VALIGN="bottom">
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= checkbox("AppIsolated","setIsolated(this.checked);",true) %> <%= L_ISOLATEAPP_TEXT %><BR>
</FONT>
</TD>
</TR>
<TR>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_APPFLAGS_TEXT %>:
</FONT>
</TD>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<SELECT NAME="hdnAppAccess" onChange="setAccessFlag();">
<%= printoption(((not currentObj.AccessScript) and (not currentobj.AccessExecute)), L_NONE_TEXT, false) %>
<%= printoption(currentObj.AccessScript, L_SCRIPT_TEXT, false) %>
<%= printoption(currentobj.AccessExecute, L_EXECUTE_TEXT, false) %>
</SELECT>
<INPUT TYPE="hidden" NAME="AccessScript" VALUE="<%= currentObj.AccessScript %>">
<INPUT TYPE="hidden" NAME="AccessExecute" VALUE="<%= currentObj.AccessExecute %>">
</FONT>
</TD>
</TR>
</TABLE>
</TD>
<TD WIDTH = 10> </TD>
<TD VALIGN="top"><FONT SIZE=1 FACE="HELV,ARIAL">
<% if not isApp then %>
<% if Session("IsAdmin") then %>
<INPUT TYPE="hidden" VALUE="False" NAME="hdnIsApp">
<INPUT TYPE="button" NAME="hdnAppButton" VALUE="<%= L_CREATE_TEXT %>" OnClick="setApp(document.userform.chkAppIsolated.checked);"><P>
<INPUT TYPE="button" NAME="hdnConfigButton" VALUE="<%= L_NA_TEXT %>" OnClick="popConfig();"><P>
<INPUT TYPE="button" NAME="hdnMapButton" VALUE="<%= L_NA_TEXT %>" OnClick="popAppMap();"><P>
<!--<INPUT TYPE="button" NAME="hdnAppUnload" VALUE="<%= L_NA_TEXT %>" OnClick="unloadApp();"><P>-->
<% end if %>
<% else %>
<INPUT TYPE="hidden" VALUE="True" NAME="hdnIsApp">
<% if Session("IsAdmin") then %>
<INPUT TYPE="button" NAME="hdnAppButton" VALUE="<%= L_REMOVE_TEXT %>" OnClick="setApp(document.userform.chkAppIsolated.checked);"><P>
<% end if %>
<INPUT TYPE="button" NAME="hdnConfigButton" VALUE="<%= L_CONFIGURE_TEXT %>" OnClick="popConfig();"><P>
<INPUT TYPE="button" NAME="hdnMapButton" VALUE="<%= L_APPMAP_TEXT %>" OnClick="popAppMap();"><P>
<!--<INPUT TYPE="button" NAME="hdnAppUnload" VALUE="<%= L_UNLOAD_TEXT %>" OnClick="unloadApp();"><P>-->
<% end if %>
</FONT>
</TD>
</BLOCKQUOTE>
</TD>
</TR>
</TABLE>
</FORM>
</BLOCKQUOTE>
</FONT>
</BODY>
</HTML>
<% end if %>