Project

General

Profile

Download (4.05 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/* $Id$ */
3
/*
4
	diag_logs_routing.php
5
	part of pfSense
6

    
7
	Copyright (C) 2012 Jim Pingle <jimp@pfsense.org>.
8
        Copyright (C) 2013-2014 Electric Sheep Fencing, LP
9
	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
$shortcut_section = "routing";
57
include("head.inc");
58

    
59
?>
60

    
61
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
62
<?php include("fbegin.inc"); ?>
63
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="logs system routing">
64
  <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
	$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
77
	$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
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
97
		  <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
		<tr><td><br /><form action="diag_logs_routing.php" method="post">
103
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /></form></td></tr>
104
		</table>
105
	</div>
106
	</td>
107
  </tr>
108
</table>
109
<?php include("fend.inc"); ?>
110
</body>
111
</html>
(33-33/256)