home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
iis4_03.cab
/
iisechd.asp
< prev
next >
Wrap
Text File
|
1997-11-12
|
7KB
|
292 lines
<%@ LANGUAGE=VBScript %>
<% Option Explicit %>
<% Response.Expires = 0 %>
<% if Session("FONTSIZE") = "" then %>
<!--#include file="iito.inc"-->
<% else %>
<%
Const L_PWAUTH_TEXT="Password Authentication Method"
Const L_AUTHMETHOD_TEXT="View or Set the password authentication method used for non-anonymous access to this resource."
Const L_SECOMM_TEXT="Secure Communictions"
Const L_VIEWSECOMM_TEXT="View or Set the secure communications method used when the virtual directory is accessed."
Const L_EDIT_TEXT="Edit..."
Const L_TCPRESTRICT_TEXT="TCP/IP Access Restrictions"
Const L_BYDEFAULT_TEXT="By default, all computers are:"
Const L_GRANTED_TEXT="Granted access"
Const L_DENIED_TEXT="Denied access"
Const L_EXCEPTBELOW_TEXT="Except those listed below:"
Const L_ACCESS_TEXT="Access"
Const L_IP_TEXT="IP Address"
Const L_SubNET_TEXT="Subnet Mask"
Const L_DOMAIN_TEXT="Domain"
Const L_ACCESSDENIED_TEXT="Access Denied"
Const L_SELECTITEM_TEXT="Please select an item to delete."
On Error Resume Next
Dim path, currentobj
path=Session("dpath")
Set currentobj=GetObject(path)
function heading(width,thestring)
Dim i
width=width - len(thestring)
for i=width to 0 step -1
thestring=thestring & " "
Next
heading=thestring
end function
%>
<!--#include file="iiset.inc"-->
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
function isNum(txtcntrl) {
str=txtcntrl.value;
for (var i=0; i < str.length; i++) {
var ch=str.substring(i, i + 1);
if ((ch < "0" || "9" < ch) && ch !=',') {
alert("Please enter an integer.");
txtcntrl.focus()
return false;
}
}
return true;
}
function SetList(){
}
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 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;
}
}
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#CCCCCC" TOPMARGIN=5 TEXT="#000000" onLoad="loadList();" LINK="#000000" VLINK="#000000">
<FORM NAME="userform">
<TABLE CELLSPACING=0 CELLPADDING=2>
<TR><TD><FONT SIZE=1 FACE="HELV,ARIAL"><B><%= L_PWAUTH_TEXT %></B><P></FONT></TD></TR>
<TR><TD>
<TABLE CELLSPACING=0 CELLPADDING=2>
<TR>
<TD> </TD>
<TD WIDTH=50 VALIGN="middle"><IMG SRC="images/handshk.gif" WIDTH=32 HEIGHT=28 BORDER=0></TD>
<TD WIDTH=400 VALIGN="top"><FONT SIZE=1 FACE="HELV,ARIAL"><%= L_AUTHMETHOD_TEXT %></FONT></TD>
<TD VALIGN="middle"><INPUT TYPE="button" VALUE="<%= L_EDIT_TEXT %>" NAME="btnAuthenticate" onClick="popBox('Authenticate',500,510, 'iiauth')"></TD>
</TR>
</TABLE>
</TD></TR>
</TABLE>
<HR>
<TABLE CELLSPACING=0 CELLPADDING=2>
<TR><TD><FONT SIZE=1 FACE="HELV,ARIAL"><B><%= L_SECCOMM_TEXT %></B><P></FONT></TD></TR>
<TR><TD>
<TABLE CELLSPACING=0 CELLPADDING=2>
<TR>
<TD> </TD>
<TD WIDTH=50 VALIGN="middle"><IMG SRC="images/key.gif" WIDTH=32 HEIGHT=28 BORDER=0></TD>
<TD WIDTH=400 VALIGN="top"><FONT SIZE=1 FACE="HELV,ARIAL"><%= L_VIEWSECOMM_TEXT %></FONT></TD>
<TD VALIGN="middle"><INPUT TYPE="button" VALUE="<%= L_EDIT_TEXT %>" NAME="btnCommunication" onClick="popBox('Communications',400,250, 'iicomm')"></TD>
</TR>
</TABLE>
</TD></TR>
</TABLE>
<HR>
<TABLE CELLSPACING=0 CELLPADDING=2>
<TR><TD><FONT SIZE=1 FACE="HELV,ARIAL"><B><%= L_TCPRESTRICT_TEXT %></B></FONT></TD></TR>
<TR><TD>
<BLOCKQUOTE>
<TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=2>
<TR>
<TD VALIGN="top">
<FONT SIZE=1 FACE="HELV,ARIAL">
<%= L_BYDEFAULT_TEXT %>
</FONT>
</TD>
<TD VALIGN="top">
<FONT SIZE=1 FACE="HELV,ARIAL">
<IMG SRC="images/smallkey.gif" WIDTH=17 HEIGHT=18 BORDER=0 ALIGN="middle">
<%= radio("DefaultAccess",true,"", false) %>
<%= L_GRANTED_TEXT %>
<P>
<IMG SRC="images/lock.gif" WIDTH=16 HEIGHT=18 BORDER=0 ALIGN="middle">
<%= radio("DefaultAccess",false,"", false) %>
<%= L_DENIED_TEXT %>
</FONT>
</TD>
</TR>
<TR>
<TD><FONT SIZE=1 FACE="HELV,ARIAL"><%= L_EXCEPTBELOW_TEXT %></FONT></TD>
</TR>
</TABLE>
</BLOCKQUOTE>
</TD></TR>
</TABLE>
<P>
<TABLE BORDER=1 BORDERCOLORDARK="#CCCCCC" BORDERCOLORLIGHT="#CCCCCC">
<TR>
<TD BORDERCOLORDARK="#FFFFFF" BORDERCOLORLIGHT="#000000"><FONT SIZE=1 FACE="HELV,ARIAL">
<A HREF="javascript:sortList('fname');">
<%= heading(18,L_ACCESS_TEXT) %>
</A>
</FONT>
</TD>
<TD BORDERCOLORDARK="#FFFFFF" BORDERCOLORLIGHT="#000000"><FONT SIZE=1 FACE="HELV,ARIAL">
<A HREF="javascript:sortList('fsize');">
<%= heading(22,L_IP_TEXT) %>
</A>
</FONT>
</TD>
<TD BORDERCOLORDARK="#FFFFFF" BORDERCOLORLIGHT="#000000"><FONT SIZE=1 FACE="HELV,ARIAL">
<A HREF="javascript:sortList('ftype');">
<%= heading(19,L_SubNET_TEXT) %>
</A>
</FONT>
</TD>
<TD BORDERCOLORDARK="#FFFFFF" BORDERCOLORLIGHT="#000000"><FONT SIZE=1 FACE="HELV,ARIAL">
<A HREF="javascript:sortList('ftype');">
<%= heading(32,L_DOMAIN_TEXT) %>
</A>
</FONT>
</TD>
</TR>
</TABLE>
</FORM>
<FORM name="hiddenform">
<INPUT TYPE="hidden" NAME="index" VALUE=0>
</FORM>
<SCRIPT LANGUAGE="JavaScript">
function loadList(){
parent.list.location.href="iisecls.asp";
}
function sortList(sortby, sortasc){
}
function addItem(){
i=cachedList.length
cachedList[i]=new listObj("New Application", ".new", "\\path", "Low");
document.hiddenform.index.value=i;
cachedList[i].updated=true;
cachedList[i].newitem=true;
loadList();
}
function delItem(){
if (document.hiddenform.index.value >= 0){
i=eval(document.hiddenform.index.value);
cachedList[i].deleted=true;
cachedList[i].updated=true;
i=i-1;
<% 'run through the list to find the Next non-deleted item %>
for (var j=i; j >=0; j--) {
if (cachedList[j].deleted){
}
else{
break
}
}
document.hiddenform.index.value=j;
loadList();
}
else{
alert("<%= L_SELECTITEM_TEXT %>");
}
}
function buildListForm(){
}
function SetListVals(){
}
function listFuncs(){
this.addItem=addItem;
this.delItem=delItem;
this.writeList=buildListForm;
this.SetListVals=SetListVals;
this.mainframe = top.opener.top;
}
function listObj(a,ip,s,dmn){
this.access=a;
this.ip=ip;
this.Subnet=s;
this.domain=dmn;
this.deleted=false;
this.updated=false;
this.newitem=false;
}
cachedList=new Array(2)
for (var i=0; i < 2; i++) {
cachedList[i]=new listObj(true, "131.112.200.12","255.255.0.0","");
}
listFunc=new listFuncs();
</SCRIPT>
</BODY>
</HTML>
<% end if %>