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_ppp.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_ppp.php')
-rw-r--r-- | usr/local/www/diag_logs_ppp.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/usr/local/www/diag_logs_ppp.php b/usr/local/www/diag_logs_ppp.php index 8a53214..c56c7e0 100644 --- a/usr/local/www/diag_logs_ppp.php +++ b/usr/local/www/diag_logs_ppp.php @@ -32,8 +32,8 @@ POSSIBILITY OF SUCH DAMAGE. */ -/* - pfSense_BUILDER_BINARIES: /sbin/ifconfig /usr/bin/awk +/* + pfSense_BUILDER_BINARIES: /sbin/ifconfig /usr/bin/awk pfSense_MODULE: */ @@ -49,11 +49,13 @@ require("guiconfig.inc"); $ppp_logfile = "{$g['varlog_path']}/ppp.log"; $nentries = $config['syslog']['nentries']; -if (!$nentries) +if (!$nentries) { $nentries = 50; +} -if ($_POST['clear']) +if ($_POST['clear']) { clear_log_file($ppp_logfile); +} $pgtitle = array(gettext("Status"),gettext("System logs"),gettext("PPP")); include("head.inc"); @@ -62,7 +64,7 @@ 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 ppp"> - <tr> + <tr> <td> <?php $tab_array = array(); @@ -79,21 +81,21 @@ include("head.inc"); $tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php"); display_top_tabs($tab_array); ?> - </td> + </td> </tr> <tr> - <td> + <td> <div id="mainarea"> <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area"> - <tr> + <tr> <td colspan="2" class="listtopic"><?php printf(gettext("Last %s PPP log entries"),$nentries);?></td> - </tr> + </tr> <?php dump_clog($ppp_logfile, $nentries); ?> <tr> <td> <br /> <form action="diag_logs_ppp.php" method="post"> - <input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /> + <input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /> </form> </td> </tr> |