From: eldy <> Date: Mon, 9 Sep 2002 12:51:50 +0000 (+0000) Subject: Added url entry and url exit full list report. X-Git-Tag: AWSTATS_5_0_BETA~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7bf612c562b59b6f10dcdedeb9294fb59292ba2;p=thirdparty%2FAWStats.git Added url entry and url exit full list report. --- diff --git a/tools/awstats_buildstaticpages.pl b/tools/awstats_buildstaticpages.pl index 8d4ce210..b82d482e 100644 --- a/tools/awstats_buildstaticpages.pl +++ b/tools/awstats_buildstaticpages.pl @@ -38,7 +38,7 @@ my $OutputDir=""; my $OutputSuffix; my $OutputFile; my @OutputList=( -"allhosts","lasthosts","unknownip","urldetail", +"allhosts","lasthosts","unknownip","urldetail","urlentry","urlexit", "unknownos","unknownbrowser","browserdetail", "refererse","refererpages", #"referersites", diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 476970d3..41fa513b 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1519,7 +1519,7 @@ sub Read_History_With_Update { if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "unknownos") { $SectionsToLoad{"unknownreferer"}=12; } if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "unknownbrowser") { $SectionsToLoad{"unknownrefererbrowser"}=13; } if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "robots") { $SectionsToLoad{"robot"}=14; } - if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "urldetail") { $SectionsToLoad{"sider"}=15; } + if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "urldetail" || $HTMLOutput eq "urlentry" || $HTMLOutput eq "urlexit") { $SectionsToLoad{"sider"}=15; } if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "filetypes") { $SectionsToLoad{"filetypes"}=16; } if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "origin") { $SectionsToLoad{"origin"}=17; } if ($UpdateStats || $HTMLOutput eq "main" || $HTMLOutput eq "refererse") { $SectionsToLoad{"sereferrals"}=18; } @@ -2179,7 +2179,8 @@ sub Read_History_With_Update { $TotalDifferentPages++; } } - elsif ($HTMLOutput eq "urldetail") { +# elsif ($HTMLOutput eq "urldetail") { + else { # This is for $HTMLOutput = urldetail, urlentry or urlexit if ($MonthRequired eq "year" ) { if (!$URLFilter || $field[0] =~ /$URLFilter/) { $loadrecord=1; } } @@ -3513,6 +3514,10 @@ if ((! $ENV{"GATEWAY_INTERFACE"}) && (! $SiteConfig)) { print " unknownip to build page of all unresolved IP\n"; print " urldetail to list most often viewed pages \n"; print " urldetail:filter to list most often viewed pages matching filter\n"; + print " urlentry to list entry pages\n"; + print " urlentry:filter to list entry pages matching filter\n"; + print " urlexit to list exit pages\n"; + print " urlexit:filter to list exit pages matching filter\n"; print " browserdetail to build page with browsers detailed versions\n"; print " unknownbrowser to list 'User Agents' with unknown browser\n"; print " unknownos to list 'User Agents' with unknown OS\n"; @@ -4951,8 +4956,8 @@ EOF if ($ShowSessionsStats) { print ($frame?"":""); print "$Message[117]"; print ($frame?"\n":"   "); } if ($ShowPagesStats) { print ($frame?"":""); print "$Message[29]\n"; print ($frame?"\n":"   "); } if ($ShowPagesStats) { print ($frame?"   ":""); print "$Message[80]\n"; print ($frame?"\n":"   "); } - if ($ShowPagesStats) { print ($frame?"":""); print "$Message[104]"; print ($frame?"\n":"   "); } - if ($ShowPagesStats) { print ($frame?"":""); print "$Message[116]"; print ($frame?"\n":"   "); } + if ($ShowPagesStats) { print ($frame?"   ":""); print "$Message[104]\n"; print ($frame?"\n":"   "); } + if ($ShowPagesStats) { print ($frame?"   ":""); print "$Message[116]\n"; print ($frame?"\n":"   "); } if ($ShowFileTypesStats) { print ($frame?"":""); print "$Message[73]"; print ($frame?"\n":"   "); } if ($ShowFileSizesStats) { } if ($ShowOSStats) { print ($frame?"":""); print "$Message[59]"; print ($frame?"\n":"   "); } @@ -5180,7 +5185,7 @@ EOF &html_end; exit(0); } - if ($HTMLOutput eq "urldetail") { + if ($HTMLOutput eq "urldetail" || $HTMLOutput eq "urlentry" || $HTMLOutput eq "urlexit") { if ($Plugin_etf1) { AddOn_Filter(); } print "$Center 
\n"; # Show filter form @@ -5191,10 +5196,10 @@ EOF $NewLinkParams =~ s/staticlinks(=\w*|$|[ &]+)//i; $NewLinkParams =~ tr/&/&/s; $NewLinkParams =~ s/^&//; $NewLinkParams =~ s/&$//; if ($NewLinkParams) { $NewLinkParams="${NewLinkParams}&"; } - print "
\n"; + print "\n\n"; print "\n"; print "\n"; print "
    $Message[79] :    \n"; - print "\n"; + print "\n"; if ($SiteConfig) { print "\n"; } if ($QueryString =~ /year=(\d\d\d\d)/i) { print "\n"; } if ($QueryString =~ /month=(\d\d)/i || $QueryString =~ /month=(year)/i) { print "\n"; } @@ -5205,16 +5210,22 @@ EOF print "\n"; print "
\n"; - print "
\n"; + print "\n\n"; } # Show URL list - &tab_head($Message[19],19); + my $title=""; my $cpt=0; + if ($HTMLOutput eq "urldetail") { $title=$Message[19]; $cpt=(scalar keys %_url_p); } + if ($HTMLOutput eq "urlentry") { $title=$Message[104]; $cpt=(scalar keys %_url_e); } + if ($HTMLOutput eq "urlexit") { $title=$Message[116]; $cpt=(scalar keys %_url_x); } + &tab_head($title,19); print ""; if ($URLFilter) { - print "$Message[79] $URLFilter: ".(scalar keys %_url_p)." $Message[28]"; - if ($MonthRequired ne "year") { print "
$Message[102]: $TotalDifferentPages $Message[28]"; } + print "$Message[79] $URLFilter: $cpt $Message[28]"; + if ($MonthRequired ne "year") { + if ($HTMLOutput eq "urldetail") { print "
$Message[102]: $TotalDifferentPages $Message[28]"; } + } } - else { print "$Message[102]: ".(scalar keys %_url_p)." $Message[28]"; } + else { print "$Message[102]: $cpt $Message[28]"; } print ""; print " $Message[29] "; print " $Message[106] "; @@ -5224,7 +5235,9 @@ EOF print " \n"; $total_p=$total_k=$total_e=$total_x=0; my $count=0; - &BuildKeyList($MaxRowsInHTMLOutput,$MinHitFile,\%_url_p,\%_url_p); + if ($HTMLOutput eq "urlentry") { &BuildKeyList($MaxRowsInHTMLOutput,$MinHitFile,\%_url_e,\%_url_e); } + elsif ($HTMLOutput eq "urlexit") { &BuildKeyList($MaxRowsInHTMLOutput,$MinHitFile,\%_url_x,\%_url_x); } + else { &BuildKeyList($MaxRowsInHTMLOutput,$MinHitFile,\%_url_p,\%_url_p); } $max_p=1; $max_k=1; foreach my $key (@keylist) { if ($_url_p{$key} > $max_p) { $max_p = $_url_p{$key}; } @@ -5983,7 +5996,7 @@ EOF if ($Debug) { debug("ShowPagesStats (MaxNbOfPageShown=$MaxNbOfPageShown TotalDifferentPages=$TotalDifferentPages)",2); } print "$Center   
\n"; $MaxNbOfPageShown = $TotalDifferentPages if $MaxNbOfPageShown > $TotalDifferentPages; - &tab_head("$Message[19] ($Message[77] $MaxNbOfPageShown)   -   $Message[80]",19); + &tab_head("$Message[19] ($Message[77] $MaxNbOfPageShown)   -   $Message[80]   -   $Message[104]   -   $Message[116]",19); print "$TotalDifferentPages $Message[28]"; print "$Message[29]"; print "$Message[106]";