Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
d6e14d26
Commit
d6e14d26
authored
Oct 16, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logs: improve layout, they never looked shinier :)
parent
63403a98
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
42 deletions
+27
-42
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+6
-4
diag_logs_auth.php
src/www/diag_logs_auth.php
+7
-15
diag_logs_ipsec.php
src/www/diag_logs_ipsec.php
+6
-9
diag_logs_ntpd.php
src/www/diag_logs_ntpd.php
+7
-13
diag_logs_relayd.php
src/www/diag_logs_relayd.php
+1
-1
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
d6e14d26
...
...
@@ -57,7 +57,6 @@
<SummaryView
url=
"/diag_logs_filter_summary.php"
/>
</Firewall>
<DHCP
url=
"/diag_logs_dhcp.php"
/>
<PortalAuth
url=
"/diag_logs_auth.php"
/>
<PPP
url=
"/diag_logs_ppp.php"
/>
<VPN
url=
"/diag_logs_vpn.php*"
/>
<OpenVPN
url=
"/diag_logs_openvpn.php"
/>
...
...
@@ -192,7 +191,10 @@
</Diagnostics>
</Firewall>
<Services
order=
"4"
cssClass=
"glyphicon glyphicon-cog"
>
<CaptivePortal
VisibleName=
"Captive Portal"
url=
"/ui/captiveportal/"
cssClass=
"fa fa-paper-plane-o"
/>
<CaptivePortal
VisibleName=
"Captive Portal"
cssClass=
"fa fa-paper-plane-o"
>
<Administration
url=
"/ui/captiveportal/"
/>
<Log
VisibleName=
"Log File"
url=
"/diag_logs_auth.php"
/>
</CaptivePortal>
<DHCPRelay
VisibleName=
"DHCP Relay"
url=
"/services_dhcp_relay.php"
/>
<DHCPServer
VisibleName=
"DHCP Server"
url=
"/services_dhcp.php"
>
<DHCPServerTab
url=
"/services_dhcp.php?if=*"
/>
...
...
@@ -237,7 +239,7 @@
<GPS
url=
"/services_ntpd_gps.php"
/>
<PPS
url=
"/services_ntpd_pps.php"
/>
<Status
url=
"/status_ntpd.php"
/>
<Log
url=
"/diag_logs_ntpd.php"
/>
<Log
VisibleName=
"Log File"
url=
"/diag_logs_ntpd.php"
/>
</NTP>
<PPPoEServer
VisibleName=
"PPPoE Server"
url=
"/vpn_pppoe.php"
>
<PPPoeServerEdit
url=
"/vpn_pppoe_edit.php"
/>
...
...
@@ -274,7 +276,7 @@
<Leases
VisibleName=
"Lease Status"
url=
"/diag_ipsec_leases.php"
/>
<SAD
VisibleName=
"Security Association Database"
url=
"/diag_ipsec_sad.php"
/>
<SPD
VisibleName=
"Security Policy Database"
url=
"/diag_ipsec_spd.php"
/>
<Log
VisibleName=
"
System Log
"
url=
"/diag_logs_ipsec.php"
/>
<Log
VisibleName=
"
Log File
"
url=
"/diag_logs_ipsec.php"
/>
</IPsec>
<L2TP
cssClass=
"fa fa-road"
>
<Settings
url=
"/vpn_l2tp.php"
/>
...
...
src/www/diag_logs_auth.php
View file @
d6e14d26
...
...
@@ -44,7 +44,7 @@ if ($_POST['clear']) {
clear_clog
(
$portal_logfile
);
}
$pgtitle
=
array
(
gettext
(
"Status"
),
gettext
(
"System logs"
),
gettext
(
"Portal Auth"
));
$pgtitle
=
array
(
gettext
(
'Services'
),
gettext
(
'Captive Portal'
),
gettext
(
'Log File'
));
include
(
"head.inc"
);
?>
...
...
@@ -61,26 +61,18 @@ include("head.inc");
<section
class=
"col-xs-12"
>
<?
include
(
'diag_logs_tabs.inc'
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"container-fluid"
>
<?php
printf
(
gettext
(
'Last %s Portal Auth log entries'
),
$nentries
);
?>
</div>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
'Last %s Portal Auth log entries'
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$portal_logfile
,
$nentries
,
true
);
?>
<tr><td>
<form
action=
"diag_logs_auth.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</td></tr>
</table>
</div>
<div
class=
"container-fluid"
>
<form
action=
"diag_logs_auth.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</div>
</div>
</section>
</div>
...
...
src/www/diag_logs_ipsec.php
View file @
d6e14d26
...
...
@@ -63,22 +63,19 @@ include("head.inc");
<section
class=
"col-xs-12"
>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"container-fluid"
>
<p>
<?php
printf
(
gettext
(
"Last %s IPsec log entries"
),
$nentries
);
?>
</p>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
"Last %s IPsec log entries"
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$ipsec_logfile
,
$nentries
);
?>
<tr><td>
<form
action=
"diag_logs_ipsec.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</td></tr>
</table>
</div>
<form
action=
"diag_logs_ipsec.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</div>
</div>
</section>
</div>
</div>
...
...
src/www/diag_logs_ntpd.php
View file @
d6e14d26
...
...
@@ -33,7 +33,6 @@ require_once("services.inc");
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
$ntpd_logfile
=
'/var/log/ntpd.log'
;
if
(
empty
(
$config
[
'syslog'
][
'nentries'
]))
{
...
...
@@ -64,27 +63,22 @@ include("head.inc");
<section
class=
"col-xs-12"
>
<?
include
(
'diag_logs_tabs.inc'
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"container-fluid"
>
<p>
<?php
printf
(
gettext
(
"Last %s NTP log entries"
),
$nentries
);
?>
</p>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<?php
dump_clog
(
$ntpd_logfile
,
$nentries
);
?>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
"Last %s NTP log entries"
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$ntpd_logfile
,
$nentries
);
?>
<tr><td>
<form
action=
"diag_logs_ntpd.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
<tr></td>
</table>
</div>
<form
action=
"diag_logs_ntpd.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
</form>
</div>
</div>
</section>
</div>
</div>
...
...
src/www/diag_logs_relayd.php
View file @
d6e14d26
...
...
@@ -68,7 +68,7 @@ include("head.inc");
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<tr><td><strong>
<?=
sprintf
(
gettext
(
'Last %s Load Balancer log entries'
),
$nentries
);
?>
</strong></td></tr>
<tr><td
colspan=
"2"
><strong>
<?=
sprintf
(
gettext
(
'Last %s Load Balancer log entries'
),
$nentries
);
?>
</strong></td></tr>
<?php
dump_clog
(
$relayd_logfile
,
$nentries
);
?>
<tr><td>
<form
action=
"diag_logs_relayd.php"
method=
"post"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment