From: Alf Høgemark Date: Sat, 22 Feb 2014 10:59:55 +0000 (+0100) Subject: cgi-bin: Remove font tags with no effect, and style tags X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=8b40eca59ec98f19544e68342db7ee24d5983aa6 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. --- diff --git a/html/cgi-bin/dnsforward.cgi b/html/cgi-bin/dnsforward.cgi index 5f051d21f..b66fa467b 100644 --- a/html/cgi-bin/dnsforward.cgi +++ b/html/cgi-bin/dnsforward.cgi @@ -207,20 +207,20 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'edit'}) { print < - $Lang::tr{'dnsforward zone'}: + $Lang::tr{'dnsforward zone'}: $Lang::tr{'enabled'} - $Lang::tr{'dnsforward forward_server'}: + $Lang::tr{'dnsforward forward_server'}: - +
$Lang::tr{'remark'}: *$Lang::tr{'remark'}: *
@@ -229,7 +229,7 @@ print < - * $Lang::tr{'this field may be blank'} + * $Lang::tr{'this field may be blank'} diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi index 7e8e32eea..2aec3cce1 100644 --- a/html/cgi-bin/media.cgi +++ b/html/cgi-bin/media.cgi @@ -206,9 +206,9 @@ sub diskbox { if ( $status[1]=~/standby/){ my $ftime = localtime((stat("/var/run/hddshutdown-$disk"))[9]); - print"Disk $disk status:".$status[1]." ($Lang::tr{'since'} $ftime)"; + print"Disk $disk status:".$status[1]." ($Lang::tr{'since'} $ftime)"; }else{ - print"Disk $disk status:".$status[1].""; + print"Disk $disk status:".$status[1].""; } } diff --git a/html/cgi-bin/upnp.cgi b/html/cgi-bin/upnp.cgi index ee341e15a..07dfa2677 100644 --- a/html/cgi-bin/upnp.cgi +++ b/html/cgi-bin/upnp.cgi @@ -133,7 +133,7 @@ print < END ; -if ( $message ne "" ) {print "$message";} +if ( $message ne "" ) {print "$message";} my $lines = 0; my $key = ''; @@ -199,9 +199,9 @@ print ""; ############################################################################################################################ sub isrunning - { +{ my $cmd = $_[0]; - my $status = "$Lang::tr{'stopped'}"; + my $status = "$Lang::tr{'stopped'}"; my $pid = ''; my $testcmd = ''; my $exename; @@ -219,9 +219,10 @@ sub isrunning {if (/^Name:\W+(.*)/) {$testcmd = $1; }} close FILE; if ($testcmd =~ /$exename/) - {$status = "$Lang::tr{'running'}";} + {$status = "$Lang::tr{'running'}";} } } return $status; - } +} +