cgi-bin: HTML cleanup, add quotes for attribute values

This commit is contained in:
Alf Høgemark
2014-02-15 16:54:38 +01:00
parent 2c01f467d9
commit 631b67b7cd
5 changed files with 12 additions and 12 deletions

View File

@@ -594,7 +594,7 @@ END
if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable_green" || -e "${General::swroot}/snort/enable_blue" || -e "${General::swroot}/snort/enable_orange" ) { if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable_green" || -e "${General::swroot}/snort/enable_blue" || -e "${General::swroot}/snort/enable_orange" ) {
&Header::openbox('100%', 'LEFT', $Lang::tr{'intrusion detection system rules'}); &Header::openbox('100%', 'LEFT', $Lang::tr{'intrusion detection system rules'});
# Output display table for rule files # Output display table for rule files
print "<table width='100%'><tr><td valign='TOP'><table>"; print "<table width='100%'><tr><td valign='top'><table>";
print "<form method='post'>"; print "<form method='post'>";
@@ -615,7 +615,7 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable
# Check if reached half-way through rule file rules to start new column # Check if reached half-way through rule file rules to start new column
if ($ruledisplaycnt > $rulecnt) { if ($ruledisplaycnt > $rulecnt) {
print "</table></td><td valign='TOP'><table>"; print "</table></td><td valign='top'><table>";
$ruledisplaycnt = 0; $ruledisplaycnt = 0;
} }
@@ -666,8 +666,8 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable
} }
# Output rule file name and checkbox # Output rule file name and checkbox
print "<tr><td class='base' valign='TOP'><input type='checkbox' NAME='SNORT_RULE_$rulefile' $rulechecked> <a href='$rulefilelink'>$rulefile</a></td></tr>"; print "<tr><td class='base' valign='top'><input type='checkbox' NAME='SNORT_RULE_$rulefile' $rulechecked> <a href='$rulefilelink'>$rulefile</a></td></tr>";
print "<tr><td class='base' valign='TOP'>"; print "<tr><td class='base' valign='top'>";
# Check for empty 'Description' # Check for empty 'Description'
if ($snortrules{$rulefile}{'Description'} eq '') { if ($snortrules{$rulefile}{'Description'} eq '') {
@@ -680,7 +680,7 @@ if ( -e "${General::swroot}/snort/enable" || -e "${General::swroot}/snort/enable
# Check for display flag # Check for display flag
if ($displayrulefilerules) { if ($displayrulefilerules) {
# Rule file definition rule display # Rule file definition rule display
print "<tr><td class='base' valign='TOP'><table border='0'><tr>"; print "<tr><td class='base' valign='top'><table border='0'><tr>";
# Local vars # Local vars
my $ruledefdisplaycnt = 0; my $ruledefdisplaycnt = 0;

View File

@@ -2282,7 +2282,7 @@ ADV_ERROR:
&Header::openbox('100%', 'LEFT', $Lang::tr{'advanced server'}); &Header::openbox('100%', 'LEFT', $Lang::tr{'advanced server'});
print <<END print <<END
<form method='post' enctype='multipart/form-data'> <form method='post' enctype='multipart/form-data'>
<table width='100%' border=0> <table width='100%' border='0'>
<tr> <tr>
<td colspan='4'><b>$Lang::tr{'dhcp-options'}</b></td> <td colspan='4'><b>$Lang::tr{'dhcp-options'}</b></td>
</tr> </tr>
@@ -2485,7 +2485,7 @@ if ($cgiparams{'ACTION'} eq "edit"){
&Header::openbox('100%', 'LEFT', $Lang::tr{'ccd modify'}); &Header::openbox('100%', 'LEFT', $Lang::tr{'ccd modify'});
print <<END print <<END
<table width='100%' border=0> <table width='100%' border='0'>
<tr><form method='post'> <tr><form method='post'>
<td width='10%' nowrap='nowrap'>$Lang::tr{'ccd name'}:</td><td><input type='TEXT' name='ccdname' value='$cgiparams{'ccdname'}' /></td> <td width='10%' nowrap='nowrap'>$Lang::tr{'ccd name'}:</td><td><input type='TEXT' name='ccdname' value='$cgiparams{'ccdname'}' /></td>
<td width='8%'>$Lang::tr{'ccd subnet'}:</td><td><input type='TEXT' name='ccdsubnet' value='$cgiparams{'ccdsubnet'}' readonly /></td></tr> <td width='8%'>$Lang::tr{'ccd subnet'}:</td><td><input type='TEXT' name='ccdsubnet' value='$cgiparams{'ccdsubnet'}' readonly /></td></tr>
@@ -4581,7 +4581,7 @@ END
} }
&Header::openbox('100%', 'LEFT', $Lang::tr{'global settings'}); &Header::openbox('100%', 'LEFT', $Lang::tr{'global settings'});
print <<END print <<END
<table width='100%' border=0> <table width='100%' border='0'>
<form method='post'> <form method='post'>
<td width='25%'>&nbsp;</td> <td width='25%'>&nbsp;</td>
<td width='25%'>&nbsp;</td> <td width='25%'>&nbsp;</td>

View File

@@ -88,10 +88,10 @@ close FILE;
print <<END; print <<END;
<table width='35%' class='tbl'> <table width='35%' class='tbl'>
<tr> <tr>
<th align=center colspan='2'bgcolor='$color{'color22'}' > <th align='center' colspan='2' bgcolor='$color{'color22'}' >
<b>$Lang::tr{'protocol'}</b> <b>$Lang::tr{'protocol'}</b>
</th> </th>
<th align='center'bgcolor='$color{'color22'}' > <th align='center' bgcolor='$color{'color22'}' >
<b>$Lang::tr{'status'}</b> <b>$Lang::tr{'status'}</b>
</th> </th>
</tr> </tr>

View File

@@ -1206,7 +1206,7 @@ print <<END
<td colspan='4'><b>$Lang::tr{'advproxy destination ports'}</b></td> <td colspan='4'><b>$Lang::tr{'advproxy destination ports'}</b></td>
</tr> </tr>
<tr> <tr>
<td width='25%' align=center></td> <td width='20%' align=center></td><td width='25%' align=center></td><td width='30%' align=center></td> <td width='25%' align='center'></td> <td width='20%' align='center'></td><td width='25%' align='center'></td><td width='30%' align='center'></td>
</tr> </tr>
<tr> <tr>
<td colspan='2' class='base'>$Lang::tr{'advproxy standard ports'}:</td> <td colspan='2' class='base'>$Lang::tr{'advproxy standard ports'}:</td>

View File

@@ -487,7 +487,7 @@ print <<END
<tr><td><br /></td></tr> <tr><td><br /></td></tr>
<tr><td><pre>$Log</pre></td></tr> <tr><td><pre>$Log</pre></td></tr>
<tr><td><br /></td></tr> <tr><td><br /></td></tr>
<tr><td align=center>$tripwiresettings{'LOG'}</td></tr> <tr><td align='center'>$tripwiresettings{'LOG'}</td></tr>
</table> </table>
END END
; ;