From 7786daaa9dbc3243e4e057ad0bfd1089ec19e8c6 Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Thu, 29 May 2014 15:18:26 +0100 Subject: Tidy up "diag_tables.php" XHTML Add BODY tag Add ACTION to FORM tag Add CDATA section to SCRIPTS Remove NAME from OPTION tag, not valid in XHTML Update HTML Boolean operators Add SUMMARY to TABLE Close IMG tag and add ALT Move closing Anchor tag into PHP staement Change Paragraph tag to TR tag and close Update non breaking space tag Add missing closing FORM, closing BODY and closing HTML tags --- usr/local/www/diag_tables.php | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/diag_tables.php b/usr/local/www/diag_tables.php index d9c8f84..e181c80 100644 --- a/usr/local/www/diag_tables.php +++ b/usr/local/www/diag_tables.php @@ -91,14 +91,15 @@ exec("/sbin/pfctl -t " . escapeshellarg($tablename) . " -T show", $entries); exec("/sbin/pfctl -sT", $tables); include("head.inc"); -include("fbegin.inc"); - ?> + + -
+ - {$table}\n"; } ?> -

+

- +
- + " . gettext("No entries exist in this table.") . "  " . " " . gettext(" the latest bogon data."); + echo "
- - - + + delete +
" . gettext("No entries exist in this table.") . "  " . " " . gettext(" the latest bogon data."); else - echo "

" . gettext("No entries exist in this table."); + echo "

" . gettext("No entries exist in this table."); ?> 0) if( ($tablename == "bogons") || ($tablename == "bogonsv6") ) { $last_updated = exec('/usr/bin/grep -i -m 1 -E "^# last updated" /etc/' . escapeshellarg($tablename)); - echo "

 $count " . gettext("entries in this table.") . "  " . " " . gettext(" the latest bogon data.") . "
" . "$last_updated"; + echo "

 $count " . gettext("entries in this table.") . "  " . " " . gettext(" the latest bogon data.") . "
" . "$last_updated"; } else - echo "

" . gettext("Delete") . " " . gettext("all") . " " . "$count " . gettext("entries in this table."); + echo "

" . gettext("Delete") . " " . gettext("all") . " " . "$count " . gettext("entries in this table."); ?> - +
+

+ + -- cgit v1.1