summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_ntpd.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-04-19 18:00:00 +0545
committerPhil Davis <phil.davis@inf.org>2015-04-19 18:00:00 +0545
commit5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e (patch)
treecd25c71caf551eb882f460ac6e1c32c8220fe58f /usr/local/www/diag_logs_ntpd.php
parent0608bd3c354ea76eb6df9ed9322e2ef8686f15e7 (diff)
downloadpfsense-5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e.zip
pfsense-5f6010605ba8e3ab2fbc27080ec2db80dbd0e32e.tar.gz
Code style usr-local-www diag
Diffstat (limited to 'usr/local/www/diag_logs_ntpd.php')
-rw-r--r--usr/local/www/diag_logs_ntpd.php54
1 files changed, 31 insertions, 23 deletions
diff --git a/usr/local/www/diag_logs_ntpd.php b/usr/local/www/diag_logs_ntpd.php
index 0754dcb..921ec23 100644
--- a/usr/local/www/diag_logs_ntpd.php
+++ b/usr/local/www/diag_logs_ntpd.php
@@ -30,7 +30,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
-/*
+/*
pfSense_MODULE: ntpd
*/
@@ -46,11 +46,13 @@ require("guiconfig.inc");
$ntpd_logfile = "{$g['varlog_path']}/ntpd.log";
$nentries = $config['syslog']['nentries'];
-if (!$nentries)
+if (!$nentries) {
$nentries = 50;
+}
-if ($_POST['clear'])
+if ($_POST['clear']) {
clear_log_file($ntpd_logfile);
+}
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("NTP"));
$shortcut_section = "ntp";
@@ -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 ntpd">
- <tr><td>
+ <tr>
+ <td>
<?php
$tab_array = array();
$tab_array[] = array(gettext("System"), false, "diag_logs.php");
@@ -77,25 +80,30 @@ include("head.inc");
$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
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("Last %s NTP log entries"), $nentries);?></td>
- </tr>
- <?php dump_clog($ntpd_logfile, $nentries); ?>
- <tr><td><br />
- <form action="diag_logs_ntpd.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("Last %s NTP log entries"), $nentries);?>
+ </td>
+ </tr>
+ <?php dump_clog($ntpd_logfile, $nentries); ?>
+ <tr>
+ <td>
+ <br />
+ <form action="diag_logs_ntpd.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>
OpenPOWER on IntegriCloud