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
f8c66ca6
Commit
f8c66ca6
authored
Aug 12, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) refactor diag_ipsec_sad.php
parent
662d893f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
40 deletions
+26
-40
diag_ipsec_sad.php
src/www/diag_ipsec_sad.php
+26
-40
No files found.
src/www/diag_ipsec_sad.php
View file @
f8c66ca6
...
...
@@ -38,73 +38,59 @@ $shortcut_section = "ipsec";
include
(
"head.inc"
);
$sad
=
ipsec_dump_sad
();
legacy_html_escape_form_data
(
$sad
);
?>
<body>
<?php
include
(
"fbegin.inc"
);
?>
<section
class=
"page-content-main"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
<?php
if
(
isset
(
$input_errors
)
&&
count
(
$input_errors
)
>
0
)
print_input_errors
(
$input_errors
);
?>
<section
class=
"col-xs-12"
>
<section
class=
"col-xs-12"
>
<?
$active_tab
=
"/diag_ipsec_sad.php"
;
include
(
'diag_ipsec_tabs.inc'
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-sort"
>
<?php
if
(
count
(
$sad
))
:
?>
<tr>
<td
class=
"listhdrr nowrap"
>
<?=
gettext
(
"Source"
);
?>
</td>
<td
class=
"listhdrr nowrap"
>
<?=
gettext
(
"Destination"
);
?>
</td>
<td
class=
"listhdrr nowrap"
>
<?=
gettext
(
"Protocol"
);
?>
</td>
<td
class=
"listhdrr nowrap"
>
<?=
gettext
(
"SPI"
);
?>
</td>
<td
class=
"listhdrr nowrap"
>
<?=
gettext
(
"Enc. alg."
);
?>
</td>
<td
class=
"listhdr nowrap"
>
<?=
gettext
(
"Auth. alg."
);
?>
</td>
<td
class=
"listhdr nowrap"
>
<?=
gettext
(
"Data"
);
?>
</td>
<td
class=
"list nowrap"
></td>
<td>
<?=
gettext
(
"Source"
);
?>
</td>
<td>
<?=
gettext
(
"Destination"
);
?>
</td>
<td>
<?=
gettext
(
"Protocol"
);
?>
</td>
<td>
<?=
gettext
(
"SPI"
);
?>
</td>
<td>
<?=
gettext
(
"Enc. alg."
);
?>
</td>
<td>
<?=
gettext
(
"Auth. alg."
);
?>
</td>
<td>
<?=
gettext
(
"Data"
);
?>
</td>
</tr>
<?php
foreach
(
$sad
as
$sa
)
:
?>
<tr>
<td
class=
"listlr"
>
<?=
htmlspecialchars
(
$sa
[
'src'
]);
?>
</td>
<td
class=
"listr"
>
<?=
htmlspecialchars
(
$sa
[
'dst'
]);
?>
</td>
<td
class=
"listr"
>
<?=
htmlspecialchars
(
strtoupper
(
$sa
[
'proto'
]));
?>
</td>
<td
class=
"listr"
>
<?=
htmlspecialchars
(
$sa
[
'spi'
]);
?>
</td>
<td
class=
"listr"
>
<?=
htmlspecialchars
(
$sa
[
'ealgo'
]);
?>
</td>
<td
class=
"listr"
>
<?=
htmlspecialchars
(
$sa
[
'aalgo'
]);
?>
</td>
<td
class=
"listr"
>
<?=
htmlspecialchars
(
$sa
[
'data'
]);
?>
</td>
<td
class=
"list nowrap"
>
</td>
<td>
<?=
$sa
[
'src'
];
?>
</td>
<td>
<?=
$sa
[
'dst'
];
?>
</td>
<td>
<?=
strtoupper
(
$sa
[
'proto'
]);
?>
</td>
<td>
<?=
$sa
[
'spi'
];
?>
</td>
<td>
<?=
$sa
[
'ealgo'
];
?>
</td>
<td>
<?=
$sa
[
'aalgo'
];
?>
</td>
<td>
<?=
$sa
[
'data'
];
?>
</td>
</tr>
<?php
endforeach
;
?>
<?php
else
:
?>
<tr>
<td>
<td
colspan=
"7"
>
<p><strong>
<?=
gettext
(
"No IPsec security associations."
);
?>
</strong></p>
</td>
</tr>
<?php
endif
;
?>
<tr>
<td
colspan=
"7"
>
<span
class=
"text-danger"
><strong>
<?=
gettext
(
"Note:"
);
?>
<br
/></strong></span>
<?=
gettext
(
"You can configure your IPsec"
);
?>
<a
href=
"vpn_ipsec.php"
>
<?=
gettext
(
"here."
);
?>
</a>
</td>
</tr>
</table>
<div
class=
"container-fluid"
>
<p
class=
"vexpl"
>
<span
class=
"text-danger"
><strong>
<?=
gettext
(
"Note:"
);
?>
<br
/></strong></span>
<?=
gettext
(
"You can configure your IPsec"
);
?>
<a
href=
"vpn_ipsec.php"
>
<?=
gettext
(
"here."
);
?>
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
</div>
</div>
</section>
...
...
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