Project

General

Profile

Download (3.61 KB) Statistics
| Branch: | Tag: | Revision:
1 1348a09b Seth Mos
<?php
2
/* $Id$ */
3
/*
4
	diag_logs_relayd.php
5
	part of pfSense
6
7
	Copyright (C) 2008 Bill Marquette <bill.marquette@gmail.com>.
8 6216690b smos
	Copyright (C) 2008 Seth Mos <seth.mos@dds.nl>.
9 ce77a9c4 Phil Davis
	Copyright (C) 2013-2015 Electric Sheep Fencing, LP
10 1348a09b Seth Mos
	All rights reserved.
11
12
	Redistribution and use in source and binary forms, with or without
13
	modification, are permitted provided that the following conditions are met:
14
15
	1. Redistributions of source code must retain the above copyright notice,
16
	   this list of conditions and the following disclaimer.
17
18
	2. Redistributions in binary form must reproduce the above copyright
19
	   notice, this list of conditions and the following disclaimer in the
20
	   documentation and/or other materials provided with the distribution.
21
22
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
	POSSIBILITY OF SUCH DAMAGE.
32
*/
33
34 13d193c2 Scott Ullrich
/*	
35
	pfSense_MODULE:	routing
36
*/
37
38 6b07c15a Matthew Grooms
##|+PRIV
39
##|*IDENT=page-status-systemlogs-loadbalancer
40
##|*NAME=Status: System logs: Load Balancer page
41
##|*DESCR=Allow access to the 'Status: System logs: Load Balancer' page.
42
##|*MATCH=diag_logs_relayd.php*
43
##|-PRIV
44
45 1348a09b Seth Mos
require("guiconfig.inc");
46
47
$relayd_logfile = "{$g['varlog_path']}/relayd.log";
48
49
$nentries = $config['syslog']['nentries'];
50
if (!$nentries)
51
	$nentries = 50;
52
53 d6abaa18 Scott Ullrich
if ($_POST['clear']) 
54
	clear_log_file($relayd_logfile);
55 1348a09b Seth Mos
56 4df07bd9 Rafael Lucas
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Load Balancer"));
57 b32dd0a6 jim-p
$shortcut_section = "relayd";
58 1348a09b Seth Mos
include("head.inc");
59
60
?>
61
62
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
63
<?php include("fbegin.inc"); ?>
64 68c5d859 Colin Fleming
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="load balancer">
65 1348a09b Seth Mos
  <tr><td>
66
<?php
67
	$tab_array = array();
68 67a63c1e Vinicius Coque
	$tab_array[] = array(gettext("System"), false, "diag_logs.php");
69
	$tab_array[] = array(gettext("Firewall"), false, "diag_logs_filter.php");
70
	$tab_array[] = array(gettext("DHCP"), false, "diag_logs_dhcp.php");
71
	$tab_array[] = array(gettext("Portal Auth"), false, "diag_logs_auth.php");
72
	$tab_array[] = array(gettext("IPsec"), false, "diag_logs_ipsec.php");
73 de47ce7c jim-p
	$tab_array[] = array(gettext("PPP"), false, "diag_logs_ppp.php");
74 67a63c1e Vinicius Coque
	$tab_array[] = array(gettext("VPN"), false, "diag_logs_vpn.php");
75
	$tab_array[] = array(gettext("Load Balancer"), true, "diag_logs_relayd.php");
76
	$tab_array[] = array(gettext("OpenVPN"), false, "diag_logs_openvpn.php");
77 ae2c143a jim-p
	$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
78 67a63c1e Vinicius Coque
	$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
79 1348a09b Seth Mos
	display_top_tabs($tab_array);
80
?>
81
  </td></tr>
82
  <tr>
83
    <td>
84
	<div id="mainarea">
85 68c5d859 Colin Fleming
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
86 1348a09b Seth Mos
		  <tr>
87
			<td colspan="2" class="listtopic">
88 4df07bd9 Rafael Lucas
			  <?php printf(gettext("Last %s Load Balancer log entries"),$nentries);?></td>
89 1348a09b Seth Mos
		  </tr>
90
		  <?php dump_clog($relayd_logfile, $nentries); ?>
91 8cd558b6 ayvis
		<tr><td><br /><form action="diag_logs_relayd.php" method="post">
92 68c5d859 Colin Fleming
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /></form></td></tr>
93 1348a09b Seth Mos
		</table>
94
	</div>
95
	</td>
96
  </tr>
97
</table>
98
<?php include("fend.inc"); ?>
99
</body>
100
</html>