home *** CD-ROM | disk | FTP | other *** search
- <%
- #include </utility/security.fts>
- #include </utility/global.fts>
- #include </utility/theme.fts>
- #include </utility/ftgate.fts>
- %>
- <!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">
- <STYLE>
- TD { padding-right: 4 }
- TH { padding-right: 4 }
- </STYLE>
- <META NAME="GENERATOR" CONTENT="MICROSOFT DEVELOPER STUDIO">
- <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML; CHARSET=ISO-8859-1">
- <%
- if (number(request.refresh)>0)
- {
- %>
- <META HTTP-EQUIV="REFRESH" CONTENT="<%=request.refresh%>; URL=log.fts?refresh=<%=request.refresh%>&direction=<%=request.direction%>&entries=<%=request.entries%>'">
- <%
- }
-
- if (request.clear=="1")
- {
- log.history.size=0
- log.write(0, "Clear Log")
- }
- %>
- <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
- <!--
- function onLoad()
- {
- if (parent.ui)
- parent.ui.focus();
- }
- //-->
- </SCRIPT>
- <TITLE>FTGate Log</TITLE>
- </HEAD>
- <BODY BGCOLOR="<%=border%>" onLoad="onLoad()">
- <TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
- <TR>
- <TH>Date</TH><TH>Time</TH><TH>Thread</TH><TH>ID</TH><TH>Entry</TH>
- </TR>
- <%
- var wm=new server.webmail
- var toggle=0
- log.history.size=request.entries
-
- var count=0
- var ok = log.history.first()
- while (ok)
- {
- count=count+1
- ok=log.history.next()
- }
-
- if (request.direction==1)
- {
- var index=count
- var i
-
- var stop=count-number(request.entries)
- if (stop<0)
- stop=0
-
- while (index!=stop)
- {
- log.history.first()
- for (i=0; i<index-1; i=i+1)
- log.history.next()
-
- var str=log.history.item
-
- // FUNCTION logLine(str)
- output.writeln("<TR>")
-
- var cutstart=0
- var cutend=str.indexof(",",0)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+" </TD>");
-
- cutstart=cutend+2
- cutend=str.indexof(",",cutstart)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+" </TD>");
-
- cutstart=cutend+2
- cutend=str.indexof(",",cutstart)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+" </TD>");
-
- cutstart=cutend+2
- cutend=str.indexof(",",cutstart)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+" </TD>");
-
-
- cutstart=cutend+2
- cutend=999
- str = str.slice(cutstart,cutend)
- str=wm.escape(str)
-
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\">"+str+"</TD>");
- output.writeln("</TR>")
-
- index=index-1
- toggle=!toggle
- }
- }
- else
- {
- var index=0
-
- log.history.first()
-
- var start=count-number(request.entries)
- while (start>0)
- {
- log.history.next()
- start=start-1
- }
-
- var logic=false
- if (log.history.item)
- {
- if (index<number(request.entries))
- logic=true;
- }
-
- while (logic)
- {
- var str=log.history.item
-
- // FUNCTION logLine(str)
- output.writeln("<TR>")
-
- var cutstart=0
- var cutend=str.indexof(",",0)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+"</TD>");
-
- cutstart=cutend+2
- cutend=str.indexof(",",cutstart)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+"</TD>");
-
- cutstart=cutend+2
- cutend=str.indexof(",",cutstart)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+"</TD>");
-
- cutstart=cutend+2
- cutend=str.indexof(",",cutstart)
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\" NOWRAP>"+str.slice(cutstart,cutend)+"</TD>");
-
- cutstart=cutend+2
- cutend=999
- str = str.slice(cutstart,cutend)
- str=wm.escape(str);
-
- output.writeln("<TD CLASS=\"toggle"+toggle+"\" VALIGN=\"TOP\">"+str+"</TD>");
- output.writeln("</TR>")
-
- log.history.next()
- index=index+1
- toggle=!toggle
-
- logic=false
- if (log.history.item)
- {
- if (index<number(request.entries))
- logic=true
- }
- }
- }
- %>
- </TABLE>
- </BODY>
- </HTML>
-