Project

General

Profile

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