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 "