From: eldy <> Date: Fri, 12 Dec 2003 19:36:24 +0000 (+0000) Subject: Do not show plugins list in copyright string for some pages. X-Git-Tag: AWSTATS_6_0_BETA~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf9a535add0e10193fa5b5ccd55ff0035f715b67;p=thirdparty%2FAWStats.git Do not show plugins list in copyright string for some pages. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 405f52b3..a3c061c6 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -600,24 +600,27 @@ EOF #------------------------------------------------------------------------------ # Function: Write on ouput end of HTML page -# Parameters: None -# Input: %HTMLOutput $HTMLEndSection +# Parameters: 0|1 (0=no list plugins,1=list plugins) +# Input: %HTMLOutput $HTMLEndSection $FrameName $BuildReportFormat # Output: None # Return: None #------------------------------------------------------------------------------ sub html_end { + my $listplugins=shift||0; if (scalar keys %HTMLOutput) { if ($FrameName ne 'index' && $FrameName ne 'mainleft') { print "$Center

\n"; print ""; print "Advanced Web Statistics $VERSION - Created by $PROG"; - my $atleastoneplugin=0; - foreach my $pluginname (keys %{$PluginsLoaded{'init'}}) { - if (! $atleastoneplugin) { $atleastoneplugin=1; print " (with plugin "; } - else { print ", "; } - print "$pluginname"; + if ($listplugins) { + my $atleastoneplugin=0; + foreach my $pluginname (keys %{$PluginsLoaded{'init'}}) { + if (! $atleastoneplugin) { $atleastoneplugin=1; print " (with plugin "; } + else { print ", "; } + print "$pluginname"; + } + if ($atleastoneplugin) { print ")"; } } - if ($atleastoneplugin) { print ")"; } print "
\n"; if ($HTMLEndSection) { print "
\n$HTMLEndSection\n"; } } @@ -5383,7 +5386,7 @@ if ($PluginMode) { my $function="BuildFullHTMLOutput_$PluginMode()"; eval("$function"); if ($? || $@) { error("$@"); } - &html_end; + &html_end(0); exit 0; } @@ -5463,7 +5466,7 @@ if ($MigrateStats) { } if ($EnableLockForUpdate) { &Lock_Update(0); } print "Migration for file '$MigrateStats' successful."; print $ENV{'GATEWAY_INTERFACE'}?"
\n":"\n"; - &html_end; + &html_end(1); exit 0; } @@ -5484,7 +5487,7 @@ if ($FrameName eq 'index') { print "to see your reports.
\n"; print "\n"; print "\n"; - &html_end; + &html_end(0); exit 0; } @@ -7130,7 +7133,7 @@ if (scalar keys %HTMLOutput) { # Exit if left frame if ($FrameName eq 'mainleft') { - &html_end; + &html_end(0); exit 0; } @@ -7493,7 +7496,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'allhosts'} || $HTMLOutput{'lasthosts'}) { print "$Center 
\n"; @@ -7558,7 +7561,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'unknownip'}) { print "$Center 
\n"; @@ -7601,15 +7604,15 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'allemails'} || $HTMLOutput{'lastemails'}) { &ShowEmailSendersChart($NewLinkParams,$NewLinkTarget); - &html_end; + &html_end(1); } if ($HTMLOutput{'allemailr'} || $HTMLOutput{'lastemailr'}) { &ShowEmailReceiversChart($NewLinkParams,$NewLinkTarget); - &html_end; + &html_end(1); } if ($HTMLOutput{'alllogins'} || $HTMLOutput{'lastlogins'}) { print "$Center 
\n"; @@ -7655,7 +7658,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'allrobots'} || $HTMLOutput{'lastrobots'}) { print "$Center 
\n"; @@ -7702,7 +7705,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end("* $Message[157]"); - &html_end; + &html_end(1); } if ($HTMLOutput{'urldetail'} || $HTMLOutput{'urlentry'} || $HTMLOutput{'urlexit'}) { # Call to plugins' function ShowPagesFilter @@ -7806,7 +7809,7 @@ if (scalar keys %HTMLOutput) { print " \n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'unknownos'}) { print "$Center 
\n"; @@ -7831,7 +7834,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'unknownbrowser'}) { print "$Center 
\n"; @@ -7854,7 +7857,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'osdetail'}) { # Show os versions @@ -7946,7 +7949,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'browserdetail'}) { # Show browsers versions @@ -8039,7 +8042,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'refererse'}) { print "$Center 
\n"; @@ -8082,7 +8085,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'refererpages'}) { print "$Center 
\n"; @@ -8141,7 +8144,7 @@ if (scalar keys %HTMLOutput) { print "\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'keyphrases'}) { print "$Center 
\n"; @@ -8170,7 +8173,7 @@ if (scalar keys %HTMLOutput) { print "$p %\n"; } &tab_end; - &html_end; + &html_end(1); } if ($HTMLOutput{'keywords'}) { print "$Center 
\n"; @@ -8199,7 +8202,7 @@ if (scalar keys %HTMLOutput) { print "$p %\n"; } &tab_end; - &html_end; + &html_end(1); } foreach my $code (keys %TrapInfosForHTTPErrorCodes) { if ($HTMLOutput{"errors$code"}) { @@ -8232,13 +8235,13 @@ if (scalar keys %HTMLOutput) { # print "\n"; # } &tab_end; - &html_end; + &html_end(1); } } if ($HTMLOutput{'info'}) { # Not yet available print "$Center 
"; - &html_end; + &html_end(1); } if ($HTMLOutput{'main'}) { @@ -9874,7 +9877,7 @@ if (scalar keys %HTMLOutput) { &tab_end; } - &html_end; + &html_end(1); } } else {