mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
cgi-bin: Remove font tags with no effect, and style tags
The font tag is deprecated, so clean up html by removing font tags that have no effect. For font tags that have an effect, move the styling to the tag controlling the text output. The aim is to get one step further towards validating html.
This commit is contained in:
@@ -133,7 +133,7 @@ print <<END
|
||||
<table width='95%' cellspacing='0'>
|
||||
END
|
||||
;
|
||||
if ( $message ne "" ) {print "<tr><td colspan='3' align='center'><font color='red'>$message</font>";}
|
||||
if ( $message ne "" ) {print "<tr><td colspan='3' style='text-align:center; color:red;'>$message</td></tr>";}
|
||||
|
||||
my $lines = 0;
|
||||
my $key = '';
|
||||
@@ -199,9 +199,9 @@ print "</table>";
|
||||
############################################################################################################################
|
||||
|
||||
sub isrunning
|
||||
{
|
||||
{
|
||||
my $cmd = $_[0];
|
||||
my $status = "<td bgcolor='${Header::colourred}' align='center'><font color='white'><b>$Lang::tr{'stopped'}</b></font></td>";
|
||||
my $status = "<td bgcolor='${Header::colourred}' style='text-align:center; color:white;'><b>$Lang::tr{'stopped'}</b></td>";
|
||||
my $pid = '';
|
||||
my $testcmd = '';
|
||||
my $exename;
|
||||
@@ -219,9 +219,10 @@ sub isrunning
|
||||
{if (/^Name:\W+(.*)/) {$testcmd = $1; }}
|
||||
close FILE;
|
||||
if ($testcmd =~ /$exename/)
|
||||
{$status = "<td bgcolor='${Header::colourgreen}'><font color='white'><b>$Lang::tr{'running'}</b></font></td>";}
|
||||
{$status = "<td style='color:white; background-color:${Header::colourgreen};'><b>$Lang::tr{'running'}</b></td>";}
|
||||
}
|
||||
}
|
||||
|
||||
return $status;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user