home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
pelne
/
optionp
/
ins.cab
/
nnser.asp.2
< prev
next >
Wrap
Text File
|
1997-10-17
|
7KB
|
270 lines
<% Response.Expires = 0 %>
<%
REM LOCALIZATION
L_PAGETITLE_TEXT = "Microsoft News Server Administration"
L_SVCINSTNCPROPS_TEXT = "NNTP Server Properties for"
L_DESCRIPTION_TEXT = "Description:"
L_PATHHEADERFIELD_TEXT = "Path Header Field:"
L_IPADDRESS_TEXT = "IP Address:"
L_IPPORT_TEXT = "IP port:"
L_SSLPORT_TEXT = "SSL port:"
L_CONNECTIONS_TEXT = "Connections"
L_LIMITEDTO_TEXT = "Limited to:"
L_CONNECTIONTIMEOUT_TEXT = "Connection timeout:"
L_ENABLELOGGING_TEXT = "Enable Logging"
L_NNTPSITEID_TEXT = "NNTP Site Identification"
L_ENTERANINT_ERRORMESSAGE = "Please enter an integer between 0 and "
L_ALLUNASSIGNED_TEXT = "All Unassigned"
REM END LOCALIZATION
%>
<% REM Service Page %>
<% REM Get variables %>
<% REM svr = Server name %>
<% svr = Request("svr") %>
<HTML>
<HEAD>
<SCRIPT LANGUAGE="javascript">
<% REM Create uForm object and methods %>
uForm = new Object();
uForm.writeForm = writeForm;
uForm.readCache = readCache;
<% REM Javascript function readCache loads fields from hiddenform in sidebar %>
function readCache()
{
hform = top.menu.document.hiddenform;
uform = document.userform;
uform.txtDescription.value = hform.txtDescription.value;
uform.txtPathHeaderField.value = hform.txtPathHeaderField.value;
uform.txtIPAddress.value = hform.txtIPAddress.value;
uform.txtTCPPort.value = hform.txtTCPPort.value;
uform.txtSSLPort.value = hform.txtSSLPort.value;
uform.txtMaxConnections.value = hform.txtMaxConnections.value;
uform.txtConnectionTimeout.value = hform.txtConnectionTimeout.value;
uform.hdnEnableLogging.value = hform.txtEnableLogging.value;
uform.chkEnableLogging.checked = txttochk(uform.hdnEnableLogging);
if(uform.txtIPAddress.value == "")
{
uform.txtIPAddress.value = "<% = L_ALLUNASSIGNED_TEXT %>";
}
}
<% REM Javascript function writeForm sets values in hiddenform %>
function writeForm()
{
hform = top.menu.document.hiddenform;
uform = document.userform;
hform.txtDescription.value= uform.txtDescription.value;
hform.txtPathHeaderField.value = uform.txtPathHeaderField.value;
hform.txtTCPPort.value = uform.txtTCPPort.value;
hform.txtSSLPort.value = uform.txtSSLPort.value;
hform.txtMaxConnections.value = uform.txtMaxConnections.value;
hform.txtConnectionTimeout.value = uform.txtConnectionTimeout.value;
hform.txtEnableLogging.value = uform.hdnEnableLogging.value;
if(uform.txtIPAddress.value == "<% = L_ALLUNASSIGNED_TEXT %>")
{
uform.txtIPAddress.value = "";
}
hform.txtIPAddress.value = uform.txtIPAddress.value;
}
<% REM Javascript function chkToTxt converts checkbox bools to text value for hiddenform %>
function txttochk(txtControl)
{
if (txtControl.value != "0")
{
return "true";
}
else
{
return "false";
}
}
function convertchk(txtControl)
{
txtControl.value = chkToTxt(this);
}
function chkToTxt(chkControl)
{
if (chkControl.checked)
{
return "-1";
}
else
{
return "0";
}
}
<% REM Javascript function setUpdated sets "updated" flag in hiddenform when a field is changed %>
function setUpdated()
{
top.menu.document.hiddenform.updated.value = "true";
}
<% REM Javascript function setTcpUpdated sets "tcpUpdated" flag in hiddenform %>
function setTcpUpdated()
{
top.menu.document.hiddenform.tcpUpdated.value = "true";
}
<% REM Javascript function checkRange checks values between 0 and specified range %>
function checkRange(thisControl,range)
{
if (isFull(thisControl.value) && isNum(thisControl.value))
{
if (thisControl.value > range)
{
alert("<% = L_ENTERANINT_ERRORMESSAGE %>" + range + ".");
thisControl.focus()
}
}
}
</SCRIPT>
<% REM Generic Javascript functions %>
<!--#include file="nnisnum.htm" -->
<!--#include file="nnisfull.htm" -->
<TITLE><% = L_PAGETITLE_TEXT %></TITLE>
</HEAD>
<BODY BGCOLOR="#CCCCCC" TEXT="#000000" TOPMARGIN=10">
<FORM NAME="userform" onSubmit="return false;">
<P><IMG SRC="images/gnicttl.gif" ALIGN="textmiddle" HEIGHT=10 WIDTH=10> <FONT SIZE=2 FACE="Arial"><B><% = L_SVCINSTNCPROPS_TEXT %> </B></FONT><FONT FACE="Times New Roman" SIZE=3><I><% = svr %></I></FONT>
<FONT FACE="Arial" SIZE=2>
<P>
<P>
<B><% = L_NNTPSITEID_TEXT %></B>
<p>
<blockquote>
<TABLE border=0 WIDTH=340>
<TR>
<TD WIDTH=140>
<FONT SIZE=2 FACE="Arial"><% = L_DESCRIPTION_TEXT %></FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtDescription" TYPE="text" VALUE="" onBlur="setUpdated();" onChange="setUpdated();" SIZE=25>
</TD>
</TR>
<TR>
<TD HEIGHT=4></TD>
</TR>
<TR>
<TD WIDTH=140>
<FONT SIZE=2 FACE="Arial"><% = L_PATHHEADERFIELD_TEXT %></FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtPathHeaderField" TYPE="text" VALUE="" onBlur="setUpdated();" onChange="setUpdated();" SIZE=25>
</TD>
</TR>
<TR>
<TD HEIGHT=4></TD>
</TR>
<TR>
<TD WIDTH=140>
<FONT SIZE=2 FACE="Arial"><% = L_IPADDRESS_TEXT %></FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtIPAddress" TYPE="text" VALUE="" onBlur="setUpdated();" onChange="setUpdated();" SIZE=25>
</TD>
</TR>
<TR>
<TD HEIGHT=4></TD>
</TR>
<TR>
<TD WIDTH=140>
<FONT SIZE=2 FACE="Arial"><% = L_IPPORT_TEXT %></FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtTCPPort" TYPE="text" VALUE="" onBlur="checkRange(this,65535);setUpdated();setTcpUpdated();" onChange="setUpdated();setTcpUpdated();" SIZE=5>
</TD>
</TR>
<TR>
<TD HEIGHT=4></TD>
</TR>
<TR>
<TD WIDTH=140>
<FONT SIZE=2 FACE="Arial"><% = L_SSLPORT_TEXT %></FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtSSLPort" TYPE="text" VALUE="" onBlur="checkRange(this,65535);setUpdated();setTcpUpdated();" onChange="setUpdated();" SIZE=5>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
<P>
<B><% = L_CONNECTIONS_TEXT %></B>
<P>
<BLOCKQUOTE>
<TABLE BORDER=0 WIDTH=340>
<TR>
<TD ALIGN="left" WIDTH=140>
<FONT SIZE=2 FACE="Arial">
<% = L_LIMITEDTO_TEXT %>
</FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtMaxConnections" TYPE="text" VALUE="" onBlur="checkRange(this,15000);setUpdated();" onChange="setUpdated();" SIZE=5>
</TD>
</TR>
<TR>
<TD HEIGHT=4>
</TD>
</TR>
<TR>
<TD WIDTH=140>
<FONT SIZE=2 FACE="Arial"><% = L_CONNECTIONTIMEOUT_TEXT %></FONT>
</TD>
<TD WIDTH=200>
<INPUT NAME="txtConnectionTimeout" TYPE="text" VALUE="" onBlur="checkRange(this,2000000000);setUpdated();" onChange="setUpdated();" SIZE=5>
</TD>
</TR>
<tr><td colspan="2"> </td></tr>
<tr>
<td colspan="2">
<FONT SIZE=2 FACE="Arial">
<INPUT NAME="chkEnableLogging" TYPE="checkbox" VALUE="" checked="false" OnClick="convertchk(hdnEnableLogging);setUpdated();">
<% = L_ENABLELOGGING_TEXT %>
<INPUT NAME="hdnEnableLogging" TYPE="hidden" VALUE="">
</font>
</td>
</tr>
</TABLE>
</BLOCKQUOTE>
</FORM>
<script language="javascript">
readCache();
</script>
</BODY>
</HTML>