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
54d0c429
Commit
54d0c429
authored
Aug 05, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) remove global $openvpn_dev_mode and do some minor style fixes in vpn_openvpn_server.php
parent
4dcad144
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
openvpn.inc
src/etc/inc/openvpn.inc
+0
-3
vpn_openvpn_server.php
src/www/vpn_openvpn_server.php
+7
-12
No files found.
src/etc/inc/openvpn.inc
View file @
54d0c429
...
@@ -29,9 +29,6 @@
...
@@ -29,9 +29,6 @@
POSSIBILITY OF SUCH DAMAGE.
POSSIBILITY OF SUCH DAMAGE.
*/
*/
global
$openvpn_dev_mode
;
$openvpn_dev_mode
=
array
(
"tun"
,
"tap"
);
global
$openvpn_verbosity_level
;
global
$openvpn_verbosity_level
;
$openvpn_verbosity_level
=
array
(
$openvpn_verbosity_level
=
array
(
0
=>
"none"
,
0
=>
"none"
,
...
...
src/www/vpn_openvpn_server.php
View file @
54d0c429
...
@@ -824,7 +824,7 @@ function tuntap_change() {
...
@@ -824,7 +824,7 @@ function tuntap_change() {
<td>
<td>
<select
name=
"dev_mode"
class=
"form-control"
onchange=
'tuntap_change()'
>
<select
name=
"dev_mode"
class=
"form-control"
onchange=
'tuntap_change()'
>
<?php
<?php
foreach
(
$openvpn_dev_mode
as
$device
)
:
foreach
(
array
(
"tun"
,
"tap"
)
as
$device
)
:
$selected
=
""
;
$selected
=
""
;
if
(
!
empty
(
$pconfig
[
'dev_mode'
]))
{
if
(
!
empty
(
$pconfig
[
'dev_mode'
]))
{
if
(
$pconfig
[
'dev_mode'
]
==
$device
)
{
if
(
$pconfig
[
'dev_mode'
]
==
$device
)
{
...
@@ -1709,8 +1709,7 @@ endif; ?>
...
@@ -1709,8 +1709,7 @@ endif; ?>
<?php
<?php
else
:
else
:
?>
?>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped table-sort sortable"
>
<thead>
<thead>
<tr>
<tr>
<td
width=
"10%"
class=
"listhdrr"
>
<?=
gettext
(
"Disabled"
);
?>
</td>
<td
width=
"10%"
class=
"listhdrr"
>
<?=
gettext
(
"Disabled"
);
?>
</td>
...
@@ -1735,20 +1734,17 @@ else :
...
@@ -1735,20 +1734,17 @@ else :
<?=
$disabled
;
?>
<?=
$disabled
;
?>
</td>
</td>
<td
ondblclick=
"document.location='vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
'"
>
<td
ondblclick=
"document.location='vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
'"
>
<?=
htmlspecialchars
(
$server
[
'protocol'
]);
<?=
htmlspecialchars
(
$server
[
'protocol'
]);
?>
/
<?=
htmlspecialchars
(
$server
[
'local_port'
]);
?>
?>
/
<?=
htmlspecialchars
(
$server
[
'local_port'
]);
?>
</td>
</td>
<td
ondblclick=
"document.location='vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
'"
>
<td
ondblclick=
"document.location='vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
'"
>
<?=
htmlspecialchars
(
$server
[
'tunnel_network'
]);
?>
<br
/
>
<?=
htmlspecialchars
(
$server
[
'tunnel_network'
]);
?>
<?=
!
empty
(
$server
[
'tunnel_networkv6'
])
?
","
:
""
?
>
<?=
htmlspecialchars
(
$server
[
'tunnel_networkv6'
]);
?>
<br
/>
<?=
htmlspecialchars
(
$server
[
'tunnel_networkv6'
]);
?>
</td>
</td>
<td
ondblclick=
"document.location='vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
'"
>
<td
ondblclick=
"document.location='vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
'"
>
<?=
htmlspecialchars
(
$server
[
'description'
]);
?>
<?=
htmlspecialchars
(
$server
[
'description'
]);
?>
</td>
</td>
<td
valign=
"middle"
class=
"list nowrap"
>
<td
valign=
"middle"
>
<a
href=
"vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
<a
href=
"vpn_openvpn_server.php?act=edit&id=
<?=
$i
;
?>
"
title=
"
<?=
gettext
(
"edit server"
);
?>
"
class=
"btn btn-default btn-xs"
><span
class=
"glyphicon glyphicon-pencil"
></span></a>
?>
"
title=
"
<?=
gettext
(
"edit server"
);
?>
"
class=
"btn btn-default btn-xs"
><span
class=
"glyphicon glyphicon-pencil"
></span></a>
<a
id=
"del_
<?=
$i
;
?>
"
title=
"
<?=
gettext
(
"delete server"
);
?>
"
class=
"act_delete btn btn-default btn-xs"
><span
class=
"glyphicon glyphicon-remove"
></span></a>
<a
id=
"del_
<?=
$i
;
?>
"
title=
"
<?=
gettext
(
"delete server"
);
?>
"
class=
"act_delete btn btn-default btn-xs"
><span
class=
"glyphicon glyphicon-remove"
></span></a>
</td>
</td>
</tr>
</tr>
...
@@ -1759,7 +1755,6 @@ else :
...
@@ -1759,7 +1755,6 @@ else :
<tr
style=
"display:none;"
><td></td></tr>
<tr
style=
"display:none;"
><td></td></tr>
</tbody>
</tbody>
</table>
</table>
</div>
<?php
<?php
endif
;
?>
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