1
Description: HTML output nits
2
Author: Chaskiel Grundman <cg2v@andrew.cmu.edu>
3
Debian-Bug: http://bugs.debian.org/630943
4
Forwarded: https://sourceforge.net/tracker/index.php?func=detail&aid=3429995&group_id=13764&atid=363764
7
wwwroot/cgi-bin/awstats.pl | 48 +++++++++++++++------------------------------
8
1 file changed, 16 insertions(+), 32 deletions(-)
10
--- a/wwwroot/cgi-bin/awstats.pl
11
+++ b/wwwroot/cgi-bin/awstats.pl
13
else { print "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"; }
14
if ( $FrameName ne 'index' ) {
16
-"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
17
+"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
23
if ( $FrameName ne 'index' ) {
25
-"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
26
+"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
30
-"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n";
31
+"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">\n";
33
print '<html lang="' . $Lang . '"'
34
. ( $PageDir ? ' dir="rtl"' : '' ) . ">\n";
37
# A STYLE section must be in head section. Do not use " for number in a style section
38
print "<style type=\"text/css\">\n";
39
- if ( $BuildReportFormat eq 'xhtml' || $BuildReportFormat eq 'xml' )
41
- print( $ENV{'HTTP_USER_AGENT'} =~ /Firebird/i
46
- else { print "<!--\n"; }
54
- if ( $BuildReportFormat eq 'xhtml' || $BuildReportFormat eq 'xml' )
56
- print( $ENV{'HTTP_USER_AGENT'} =~ /Firebird/i
61
- else { print "//-->\n"; }
68
"$MonthRequired" eq "$monthix"
69
- ? " selected=\"true\""
70
+ ? " selected=\"selected\""
73
. " value=\"$monthix\">$MonthNumLib{$monthix}</option>\n";
74
@@ -13010,13 +12994,13 @@
76
&& $monthix == $nowmonth
77
&& $YearRequired == $nowyear
78
- ? '<font class="currentday">'
79
+ ? '<span class="currentday">'
82
print "$MonthNumLib{$monthix}<br />$YearRequired";
84
&& $monthix == $nowmonth
85
- && $YearRequired == $nowyear ? '</font>' : '' );
86
+ && $YearRequired == $nowyear ? '</span>' : '' );
90
@@ -13073,13 +13057,13 @@
92
&& $monthix == $nowmonth
93
&& $YearRequired == $nowyear
94
- ? '<font class="currentday">'
95
+ ? '<span class="currentday">'
98
print "$MonthNumLib{$monthix} $YearRequired";
100
&& $monthix == $nowmonth
101
- && $YearRequired == $nowyear ? '</font>' : '' );
102
+ && $YearRequired == $nowyear ? '</span>' : '' );
104
if ( $ShowMonthStats =~ /U/i ) {
106
@@ -13426,7 +13410,7 @@
108
&& $month == $nowmonth
110
- ? '<font class="currentday">'
111
+ ? '<span class="currentday">'
114
print "$day<br /><span style=\"font-size: "
115
@@ -13438,7 +13422,7 @@
118
&& $month == $nowmonth
119
- && $year == $nowyear ? '</font>' : '' );
120
+ && $year == $nowyear ? '</span>' : '' );
123
print "<td> </td>";
124
@@ -13500,14 +13484,14 @@
126
&& $month == $nowmonth
128
- ? '<font class="currentday">'
129
+ ? '<span class="currentday">'
132
print Format_Date( "$year$month$day" . "000000", 2 );
135
&& $month == $nowmonth
136
- && $year == $nowyear ? '</font>' : '' );
137
+ && $year == $nowyear ? '</span>' : '' );
139
if ( $ShowDaysOfMonthStats =~ /V/i ) {
141
@@ -13803,14 +13787,14 @@
142
&& $_ == ( $nowwday - 1 )
143
&& $MonthRequired == $nowmonth
144
&& $YearRequired == $nowyear
145
- ? '<font class="currentday">'
146
+ ? '<span class="currentday">'
149
print $Message[ $_ + 84 ];
151
&& $_ == ( $nowwday - 1 )
152
&& $MonthRequired == $nowmonth
153
- && $YearRequired == $nowyear ? '</font>' : '' );
154
+ && $YearRequired == $nowyear ? '</span>' : '' );
157
print "</tr>\n</table>\n";
158
@@ -13847,14 +13831,14 @@
159
&& $_ == ( $nowwday - 1 )
160
&& $MonthRequired == $nowmonth
161
&& $YearRequired == $nowyear
162
- ? '<font class="currentday">'
163
+ ? '<span class="currentday">'
166
print $Message[ $_ + 84 ];
168
&& $_ == ( $nowwday - 1 )
169
&& $MonthRequired == $nowmonth
170
- && $YearRequired == $nowyear ? '</font>' : '' );
171
+ && $YearRequired == $nowyear ? '</span>' : '' );
173
if ( $ShowDaysOfWeekStats =~ /P/i ) {
174
print "<td>", Format_Number(int($avg_dayofweek_p[$_])), "</td>";