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
7fe5a8cf
Commit
7fe5a8cf
authored
Apr 12, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system: brush up last bits of config history
parent
4297e7c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
99 additions
and
105 deletions
+99
-105
diag_confbak.php
src/www/diag_confbak.php
+99
-105
No files found.
src/www/diag_confbak.php
View file @
7fe5a8cf
...
...
@@ -225,15 +225,19 @@ $( document ).ready(function() {
</div>
</form>
<?php
if
(
$diff
)
:
?>
<section
style=
"margin-bottom:15px;"
>
<div
class=
"content-box"
>
<header
class=
"content-box-head container-fluid"
>
<h3>
<?=
gettext
(
"Configuration diff from"
);
?>
<?=
date
(
gettext
(
"n/j/y H:i:s"
),
$oldtime
);
?>
<?=
gettext
(
"to"
);
?>
<?=
date
(
gettext
(
"n/j/y H:i:s"
),
$newtime
);
?>
</h3>
</header>
<div
class=
"content-box-main"
>
<div
class=
"container-fluid __mb"
>
<div
class=
"table-responsive"
style=
"overflow: scroll;"
>
<table
class=
"table table-condensed table-striped"
>
<div
class=
"content-box tab-content table-responsive __mb"
style=
"overflow: scroll;"
>
<table
class=
"table table-striped"
>
<tr>
<th
colspan=
"2"
valign=
"top"
class=
"listtopic"
>
<?=
sprintf
(
gettext
(
'Configuration diff from %s to %s'
),
date
(
gettext
(
'n/j/y H:i:s'
),
$oldtime
),
date
(
gettext
(
'n/j/y H:i:s'
),
$newtime
)
);
?>
</th>
</tr>
<tr>
<td>
<?php
foreach
(
$diff
as
$line
)
:
switch
(
substr
(
$line
,
0
,
1
))
{
...
...
@@ -248,19 +252,13 @@ $( document ).ready(function() {
break
;
default
:
$color
=
'#000000'
;
}
?
>
<tr
>
<td
style=
"color:
<?=
$color
;
?>
; white-space: pre-wrap; font-family: monospace;"
>
<?=
htmlentities
(
$line
);
?>
</td>
}
?>
<span
style=
"color:
<?=
$color
;
?>
; white-space: pre-wrap; font-family: monospace;"
>
<?=
htmlentities
(
$line
);
?>
</span><br/
>
<?php
endforeach
;
?
>
</td>
</tr>
<?php
endforeach
;
?>
</table>
</div>
</div>
</div>
</div>
</section>
<?php
endif
;
?>
<?php
if
(
count
(
$confvers
))
:
?>
<form
method=
"get"
>
...
...
@@ -269,9 +267,7 @@ $( document ).ready(function() {
<header
class=
"content-box-head container-fluid"
>
<h3>
<?=
gettext
(
'History'
);
?>
</h3>
</header>
<div
class=
"content-box-main"
>
<div
class=
"container-fluid __mb"
>
<table
class=
"table table-condensed"
>
<table
class=
"table table-responsive"
>
<tr>
<td>
<button
type=
"submit"
name=
"diff"
class=
"btn btn-primary pull-left"
value=
"Diff"
>
...
...
@@ -283,7 +279,6 @@ $( document ).ready(function() {
</td>
</tr>
</table>
</div>
<table
class=
"table table-striped"
>
<thead>
<tr>
...
...
@@ -342,7 +337,6 @@ $( document ).ready(function() {
</tbody>
</table>
</div>
</div>
</section>
</form>
<?php
endif
?>
...
...
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