home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_03.cab
/
iivdrd.asp
< prev
next >
Wrap
Text File
|
1997-11-12
|
3KB
|
129 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_CLIENTSENTTO_TEXT="The client will be sent to:"
Const L_EXACTURL_TEXT="the exact URL entered above."
Const L_DIRBELOW_TEXT="a directory below this one."
Const L_PERM_TEXT="a permanent redirection for this resource."
Const L_UNSET_TEXT="(not set)"
' NOTE: \r is a carraige return for line spacing...
Const L_REDIRTO_TEXT="Redirect to:"
Dim path, currentobj, redirto
On Error Resume Next
path=Session("dpath")
Set currentobj=GetObject(path)
function redirOpt(optionStr)
redirOpt = checkboxVal(0,InStr(currentobj.HttpRedirect,optionStr) > 0 ,"chk" + optionStr,"setHttpRedirect();",false)
end function
%>
<!--#include file="iiset.inc"-->
<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 %>
function listFuncs(){
this.writeList=buildListForm;
}
function buildListForm(){
}
function setHttpRedirect(){
redirstr = document.userform.hdnHttpRedirect.value + ",";
if (document.userform.chkEXACT_DESTINATION.checked){
redirstr += "EXACT_DESTINATION,";
}
if (document.userform.chkCHILD_ONLY.checked){
redirstr += "CHILD_ONLY,";
}
if (document.userform.chkPERMANENT.checked){
redirstr += "PERMANENT, ";
}
document.userform.HttpRedirect.value = redirstr;
}
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">
<FORM NAME="userform" onSubmit="return false">
<BLOCKQUOTE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD VALIGN="Bottom">
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_REDIRTO_TEXT %>
<% redirto=currentobj.HttpRedirect
if InStr(redirto,",") > 0 then
redirto = Left(redirto,InStr(redirto,",")-1)
else
redirto = "http://"
end if
%>
<%= inputbox(0,"text","hdnHttpRedirect",redirto,25,"setHttpRedirect();","","",False,True,False) %>
<INPUT TYPE="hidden" NAME="HttpRedirect" VALUE="<%= currentobj.HttpRedirect %>">
</FONT>
</TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD>
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_CLIENTSENTTO_TEXT %><P>
<BLOCKQUOTE>
<%= redirOpt("EXACT_DESTINATION") %><%= L_EXACTURL_TEXT %><P>
<%= redirOpt("CHILD_ONLY") %><%= L_DIRBELOW_TEXT %><P>
<%= redirOpt("PERMANENT") %><%= L_PERM_TEXT %>
</BLOCKQUOTE>
</FONT>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
</FORM>
</FONT>
</BODY>
</HTML>
<% end if %>