home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta NAME="Author,Design" Content="GateKeeper Team; gatekeeper@infopulse.net">
- <meta NAME="Copyright" Content="Infopulse; www.infopulse.net">
- <title>Empty</title>
- </head>
-
- <body>
- <%
- file = Request.ReqParam("file")
- y = Mid( file, 3, 4 )
- m = Mid( file, 7, 2 )
- d = Mid( file, 9, 2 )
- Dat = DateSerial( y, m, d)
- fName = FormatDateTime( Dat, 1 )
-
- client = Request.ReqParam("client")
- reqType = Request.ReqParam("reqType")
- host = Request.ReqParam("host")
- sAudit = Request.ReqParam("audit")
- if sAudit = "True" Then
- audit = True
- Else
- audit = False
- End if
-
- Logging.File=file
- Logging.SetSearchParams client, reqType, host, audit
- Logging.ParseLog
- %>
- <center>
- <p><big><strong><font face="Arial">Logging of <%Response.Write(fName)%></font></strong></big></p>
- <p><big><strong><font face="Arial"><%Response.Write(client)%></font></strong></big></p>
- <p><big><strong><font face="Arial"><%Response.Write(reqType)%></font></strong></big></p>
- <p><big><strong><font face="Arial"><%Response.Write(host)%></font></strong></big></p>
- </center>
- <hr>
- <%
- total = Logging.GetTotalDownload()
- Sub PutBar( dwnLoad )
- if dwnLoad > 0 Then
- percent = ((dwnLoad * 100)/total)
- Else
- percent = 0
- End If
- if percent > 90 Then
- line = "<img src=""images/yellow.gif"" height=200 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 80 Then
- line = "<img src=""images/ltgreen.gif"" height=180 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 70 Then
- line = "<img src=""images/green.gif"" height=160 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 60 Then
- line = "<img src=""images/purple.gif"" height=140 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 50 Then
- line = "<img src=""images/pink.gif"" height=120 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 40 Then
- line = "<img src=""images/red.gif"" height=100 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 30 Then
- line = "<img src=""images/orange.gif"" height=80 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 20 Then
- line = "<img src=""images/brown.gif"" height=50 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 10 Then
- line = "<img src=""images/cyan.gif"" height=30 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End if
- if percent > 0 Then
- line = "<img src=""images/blue.gif"" height=5 width=15 border=0>"
- Response.Write(line)
- Exit Sub
- End If
- line = "<img src=""images/clear.gif"" height=1 width=15 border=0>"
- Response.Write(line)
- End Sub
- %>
-
- <br>
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td width="80%" align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Access statistics(<%Response.Write(Logging.GetTotalHits())%> hits, <%Response.Write(Logging.GetTotalDownloadSz())%> download)
- </font></strong></td>
- <td width="20%" align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Legend
- </font></strong></td>
- </tr>
- <tr>
- <td align=center width="80%">
- <img src="images/ruler_ver.gif" height=200 width=16 border=0>
- <%
- for i = 0 to 23
- tmp = Logging.GetDownloadForHour(i)
- PutBar( tmp )
- next
- %>
- <br>
- <img src="images/ruler_hor.gif" height=20 width=382 border=0>
- </td>
- <td align="center" width="20%">
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/yellow.gif" height=18 width=15 border=0>
-   > 90%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/ltgreen.gif" height=18 width=15 border=0>
-   > 80%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/green.gif" height=18 width=15 border=0>
-   > 70%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/purple.gif" height=18 width=15 border=0>
-   > 60%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/pink.gif" height=18 width=15 border=0>
-   > 50%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/red.gif" height=18 width=15 border=0>
-   > 40%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/orange.gif" height=18 width=15 border=0>
-   > 30%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/brown.gif" height=18 width=15 border=0>
-   > 20%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/cyan.gif" height=18 width=15 border=0>
-   > 10%
- </font>
- </td>
- </tr>
- <tr>
- <td align="center">
- <font face="Arial">
- <img src="images/blue.gif" height=18 width=15 border=0>
-   >   0%
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </center></div>
- <br>
- <hr>
- <%
- if Len(client) = 0 Then
- %>
- <br>
- <center><strong><font face="Arial">Clients</font></strong></center>
- <br><br>
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="50%">
- <tr>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Client
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Hits
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Download
- </font></strong></td>
- </tr>
- <%
- Response.Write(Logging.Clients(file))
- %>
- </table>
- </center></div>
- <br>
- <hr>
- <%
- End if ' if Len(client) = 0 ...
- if Len(reqType) = 0 Then
- %>
- <br>
- <center><strong><font face="Arial">Request types</font></strong></center>
- <br><br>
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="50%">
- <tr>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Request type
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Hits
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Download
- </font></strong></td>
- </tr>
- <%
- for i = 1 to Logging.CountReqTypes
- Logging.GetReqTypeParams i,sTmpName,nTmpHits,sTmpDownload
- %>
- <tr>
- <%
- link = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & sTmpName
- if Len(client) > 0 Then
- link = link & "&client=" & client
- End if
- if Len(host) > 0 Then
- link = link & "&host=" & host
- End if
- %>
- <td align="center"><font face="Arial">
- <A HREF="<%Response.Write(link)%>"><%Response.Write(sTmpName)%></A>
- </font></td>
- <td align="right"><font face="Arial">
- <%Response.Write(nTmpHits)%>
- </font></td>
- <td align="right"><font face="Arial">
- <%Response.Write(sTmpDownload)%>
- </font></td>
- </tr>
- <%
- next
- %>
- </table>
- </center></div>
- <br>
- <hr>
- <%
- End if 'if Len(reqType) = 0 ...
- if Len(host) = 0 Then
- %>
- <br>
- <center><strong><font face="Arial">Contacted hosts</font></strong></center>
- <br><br>
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="50%">
- <tr>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Host
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Hits
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Download
- </font></strong></td>
- </tr>
- <%
- Response.Write(Logging.Hosts(file))
- %>
-
- </table>
- </center></div>
- <br>
- <hr>
- <br>
- <%
- End if 'if Len(host) = 0 ...
- nr = 0
- if Len(client) > 0 Then
- nr = nr + 1
- End if
- if Len(reqType) > 0 Then
- nr = nr + 1
- End if
- if Len(host) > 0 Then
- nr = nr + 1
- End if
- if (nr > 0) Then
- %>
-
- <%
- if Len(host)>0 Then
- %>
- <div align="center"><center>
- <table border="1" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Time
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Received
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Contacted host
- </font></strong></td>
- <td align="center" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- Requested URL
- </font></strong></td>
- </tr>
- <%
- Response.Write(Logging.FullHostURLs)
- %>
- </table>
- </center></div>
- <br>
- <hr>
- <%
- End If
- %>
-
- <%
- End if 'if Len(host) = 0 ...
- %>
- <br>
- <%
- 'Remove all elements from lists (free up memory)
- Logging.File = ""
- %>
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-