# necessary from your scheduler to update your statistics and from command
# line or a browser to read report results.
# See AWStats documentation (in docs/ directory) for all setup instructions.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#------------------------------------------------------------------------------
# $Revision$ - $Author$ - $Date$
require 5.007;
$AllowAccessFromWebToFollowingIPAddresses $HTMLHeadSection $HTMLEndSection $LinksToWhoIs $LinksToIPWhoIs
$LogFile $LogType $LogFormat $LogSeparator $Logo $LogoLink $StyleSheet $WrapperScript $SiteDomain
$UseHTTPSLinkForUrl $URLQuerySeparators $URLWithAnchor $ErrorMessages $ShowFlagLinks
+ $AddLinkToExternalCGIWrapper
/;
(
$DirLock, $DirCgi,
$WrapperScript, $SiteDomain,
$UseHTTPSLinkForUrl, $URLQuerySeparators,
$URLWithAnchor, $ErrorMessages,
- $ShowFlagLinks
+ $ShowFlagLinks, $AddLinkToExternalCGIWrapper
)
= (
'', '', '', '', '', '', '', '', '', '', '', '', '', '',
- '', '', '', '', '', '', '', '', '', '', '', '', ''
+ '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''
);
use vars qw/
$color_Background $color_TableBG $color_TableBGRowTitle
'Konqueror versions',
',',
'Downloads',
+ 'Export CSV'
);
#------------------------------------------------------------------------------
$SiteDomain = $value;
next;
}
+ if ( $param =~ /^AddLinkToExternalCGIWrapper/ ) {
+
+ # No regex test as AddLinkToExternalCGIWrapper is always exact value
+ $AddLinkToExternalCGIWrapper = $value;
+ next;
+ }
if ( $param =~ /^HostAliases/ ) {
@HostAliases = ();
foreach my $elem ( split( /\s+/, $value ) ) {
'browsers', 'domains', 'operating_systems', 'robots',
'search_engines', 'worms'
);
- print "----- $PROG $VERSION (c) 2000-2011 Laurent Destailleur -----\n";
+ print "----- $PROG $VERSION (c) 2000-2012 Laurent Destailleur -----\n";
print
"AWStats is a free web server logfile analyzer to show you advanced web\n";
print "statistics.\n";
#------------------------------------------------------------------------------
# Function: Prints the File Type table
# Parameters: _
-# Input: _
+# Input: $NewLinkParams, $NewLinkTargets
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLMainFileType{
+ my $NewLinkParams = shift;
+ my $NewLinkTarget = shift;
if (!$LevelForFileTypesDetection > 0){return;}
if ($Debug) { debug( "ShowFileTypesStatsCompressionStats", 2 ); }
print "$Center<a name=\"filetypes\"> </a><br />\n";
my $Totalk = 0;
foreach ( keys %_filetypes_k ) { $Totalk += $_filetypes_k{$_}; }
my $title = "$Message[73]";
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=FILETYPES&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
if ( $ShowFileTypesStats =~ /C/i ) { $title .= " - $Message[98]"; }
# build keylist at top
#------------------------------------------------------------------------------
# Function: Prints the Unknown Browser Detail frame or static page
-# Parameters: _
+# Parameters: $NewLinkTarget
# Input: _
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLShowBrowserUnknown{
+ my $NewLinkTarget = shift;
print "$Center<a name=\"unknownbrowser\"> </a><br />\n";
my $title = "$Message[50]";
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=UNKNOWNREFERERBROWSER&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
&tab_head( "$title", 19, 0, 'unknownbrowser' );
print "<tr bgcolor=\"#$color_TableBGRowTitle\"><th>User agent ("
. ( scalar keys %_unknownrefererbrowser_l )
#------------------------------------------------------------------------------
# Function: Prints the Unkown OS Detail frame or static page
-# Parameters: _
+# Parameters: $NewLinkTarget
# Input: _
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLShowOSUnknown{
+ my $NewLinkTarget = shift;
print "$Center<a name=\"unknownos\"> </a><br />\n";
my $title = "$Message[46]";
- &tab_head( "$title", 19, 0, 'unknownos' );
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=UNKNOWNREFERER&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+ &tab_head( "$title", 19, 0, 'unknownos' );
print "<tr bgcolor=\"#$color_TableBGRowTitle\"><th>User agent ("
. ( scalar keys %_unknownreferer_l )
. ")</th><th>$Message[9]</th></tr>\n";
#------------------------------------------------------------------------------
# Function: Prints the Referers frame or static page
-# Parameters: _
+# Parameters: $NewLinkTarget
# Input: _
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLShowReferers{
+ my $NewLinkTarget = shift;
print "$Center<a name=\"refererse\"> </a><br />\n";
my $title = "$Message[40]";
- &tab_head( "$title", 19, 0, 'refererse' );
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=SEREFERRALS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+ &tab_head( $title, 19, 0, 'refererse' );
print
"<tr bgcolor=\"#$color_TableBGRowTitle\"><th>".Format_Number($TotalDifferentSearchEngines)." $Message[122]</th>";
print
#------------------------------------------------------------------------------
# Function: Prints the Referer Pages frame or static page
-# Parameters: _
+# Parameters: $NewLinkTarget
# Input: _
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLShowRefererPages{
+ my $NewLinkTarget = shift;
print "$Center<a name=\"refererpages\"> </a><br />\n";
my $total_p = 0;
my $total_h = 0;
$FilterEx{'refererpages'}
);
my $title = "$Message[41]";
- my $cpt = 0;
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=PAGEREFS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+ my $cpt = 0;
$cpt = ( scalar keys %_pagesrefs_h );
&tab_head( "$title", 19, 0, 'refererpages' );
print "<tr bgcolor=\"#$color_TableBGRowTitle\"><th>";
#------------------------------------------------------------------------------
# Function: Prints the Key Phrases frame or static page
-# Parameters: _
+# Parameters: $NewLinkTarget
# Input: _
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLShowKeyPhrases{
+ my $NewLinkTarget = shift;
print "$Center<a name=\"keyphrases\"> </a><br />\n";
- &tab_head( $Message[43], 19, 0, 'keyphrases' );
+ my $title = "$Message[43]";
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=SEARCHWORDS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+ &tab_head( $title, 19, 0, 'keyphrases' );
print "<tr bgcolor=\"#$color_TableBGRowTitle\""
. Tooltip(15)
. "><th>".Format_Number($TotalDifferentKeyphrases)." $Message[103]</th><th bgcolor=\"#$color_s\" width=\"80\">$Message[14]</th><th bgcolor=\"#$color_s\" width=\"80\">$Message[15]</th></tr>\n";
#------------------------------------------------------------------------------
# Function: Prints the Keywords frame or static page
-# Parameters: _
+# Parameters: $NewLinkTarget
# Input: _
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLShowKeywords{
+ my $NewLinkTarget = shift;
print "$Center<a name=\"keywords\"> </a><br />\n";
- &tab_head( $Message[44], 19, 0, 'keywords' );
+ my $title = "$Message[44]";
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=KEYWORDS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+ &tab_head( $title, 19, 0, 'keywords' );
print "<tr bgcolor=\"#$color_TableBGRowTitle\""
. Tooltip(15)
. "><th>".Format_Number($TotalDifferentKeywords)." $Message[13]</th><th bgcolor=\"#$color_s\" width=\"80\">$Message[14]</th><th bgcolor=\"#$color_s\" width=\"80\">$Message[15]</th></tr>\n";
if ($Debug) { debug( "ShowDaysOfMonthStats", 2 ); }
print "$Center<a name=\"daysofmonth\"> </a><br />\n";
- my $title = "$Message[138]";
- &tab_head( "$title", 0, 0, 'daysofmonth' );
- print "<tr>";
- print "<td align=\"center\">\n";
- print "<center>\n";
my $NewLinkParams = ${QueryString};
$NewLinkParams =~ s/(^|&|&)update(=\w*|$)//i;
$NewLinkTarget = " target=\"_parent\"";
}
+ my $title = "$Message[138]";
+
+ if ($AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"".(XMLEncode(
+ "$AddLinkToExternalCGIWrapper". "?section=DAY&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
+ &tab_head( "$title", 0, 0, 'daysofmonth' );
+ print "<tr>";
+ print "<td align=\"center\">\n";
+ print "<center>\n";
+
my $average_v = my $average_p = 0;
my $average_h = my $average_k = 0;
my $total_u = my $total_v = my $total_p = my $total_h = my $total_k = 0;
sub HTMLMainDaysofWeek{
my $firstdaytocountaverage = shift;
my $lastdaytocountaverage = shift;
+ my $NewLinkParams = shift;
+ my $NewLinkTarget = shift;
+
if ($Debug) { debug( "ShowDaysOfWeekStats", 2 ); }
print "$Center<a name=\"daysofweek\"> </a><br />\n";
my $title = "$Message[91]";
#------------------------------------------------------------------------------
# Function: Prints the Downloads chart and table
# Parameters: -
-# Input: -
+# Input: $NewLinkParams, $NewLinkTarget
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
: "$StaticLinks.downloads.$StaticExt"
)
. "\"$NewLinkTarget>$Message[80]</a>";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=DOWNLOADS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 0, 0, 'downloads' );
my $cnt=0;
for my $u (sort {$_downloads{$b}->{'AWSTATS_HITS'} <=> $_downloads{$a}->{'AWSTATS_HITS'}}(keys %_downloads) ){
#------------------------------------------------------------------------------
# Function: Prints the hours chart and table
-# Parameters: -
+# Parameters: $NewLinkParams, $NewLinkTarget
# Input: -
# Output: HTML
# Return: -
#------------------------------------------------------------------------------
sub HTMLMainHours{
- if ($Debug) { debug( "ShowHoursStats", 2 ); }
+ my $NewLinkParams = shift;
+ my $NewLinkTarget = shift;
+
+ if ($Debug) { debug( "ShowHoursStats", 2 ); }
print "$Center<a name=\"hours\"> </a><br />\n";
my $title = "$Message[20]";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=TIME&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
if ( $PluginsLoaded{'GetTimeZoneTitle'}{'timezone'} ) {
$title .= " (GMT "
. ( GetTimeZoneTitle_timezone() >= 0 ? "+" : "" )
: "$StaticLinks.alldomains.$StaticExt"
)
. "\"$NewLinkTarget>$Message[80]</a>";
+
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=DOMAIN&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'countries' );
my $total_u = my $total_v = my $total_p = my $total_h = my $total_k = 0;
: "$StaticLinks.unknownip.$StaticExt"
)
. "\"$NewLinkTarget>$Message[45]</a>";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=VISITOR&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'visitors' );
&BuildKeyList( $MaxNbOf{'HostsShown'}, $MinHit{'Host'}, \%_host_h,
if ($Debug) { debug( "ShowRobotStats", 2 ); }
print "$Center<a name=\"robots\"> </a><br />\n";
- &tab_head(
-"$Message[53] ($Message[77] $MaxNbOf{'RobotShown'}) - <a href=\""
+
+ my $title = "$Message[53] ($Message[77] $MaxNbOf{'RobotShown'}) - <a href=\""
. (
$ENV{'GATEWAY_INTERFACE'}
|| !$StaticLinks
? XMLEncode("$AWScript${NewLinkParams}output=lastrobots")
: "$StaticLinks.lastrobots.$StaticExt"
)
- . "\"$NewLinkTarget>$Message[9]</a>",
- 19, 0, 'robots'
- );
- print "<tr bgcolor=\"#$color_TableBGRowTitle\""
+ . "\"$NewLinkTarget>$Message[9]</a>";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title = "$title - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=ROBOT&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
+ &tab_head( "$title", 19, 0, 'robots');
+
+ print "<tr bgcolor=\"#$color_TableBGRowTitle\""
. Tooltip(16) . "><th>"
. Format_Number(( scalar keys %_robot_h ))
. " $Message[51]*</th>";
)
. "\"$NewLinkTarget>$Message[116]</a>";
}
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title .= " - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=SIDER&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'urls' );
print
"<tr bgcolor=\"#$color_TableBGRowTitle\"><th>".Format_Number($TotalDifferentPages)." $Message[28]</th>";
: "$StaticLinks.unknownos.$StaticExt"
)
. "\"$NewLinkTarget>$Message[0]</a>";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title .= " - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=OS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'os' );
&BuildKeyList( $MaxNbOf{'OsShown'}, $MinHit{'Os'}, \%new_os_h,
: "$StaticLinks.unknownbrowser.$StaticExt"
)
. "\"$NewLinkTarget>$Message[0]</a>";
+
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title .= " - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=BROWSER&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'browsers' );
&BuildKeyList(
? $_from_h[$_]
: 0;
}
- &tab_head( $Message[36], 19, 0, 'referer' );
+
+ my $title = "$Message[36]";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title .= " - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=ORIGIN&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
+ &tab_head( $title, 19, 0, 'referer' );
my @p_p = ( 0, 0, 0, 0, 0, 0 );
if ( $Totalp > 0 ) {
$p_p[0] = int( $_from_p[0] / $Totalp * 1000 ) / 10;
if ($Debug) { debug( "ShowHTTPErrorsStats", 2 ); }
print "$Center<a name=\"errors\"> </a><br />\n";
my $title = "$Message[32]";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title .= " - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=ERRORS&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'errors' );
&BuildKeyList( $MaxRowsInHTMLOutput, 1, \%_errors_h, \%_errors_h );
if ($Debug) { debug( "ShowClusterStats", 2 ); }
print "$Center<a name=\"clusters\"> </a><br />\n";
my $title = "$Message[155]";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ # extend the title to include the added link
+ $title .= " - <a href=\"" . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=CLUSTER&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
&tab_head( "$title", 19, 0, 'clusters' );
&BuildKeyList( $MaxRowsInHTMLOutput, 1, \%_cluster_p, \%_cluster_p );
: "$StaticLinks.allextra$extranum.$StaticExt"
)
. "\"$NewLinkTarget>$Message[80]</a>";
+
+ if ( $AddLinkToExternalCGIWrapper && ($ENV{'GATEWAY_INTERFACE'} || !$StaticLinks) ) {
+ print " - <a href=\""
+ . (XMLEncode(
+ "$AddLinkToExternalCGIWrapper" . "?section=EXTRA_$extranum&baseName=$DirData/$PROG"
+ . "&month=$MonthRequired&year=$YearRequired&day=$DayRequired"
+ . "§ionTitle=$ExtraName[$extranum]&siteConfig=$SiteConfig" )
+ . "\"$NewLinkTarget>$Message[179]</a>");
+ }
+
print "</th>";
if ( $ExtraStatTypes[$extranum] =~ m/P/i ) {
&HTMLShowURLDetail();
}
if ( $HTMLOutput{'unknownos'} ) {
- &HTMLShowOSUnknown();
+ &HTMLShowOSUnknown($NewLinkTarget);
}
if ( $HTMLOutput{'unknownbrowser'} ) {
- &HTMLShowBrowserUnknown();
+ &HTMLShowBrowserUnknown($NewLinkTarget);
}
if ( $HTMLOutput{'osdetail'} ) {
&HTMLShowOSDetail();
&HTMLShowBrowserDetail();
}
if ( $HTMLOutput{'refererse'} ) {
- &HTMLShowReferers();
+ &HTMLShowReferers($NewLinkTarget);
}
if ( $HTMLOutput{'refererpages'} ) {
- &HTMLShowRefererPages();
+ &HTMLShowRefererPages($NewLinkTarget);
}
if ( $HTMLOutput{'keyphrases'} ) {
- &HTMLShowKeyPhrases();
+ &HTMLShowKeyPhrases($NewLinkTarget);
}
if ( $HTMLOutput{'keywords'} ) {
- &HTMLShowKeywords();
+ &HTMLShowKeywords($NewLinkTarget);
}
if ( $HTMLOutput{'downloads'} ) {
&HTMLShowDownloads();
# BY DAY OF WEEK
#-------------------------
if ($ShowDaysOfWeekStats) {
- &HTMLMainDaysofWeek($firstdaytocountaverage, $lastdaytocountaverage);
+ &HTMLMainDaysofWeek($firstdaytocountaverage, $lastdaytocountaverage, $NewLinkParams, $NewLinkTarget);
}
# BY HOUR
#----------------------------
if ($ShowHoursStats) {
- &HTMLMainHours();
+ &HTMLMainHours($NewLinkParams, $NewLinkTarget);
}
print "\n<a name=\"who\"> </a>\n\n";
# BY FILE TYPE
#-------------------------
if ($ShowFileTypesStats) {
- &HTMLMainFileType();
+ &HTMLMainFileType($NewLinkParams, $NewLinkTarget);
}
# BY FILE SIZE