Project

General

Profile

« Previous | Next » 

Revision 5f601060

Added by Phil Davis over 10 years ago

Code style usr-local-www diag

View differences:

usr/local/www/diag_logs_ntpd.php
30 30
	POSSIBILITY OF SUCH DAMAGE.
31 31
*/
32 32

  
33
/*	
33
/*
34 34
	pfSense_MODULE:	ntpd
35 35
*/
36 36

  
......
46 46
$ntpd_logfile = "{$g['varlog_path']}/ntpd.log";
47 47

  
48 48
$nentries = $config['syslog']['nentries'];
49
if (!$nentries)
49
if (!$nentries) {
50 50
	$nentries = 50;
51
}
51 52

  
52
if ($_POST['clear']) 
53
if ($_POST['clear']) {
53 54
	clear_log_file($ntpd_logfile);
55
}
54 56

  
55 57
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("NTP"));
56 58
$shortcut_section = "ntp";
......
61 63
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
62 64
<?php include("fbegin.inc"); ?>
63 65
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs ntpd">
64
  <tr><td>
66
	<tr>
67
		<td>
65 68
<?php
66 69
	$tab_array = array();
67 70
	$tab_array[] = array(gettext("System"), false, "diag_logs.php");
......
77 80
	$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
78 81
	display_top_tabs($tab_array);
79 82
?>
80
  </td></tr>
81
  <tr>
82
    <td>
83
	<div id="mainarea">
84
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
85
		  <tr>
86
			<td colspan="2" class="listtopic">
87
			  <?php printf(gettext("Last %s NTP log entries"), $nentries);?></td>
88
		  </tr>
89
		  <?php dump_clog($ntpd_logfile, $nentries); ?>
90
		<tr><td><br />
91
		<form action="diag_logs_ntpd.php" method="post">
92
			<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" />
93
</form>
94
</td></tr>
95
		</table>
96
	</div>
97
	</td>
98
  </tr>
83
		</td>
84
	</tr>
85
	<tr>
86
		<td>
87
			<div id="mainarea">
88
				<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
89
					<tr>
90
						<td colspan="2" class="listtopic">
91
							<?php printf(gettext("Last %s NTP log entries"), $nentries);?>
92
						</td>
93
					</tr>
94
					<?php dump_clog($ntpd_logfile, $nentries); ?>
95
					<tr>
96
						<td>
97
							<br />
98
							<form action="diag_logs_ntpd.php" method="post">
99
								<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" />
100
							</form>
101
						</td>
102
					</tr>
103
				</table>
104
			</div>
105
		</td>
106
	</tr>
99 107
</table>
100 108
<?php include("fend.inc"); ?>
101 109
</body>

Also available in: Unified diff