home *** CD-ROM | disk | FTP | other *** search
- <%@ LANGUAGE=VBScript %>
- <% Option Explicit %>
- <% Response.Expires = 0 %>
-
- <% if Session("FONTSIZE") = "" then %>
- <!--#include file="iito.inc"-->
- <% else %>
-
- <%
- Const L_ENTERINTEGER_ERRORMESSAGE="Please enter an integer"
- Const L_UNSAVEDCHANGES_ERRORMESSAGE="You have unsaved changes. Save now?"
- Const L_IIS_TEXT="Internet Information Server"
- Const L_ENABLETHROTTLE_TEXT="Enable Bandwith Throttling"
- Const L_LIMIT_TEXT="Limit network use by all Internet Information Server Virtual Servers on this computer."
- Const L_MAXUSAGE_TEXT="Maximum Network Use:"
- Const L_MASTER_TEXT="Master Properties"
- Const L_EDITPROPERTIES_TEXT="Edit the properties inherited by all Virtual Servers created on this computer."
- Const L_WWWSERVICE_TEXT="WWW Service"
- Const L_FTPSERVICE_TEXT="FTPSERVICE"
- Const L_EDIT_TEXT="Edit..."
- Const L_ACCESSDENIED_TEXT="Access Denied"
- Const L_ENABLEBANDWIDTH_TEXT="Enable Bandwidth Throttling"
- Const L_LIMITNET_TEXT="Limit network use by all Internet Information Services on this computer."
- Const L_KBS_TEXT="KB/S"
- Const L_MAXNETUSAGE_TEXT="Maximum network use:"
-
- Const L_MIMEMAP_TEXT = "MIME Map"
- Const L_CONFIGURE_TEXT = "To configure the MIME types the Web Service sends to browsers in the HTTP header, click File Types"
- Const L_FILETYPES_TEXT="File Types..."
-
-
-
- On Error Resume Next
-
- Dim path, currentobj, L_TITLE_TEXT, mbw
-
- L_TITLE_TEXT = "Server Properties - [" & Request.ServerVariables("SERVER_NAME") &"]"
-
- path=Session("dpath")
- Session("path")=path
- Session("SpecObj")=""
- Session("SpecProps")=""
- Set currentobj=GetObject(path)
- %>
-
- <!--#include file="iiset.inc"-->
-
- <HTML>
- <HEAD>
- <TITLE><%= L_TITLE_TEXT %></TITLE>
- <SCRIPT LANGUAGE="JavaScript">
-
- function loadHelp(){
- top.title.Global.helpFileName="iipx";
- }
-
- function isNum(txtcntrl,min,max) {
- str=txtcntrl.value;
- for (var i=0; i < str.length; i++) {
- num = parseInt(str);
- if (isNaN(num)){
- alert("Please enter an integer.");
- return false;
- }
- else{
- if (num < min) {
- alert("Please enter an integer greater than " + (min-1) + ".");
- return false;
- }
- if (num > max) {
- alert("Please enter an integer less than " + (max + 1) + ".");
- return false;
- }
- }
- }
- return true;
- }
-
- function SetMaxBW(isChecked){
- if (isChecked){
- document.userform.hdnMaxBandwidth.value=document.userform.hdnhdnMaxBandwidth.value;
- document.userform.MaxBandwidth.value = document.userform.hdnhdnMaxBandwidth.value;
- }
- else{
- document.userform.hdnhdnMaxBandwidth.value=document.userform.hdnMaxBandwidth.value;
- document.userform.hdnMaxBandwidth.value="";
- document.userform.MaxBandwidth.value = -1;
- }
- }
-
- function calcBW(thiscntrl){
- num = parseInt(thiscntrl.value);
- if (!isNaN(num)){
- document.userform.MaxBandwidth.value = thiscntrl.value * 1024;
- }
- }
-
-
- 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 LEFTMARGIN=5 TEXT="#000000" onLoad="loadHelp();">
-
- <FONT SIZE=1 FACE="Helv,ARIAL">
- <B><%= L_IIS_TEXT %></B>
-
- <FORM NAME="userform" onSubmit="return false">
- <BLOCKQUOTE>
-
- <% if currentobj.MaxBandwidth > 0 then %>
- <INPUT TYPE="checkbox" NAME="hdnchkMaxBandwith" CHECKED onClick="SetMaxBW(this.checked);top.title.Global.updated=true;">
- <% else %>
- <INPUT TYPE="checkbox" NAME="hdnchkMaxBandwith" onClick="SetMaxBW(this.checked);top.title.Global.updated=true;">
- <% end if %>
- <%= L_ENABLEBANDWIDTH_TEXT %>
- </B>
- <BLOCKQUOTE>
- <TABLE>
- <TR>
- <TD COLSPAN=2>
- <FONT SIZE=1 FACE="Helv,ARIAL">
- <%= L_LIMITNET_TEXT %><P>
-
- <%= L_MAXNETUSAGE_TEXT %>
-
- <%
- if currentobj.MaxBandwidth < 0 then
- mbw = ""
- else
- mbw = currentobj.MaxBandwidth/1024
- end if
- %>
-
- <%= inputbox(0,"text","hdnMaxBandwidth",mbw,10,"","","isNum(this,1,32767);calcBW(this);",true,false,false) %>
- <%= L_KBS_TEXT %>
- <INPUT TYPE="hidden" NAME="MaxBandwidth" VALUE="<%= currentobj.MaxBandwidth%>">
- </FONT>
- </TD>
- </TR>
- </TABLE>
-
- </BLOCKQUOTE>
-
- </BLOCKQUOTE>
-
- <HR>
- <FONT SIZE=1 FACE="Helv,ARIAL">
- <B><%=L_MIMEMAP_TEXT%></B>
- </FONT>
-
- <TABLE>
- <TR>
- <TD><IMG SRC="images/mime.gif" WIDTH=32 HEIGHT=32 BORDER=0> </TD>
- <TD><FONT SIZE=1 FACE="Helv,ARIAL"><%=L_CONFIGURE_TEXT%></TD>
- <TD><INPUT TYPE="button" NAME="btnMimeMap" VALUE="<%=L_FILETYPES_TEXT%>" onClick='popBox("MIMEmap", 425, 375, "iimime");'></TD>
- </TR>
- </TABLE>
-
- </FORM>
- </FONT>
- </BODY>
- </HTML>
- <% end if %>