home *** CD-ROM | disk | FTP | other *** search
- <%
- path = SysInfo.SkinPath
- dim szPath
- szPath = "Table"
- SkinTable = SysInfo.GetSkinParameter(szPath)
- szPath = "Font"
- SkinFont = SysInfo.GetSkinParameter(szPath)
- szPath = "Link"
- SkinLink = SysInfo.GetSkinParameter(szPath)
- szPath = "VLink"
- SkinVLink= SysInfo.GetSkinParameter(szPath)
- %>
- <script language="JavaScript">
- <!--
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
-
- function MM_swapImgRestore() { //v3.0
- var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
-
- function MM_findObj(n, d) { //v4.0
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && document.getElementById) x=document.getElementById(n); return x;
- }
-
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- //-->
- </script>
- <html>
- <head>
- <title>Professional GateKeeper - Infopulse</title>
- <!-- -->
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
- <title>MediaFamily - Welcome</title>
-
- </head>
- <body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" background="../images/backgr_x.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="344"><img src="images/1_r1_c2.jpg" width="344" height="70"></td>
- <td width="135"><img src="images/1_r1_c3.jpg" width="135" height="70"></td>
- <td width="100"><a href="hlpLogging.agp"><img src="images/1_r1_c4.jpg" width="100" height="70"border=0></a></td>
- <td width="1000"> </td>
- </tr>
- </table>
- <map name="n1_r4_c3Map">
- <area shape="rect" coords="492,45,567,76" href="#">
- </map>
-
-
- <%
- 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")
- Sort = Request.ReqParam("Sort")
- Sort_Clients = Request.ReqParam("Sort_Clients")
- Sort_Req = Request.ReqParam("Sort_Req")
- 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="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Access statistics(<%Response.Write(Logging.GetTotalHits())%> hits, <%Response.Write(Logging.GetTotalDownloadSz())%> download)
- </font></strong></td>
- <td width="20%" align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- 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
- link_client_by_name = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort_Clients=byClient" & "&client=" & client & "&host=" & host
- link_client_by_hits = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort_Clients=byHits" & "&client=" & client & "&host=" & host
- link_client_by_download = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort_Clients=" & "&client=" & client & "&host=" & host
- %>
- <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="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_client_by_name%> title="Clients sorted by Client Name" >Client</a>
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_client_by_hits%> title="Clients sorted by Hits Number">Hits</a>
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_client_by_download%> title="Clients sorted by Downlods Size">Download</a>
- </font></strong></td>
- </tr>
- <%
- if Sort_Clients = "byClient" Then
- Response.Write(Logging.Clients(file))
- End if
- if Sort_Clients = "byHits" Then
- Response.Write(Logging.ClientsByHits(file))
- End if
- if Sort_Clients = "" Then
- Response.Write(Logging.ClientsByDownload(file))
- End if
- %>
- </table>
- </center></div>
- <br>
- <hr>
- <%
- End if ' if Len(client) = 0 ...
- if Len(reqType) = 0 Then
- link_req_by_name = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort_Req=byReq" & "&client=" & client & "&host=" & host
- link_req_by_hits = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort_Req=byHits" & "&client=" & client & "&host=" & host
- link_req_by_download = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort_Req=" & "&client=" & client & "&host=" & host
- %>
- <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="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_req_by_name%> title="Request type sorted by Request Description" >Request type</a>
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_req_by_hits%> title="Request type sorted by Hits Number">Hits</a>
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_req_by_download%> title="Request type sorted by Downloads Size">Download</a>
- </font></strong></td>
- </tr>
- <%
- if Sort_Req = "byReq" Then
- Response.Write(Logging.ReqType(file))
- End if
- if Sort_Req = "byHits" Then
- Response.Write(Logging.ReqByHits(file))
- End if
- if Sort_Req = "" Then
- Response.Write(Logging.ReqByDownloads(file))
- End if
- %>
-
- </table>
- </center></div>
- <br>
- <hr>
- <%
- End if 'if Len(reqType) = 0 ...
- if Len(host) = 0 Then
- link_host = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort=byHost" & "&client=" & client & "&host=" & host
- link_hits = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort=byHits" & "&client=" & client & "&host=" & host
- link_size = "showlog.agp?file=" & file & "&audit=" & sAudit & "&reqType=" & reqType & "&Sort=" & "&client=" & client & "&host=" & host
- %>
- <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="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_host%> title="Contacted Hosts sorted by Host Name">Host</a>
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_hits%> title="Contacted Hosts sorted by Hits Number">Hits</a>
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- <a href=<%Response.Write link_size%> title="Contacted Hosts sorted by Downloads Size">Download</a>
- </font></strong></td>
- </tr>
- <%
-
- if Sort = "byHost" Then
- Response.Write(Logging.Hosts(file))
- End if
- if Sort = "byHits" Then
- Response.Write(Logging.HostByHits(file))
- End if
- if Sort = "" Then
- Response.Write(Logging.HostsBySize(file))
- End if
-
- %>
-
- </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="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Time
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Received
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- Contacted host
- </font></strong></td>
- <td align="center" bgcolor="<%Response.Write(SkinTable)%>"><strong><font face="Arial" color="<%Response.Write(SkinFont)%>">
- 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>
-