home *** CD-ROM | disk | FTP | other *** search
- <%
- #include </utility/security.fts>
- #include </utility/global.fts>
- #include </utility/theme.fts>
- #include </utility/ftgate.fts>
-
- var p = new server.pt2ptproxy
- var id
-
- session.system.error=0
-
- if (form.config=="1")
- {
- id = form.id
- p.id=id
-
- if (form.command=="1")
- {
- p.schedule=form.schedule
- p.domain=form.domain
- p.port = form.port
- }
-
- if (form.redirect!="")
- output.redirect(form.redirect+"?id="+id+"&type=6")
- }
- else if (form.config=="2")
- {
- if (form.redirect!="")
- output.redirect(form.redirect+"?id="+form.id+"&type=6")
- }
- else
- {
- p.id = request.id
- id = request.id
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
- <HTML>
- <HEAD>
- <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
- <META name="GENERATOR" content="Microsoft Developer Studio">
- <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <TITLE>Services -- Point to Point Proxy Control</TITLE>
-
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var dir="<%=buttons%>";
- var pro=<%=build()==FTGATE_PRO%>;
-
- if (!document.images) {}
- else {
- plus0 = new Image();
- plus0.src = dir+"open.gif";
- plus1 = new Image();
- plus1.src = dir+"openon.gif";
- minus0 = new Image();
- minus0.src = dir+"close.gif";
- minus1 = new Image();
- minus1.src = dir+"closeon.gif";
- delete0 = new Image();
- delete0.src = dir+"delete.gif";
- delete1 = new Image();
- delete1.src = dir+"deleteon.gif";
- create0 = new Image();
- create0.src = dir+"create.gif";
- create1 = new Image();
- create1.src = dir+"createon.gif";
- }
-
- <%
- if (netscape)
- {
- %>
- document.captureEvents(Event.KEYPRESS);
- document.onkeypress = keypress;
-
- function keypress(event)
- {
- if (event.which==13)
- {
- onApply();
- return false;
- }
-
- return true;
- }
- <%
- }
- else
- {
- %>
- function keypress()
- {
- if (event.keyCode==13)
- {
- event.returnValue=null;
- onApply();
- }
- }
- <%
- }
- %>
-
- function onLoad()
- {
- setPage(5, "Point to Point Proxy Service");
-
- document.ftgate.domain.focus();
- }
-
- function isOK(form)
- {
- return true;
- }
-
- function onUpEdit(el, name, type)
- {
- change(name, 'plus', 0);
-
- switch (type)
- {
- case 1:
- onUpPeriod(el);
- break;
-
- case 2:
- onUp(el);
- break;
-
- case 3:
- onUpBytes(el);
- }
-
- setModified(true);
- }
-
- function onDownEdit(el, name, type)
- {
- change(name, 'minus', 0);
-
- switch (type)
- {
- case 1:
- onDownPeriod(el);
- break;
-
- case 2:
- onDown(el);
- break;
-
- case 3:
- onDownBytes(el);
- }
-
- setModified(true);
- }
-
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/time.js" TYPE="text/javascript"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/spin.js" TYPE="text/javascript"></SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/dialog.js" TYPE="text/javascript"></SCRIPT>
- </HEAD>
-
- <BODY BGCOLOR="white" onLoad="onLoad()" MARGINHEIGHT="0" MARGINWIDTH="0" onkeypress="keypress()">
-
- <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="<%=bodywidth%>" HEIGHT="<%=bodyheight%>" CELLPADDING="0" CELLSPACING="0"><TR><TD> </TD><TD VALIGN="TOP">
-
- <A HREF="index.fts"><SPAN ID="top">Services</SPAN></A><SPAN ID="top"> /</SPAN>
- <SPAN ID="topsel"><%=p.name%></SPAN>
-
- <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="connectionpt2pt.fts">
- <!-- hidden variables -->
- <INPUT TYPE="HIDDEN" NAME="config" VALUE="1">
- <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
- <INPUT TYPE="HIDDEN" NAME="id" VALUE="<%=id%>">
- <INPUT TYPE="HIDDEN" NAME="redirect" VALUE="">
-
- <!-- start of the tabs -->
- <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
- <TR>
- <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/left.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('proxypt2pt.fts')" CLASS="navoff">General</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navon" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('connectionpt2pt.fts')" CLASS="navon">Connection</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('times.fts')" CLASS="navoff">Times</A></TD>
- <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
- <TD CLASS="navoff" WIDTH="50" HEIGHT="18"ALIGN="CENTER"><A HREF="javascript:onLaunch('addressproxy.fts')" CLASS="navoff">Addresses</A></TD>
- <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/right.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
- <TD WIDTH="<%=bodywidth-167%>" HEIGHT="18"> </TD>
- </TR>
- </TABLE>
- <!-- end of the tabs -->
-
- <!-- start of the tab body -->
- <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
- <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
- <!-- start of block -->
- <TR>
- <TD VALIGN="TOP">
- <TABLE BORDER="0" WIDTH="100%">
- <!-- sub table goes here -->
- <TR>
- <TD>
- <TABLE CLASS="box" WIDTH="100%">
- <TR>
- <TD>
- <TABLE BORDER="0" WIDTH="100%">
- <TR>
- <TD WIDTH="1%">Schedule for Internet connection</TD>
- <TD>
- <SELECT NAME="schedule" onChange="setModified(true)">
- <%
- var sched = new server.schedule
-
- var ok=sched.first()
-
- if (p.schedule=="")
- output.write("<OPTION VALUE=\"\" SELECTED>No Schedule</OPTION>")
-
- if (build()==FTGATE_PRO)
- {
- while (ok)
- {
- output.write("<OPTION VALUE=\""+sched.name+"\"")
- if (sched.name==p.schedule)
- output.write(" SELECTED")
-
- output.writeln(">"+sched.name+"</OPTION>")
-
- ok=sched.next()
- }
- }
- else
- {
- output.write("<OPTION VALUE=\""+sched.name+"\"")
- if (sched.name==p.schedule)
- output.write(" SELECTED")
- output.writeln(">Times A</OPTION>")
- sched.next()
- output.write("<OPTION VALUE=\""+sched.name+"\"")
- if (sched.name==p.schedule)
- output.write(" SELECTED")
- output.writeln(">Times B</OPTION>")
- }
- %>
- </SELECT>
- </TD>
- </TR>
- <TR>
- <TD>Connect to address</TD>
- <TD><INPUT TYPE="TEXT" NAME="domain" VALUE="<%=p.domain%>" onChange="setModified(true)"></TD></TD>
- </TR>
- <TR>
- <TD>On port</TD>
- <TD><INPUT TYPE="TEXT" NAME="port" VALUE="<%=p.port%>" onChange="setModified(true)"></TD></TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <!-- table footer goes here -->
- <TR>
- <TD ALIGN="RIGHT">
- <A HREF="javascript:onClose()"
- onMouseDown="change('closeA', 'ok', 1)"
- onMouseOut="change('closeA', 'ok', 0)"><IMG SRC="<%=buttons%>ok.gif" NAME="closeA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes and close" HSPACE="5"></A>
- <A HREF="javascript:onCancel()"
- onMouseDown="change('cancelA', 'cancel', 1)"
- onMouseOut="change('cancelA', 'cancel', 0)"><IMG SRC="<%=buttons%>cancel.gif" NAME="cancelA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Cancel"></A>
- <A HREF="javascript:onApply()"
- onMouseDown="change('applyA', 'apply', 1)"
- onMouseOut="change('applyA', 'apply', 0)"><IMG SRC="<%=buttons%>apply.gif" NAME="applyA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes" HSPACE="5"></A>
- </TD>
- </TR>
- <!-- table footer ends here -->
- </TABLE>
- </TD>
- </TR>
- <!-- end of block -->
-
- </TABLE>
- <!-- end of the tab body -->
- </TD></TR></TABLE>
-
- <!-- footer starts here -->
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- var href="/services/connectionpt2pt.fts?id=<%=id%>&type=6";
- var bodywidth=<%=bodywidth%>;
- //-->
- </SCRIPT>
- <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/footer.js" TYPE="text/javascript"></SCRIPT>
- <!-- footer ends here -->
- </FORM>
- </TD><TD WIDTH="10"> </TD></TR></TABLE>
- </BODY>
- </HTML>
-