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
317a77c2
Commit
317a77c2
authored
Jun 15, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logs: fix DHCP reverse log show and update style for #213
parent
2aaa7192
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
diag_logs_dhcp.php
src/www/diag_logs_dhcp.php
+9
-3
No files found.
src/www/diag_logs_dhcp.php
View file @
317a77c2
...
@@ -66,9 +66,15 @@ include("head.inc");
...
@@ -66,9 +66,15 @@ include("head.inc");
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<?php
printf
(
gettext
(
'Last %s DHCP service log entries'
),
$nentries
);
?>
</div>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<?php
dump_clog
(
$dhcpd_logfile
,
$nentries
,
true
);
?>
</table>
</div>
<p>
<?php
printf
(
gettext
(
"Last %s DHCP service log entries"
),
$nentries
);
?>
</p>
<div
class=
"container-fluid"
>
<pre>
<?php
echo
trim
(
implode
(
""
,
array_slice
(
file
(
$dhcpd_logfile
),
-
$nentries
)));
?>
</pre>
<form
action=
"diag_logs_dhcp.php"
method=
"post"
>
<form
action=
"diag_logs_dhcp.php"
method=
"post"
>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
<input
name=
"clear"
type=
"submit"
class=
"btn"
value=
"
<?=
gettext
(
"Clear log"
);
?>
"
/>
...
...
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