diff options
author | Phil Davis <phil.davis@inf.org> | 2015-04-19 18:00:00 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-04-19 18:00:00 +0545 |
commit | 5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e (patch) | |
tree | cd25c71caf551eb882f460ac6e1c32c8220fe58f /usr/local/www/diag_logs_routing.php | |
parent | 0608bd3c354ea76eb6df9ed9322e2ef8686f15e7 (diff) | |
download | pfsense-5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e.zip pfsense-5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e.tar.gz |
Code style usr-local-www diag
Diffstat (limited to 'usr/local/www/diag_logs_routing.php')
-rw-r--r-- | usr/local/www/diag_logs_routing.php | 60 |
1 files changed, 36 insertions, 24 deletions
diff --git a/usr/local/www/diag_logs_routing.php b/usr/local/www/diag_logs_routing.php index bb14680..0fdbc67 100644 --- a/usr/local/www/diag_logs_routing.php +++ b/usr/local/www/diag_logs_routing.php @@ -30,7 +30,7 @@ POSSIBILITY OF SUCH DAMAGE. */ -/* +/* pfSense_MODULE: routing */ @@ -46,11 +46,13 @@ require("guiconfig.inc"); $routing_logfile = "{$g['varlog_path']}/routing.log"; $nentries = $config['syslog']['nentries']; -if (!$nentries) +if (!$nentries) { $nentries = 50; +} -if ($_POST['clear']) +if ($_POST['clear']) { clear_log_file($routing_logfile); +} $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Routing")); $shortcut_section = "routing"; @@ -61,7 +63,8 @@ include("head.inc"); <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs system routing"> - <tr><td> + <tr> + <td> <?php $tab_array = array(); $tab_array[] = array(gettext("System"), true, "diag_logs.php"); @@ -77,8 +80,10 @@ include("head.inc"); $tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php"); display_top_tabs($tab_array); ?> - </td></tr> - <tr><td class="tabnavtbl"> + </td> + </tr> + <tr> + <td class="tabnavtbl"> <?php $tab_array = array(); $tab_array[] = array(gettext("General"), false, "/diag_logs.php"); @@ -86,25 +91,32 @@ include("head.inc"); $tab_array[] = array(gettext("Routing"), true, "/diag_logs_routing.php"); $tab_array[] = array(gettext("Resolver"), false, "/diag_logs_resolver.php"); $tab_array[] = array(gettext("Wireless"), false, "/diag_logs_wireless.php"); - display_top_tabs($tab_array); + display_top_tabs($tab_array); ?> - </td> - </tr> - <tr> - <td> - <div id="mainarea"> - <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area"> - <tr> - <td colspan="2" class="listtopic"> - <?php printf(gettext("Routing daemon log entries"),$nentries);?></td> - </tr> - <?php dump_clog($routing_logfile, $nentries); ?> - <tr><td><br /><form action="diag_logs_routing.php" method="post"> -<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /></form></td></tr> - </table> - </div> - </td> - </tr> + </td> + </tr> + <tr> + <td> + <div id="mainarea"> + <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area"> + <tr> + <td colspan="2" class="listtopic"> + <?php printf(gettext("Routing daemon log entries"),$nentries);?> + </td> + </tr> + <?php dump_clog($routing_logfile, $nentries); ?> + <tr> + <td> + <br /> + <form action="diag_logs_routing.php" method="post"> + <input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /> + </form> + </td> + </tr> + </table> + </div> + </td> + </tr> </table> <?php include("fend.inc"); ?> </body> |