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
4e4fba6f
Commit
4e4fba6f
authored
Mar 11, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace, unused styles diag_ipsec_spd.php
(cherry picked from commit
72ef0b01
)
parent
2b4b7827
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
70 deletions
+70
-70
diag_ipsec_spd.php
src/www/diag_ipsec_spd.php
+70
-70
No files found.
src/www/diag_ipsec_spd.php
View file @
4e4fba6f
<?php
<?php
/*
/*
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2014 Deciso B.V.
Copyright (C) 2004-2009 Scott Ullrich
Copyright (C) 2004-2009 Scott Ullrich
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
POSSIBILITY OF SUCH DAMAGE.
*/
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"guiconfig.inc"
);
...
@@ -44,54 +44,54 @@ legacy_html_escape_form_data($spd);
...
@@ -44,54 +44,54 @@ legacy_html_escape_form_data($spd);
<body>
<body>
<?php
include
(
"fbegin.inc"
);
?>
<?php
include
(
"fbegin.inc"
);
?>
<section
class=
"page-content-main"
>
<section
class=
"page-content-main"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<div
class=
"row"
>
<section
class=
"col-xs-12"
>
<section
class=
"col-xs-12"
>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<?php
if
(
count
(
$spd
))
:
?>
<?php
if
(
count
(
$spd
))
:
?>
<tr>
<tr>
<td>
<?=
gettext
(
"Source"
);
?>
</td>
<td>
<?=
gettext
(
"Source"
);
?>
</td>
<td>
<?=
gettext
(
"Destination"
);
?>
</td>
<td>
<?=
gettext
(
"Destination"
);
?>
</td>
<td>
<?=
gettext
(
"Direction"
);
?>
</td>
<td>
<?=
gettext
(
"Direction"
);
?>
</td>
<td>
<?=
gettext
(
"Protocol"
);
?>
</td>
<td>
<?=
gettext
(
"Protocol"
);
?>
</td>
<td>
<?=
gettext
(
"Tunnel endpoints"
);
?>
</td>
<td>
<?=
gettext
(
"Tunnel endpoints"
);
?>
</td>
</tr>
</tr>
<?php
foreach
(
$spd
as
$sp
)
:
?>
<?php
foreach
(
$spd
as
$sp
)
:
?>
<tr>
<tr>
<td
class=
"listlr"
valign=
"top"
>
<?=
$sp
[
'srcid'
];
?>
</td>
<td
>
<?=
$sp
[
'srcid'
];
?>
</td>
<td
class=
"listr"
valign=
"top"
>
<?=
$sp
[
'dstid'
];
?>
</td>
<td
>
<?=
$sp
[
'dstid'
];
?>
</td>
<td
class=
"listr"
valign=
"top"
>
<td
>
<span
class=
"glyphicon glyphicon-arrow-
<?=
$sp
[
'dir'
]
==
"in"
?
"right"
:
"left"
;
?>
"
aria-hidden=
"true"
></span>
<span
class=
"glyphicon glyphicon-arrow-
<?=
$sp
[
'dir'
]
==
"in"
?
"right"
:
"left"
;
?>
"
aria-hidden=
"true"
></span>
</td>
</td>
<td
class=
"listr"
valign=
"top"
>
<?=
strtoupper
(
$sp
[
'proto'
]);
?>
</td>
<td
>
<?=
strtoupper
(
$sp
[
'proto'
]);
?>
</td>
<td
class=
"listr"
valign=
"top"
>
<?=
$sp
[
'src'
];
?>
->
<?=
$sp
[
'dst'
];
?>
</td>
<td
>
<?=
$sp
[
'src'
];
?>
->
<?=
$sp
[
'dst'
];
?>
</td>
</tr>
</tr>
<?php
endforeach
;
?>
<?php
endforeach
;
?>
<tr>
<tr>
<td
colspan=
"2"
></td>
<td
colspan=
"2"
></td>
<td
colspan=
"3"
>
<td
colspan=
"3"
>
<span
class=
"glyphicon glyphicon-arrow-right"
aria-hidden=
"true"
alt=
"in"
></span>
<span
class=
"glyphicon glyphicon-arrow-right"
aria-hidden=
"true"
alt=
"in"
></span>
<?=
gettext
(
"incoming (as seen by firewall)"
);
?>
<br/>
<?=
gettext
(
"incoming (as seen by firewall)"
);
?>
<br/>
<span
class=
"glyphicon glyphicon-arrow-left"
aria-hidden=
"true"
alt=
"out"
></span>
<span
class=
"glyphicon glyphicon-arrow-left"
aria-hidden=
"true"
alt=
"out"
></span>
<?=
gettext
(
"outgoing (as seen by firewall)"
);
?>
<?=
gettext
(
"outgoing (as seen by firewall)"
);
?>
</td>
</td>
</tr>
</tr>
<?php
else
:
?>
<?php
else
:
?>
<tr>
<tr>
<td
colspan=
"5"
>
<td
>
<p><strong>
<?=
gettext
(
"No IPsec security policies."
);
?>
</strong></p>
<p><strong>
<?=
gettext
(
"No IPsec security policies."
);
?>
</strong></p>
</td>
</td>
</tr>
</tr>
<?php
endif
;
?>
<?php
endif
;
?>
</table>
</table>
</div>
</div>
</div>
</div>
</section>
</section>
</div>
</div>
</div>
</div>
</section>
</section>
<?php
include
(
"foot.inc"
);
?>
<?php
include
(
"foot.inc"
);
?>
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