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
3cb9dfab
Commit
3cb9dfab
authored
Oct 13, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vpn/l2tp: pull pages together in menu
parent
4f06b9bd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
35 deletions
+11
-35
Menu.xml
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
+5
-3
shortcuts.inc
src/www/shortcuts.inc
+0
-4
vpn_l2tp.php
src/www/vpn_l2tp.php
+2
-9
vpn_l2tp_users.php
src/www/vpn_l2tp_users.php
+2
-10
vpn_l2tp_users_edit.php
src/www/vpn_l2tp_users_edit.php
+2
-9
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/Menu/Menu.xml
View file @
3cb9dfab
...
...
@@ -228,9 +228,11 @@
<KeysEdit
url=
"/vpn_ipsec_keys_edit.php"
/>
<AdvancedSettings
url=
"/vpn_ipsec_settings.php"
/>
</IPsec>
<L2TP
url=
"/vpn_l2tp.php"
>
<L2TPUsers
url=
"/vpn_l2tp_users.php"
/>
<L2TPUsersEdit
url=
"/vpn_l2tp_users_edit.php*"
/>
<L2TP
cssClass=
"fa fa-road"
>
<Settings
url=
"/vpn_l2tp.php"
/>
<Users
url=
"/vpn_l2tp_users.php"
>
<Edit
url=
"/vpn_l2tp_users_edit.php*"
/>
</Users>
</L2TP>
<OpenVPN
url=
"/vpn_openvpn_server.php"
>
<ServerEdit
url=
"/vpn_openvpn_server.php?*"
/>
...
...
src/www/shortcuts.inc
View file @
3cb9dfab
...
...
@@ -244,10 +244,6 @@ $shortcuts['pppoes'] = array();
$shortcuts
[
'pppoes'
][
'main'
]
=
"vpn_pppoe.php"
;
$shortcuts
[
'pppoes'
][
'log'
]
=
"diag_logs_vpn.php?vpntype=poes"
;
$shortcuts
[
'l2tps'
]
=
array
();
$shortcuts
[
'l2tps'
][
'main'
]
=
"vpn_l2tp.php"
;
$shortcuts
[
'l2tps'
][
'log'
]
=
"diag_logs_vpn.php?vpntype=l2tp"
;
$shortcuts
[
'snmp'
]
=
array
();
$shortcuts
[
'snmp'
][
'main'
]
=
"services_snmp.php"
;
$shortcuts
[
'snmp'
][
'service'
]
=
"bsnmpd"
;
...
...
src/www/vpn_l2tp.php
View file @
3cb9dfab
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com)
...
...
@@ -26,8 +27,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
$pgtitle
=
array
(
gettext
(
"VPN"
),
gettext
(
"L2TP"
),
gettext
(
"L2TP"
));
$shortcut_section
=
"l2tps"
;
$pgtitle
=
array
(
gettext
(
'VPN'
),
gettext
(
'L2TP'
),
gettext
(
'Settings'
));
require_once
(
"guiconfig.inc"
);
require_once
(
"vpn.inc"
);
...
...
@@ -295,13 +295,6 @@ function enable_change(enable_over) {
<section
class=
"col-xs-12"
>
<?php
$tab_array
=
array
();
$tab_array
[
0
]
=
array
(
gettext
(
"Configuration"
),
true
,
"vpn_l2tp.php"
);
$tab_array
[
1
]
=
array
(
gettext
(
"Users"
),
false
,
"vpn_l2tp_users.php"
);
display_top_tabs
(
$tab_array
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<form
action=
"vpn_l2tp.php"
method=
"post"
name=
"iform"
id=
"iform"
>
...
...
src/www/vpn_l2tp_users.php
View file @
3cb9dfab
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2005 Scott Ullrich (sullrich@gmail.com)
...
...
@@ -26,13 +27,11 @@
POSSIBILITY OF SUCH DAMAGE.
*/
$pgtitle
=
array
(
gettext
(
"VPN"
),
gettext
(
"L2TP"
),
gettext
(
"Users"
));
$shortcut_section
=
"l2tps"
;
$pgtitle
=
array
(
gettext
(
'VPN'
),
gettext
(
'L2TP'
),
gettext
(
'Users'
));
require_once
(
"guiconfig.inc"
);
require_once
(
"vpn.inc"
);
if
(
!
isset
(
$config
[
'l2tp'
][
'user'
]))
{
$config
[
'l2tp'
][
'user'
]
=
array
();
}
...
...
@@ -98,13 +97,6 @@ endif; ?>
<section
class=
"col-xs-12"
>
<?php
$tab_array
=
array
();
$tab_array
[
0
]
=
array
(
gettext
(
"Configuration"
),
false
,
"vpn_l2tp.php"
);
$tab_array
[
1
]
=
array
(
gettext
(
"Users"
),
true
,
"vpn_l2tp_users.php"
);
display_top_tabs
(
$tab_array
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<form
action=
"vpn_l2tp_users.php"
method=
"post"
name=
"iform"
id=
"iform"
>
...
...
src/www/vpn_l2tp_users_edit.php
View file @
3cb9dfab
<?php
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2006 Scott Ullrich (sullrich@gmail.com)
...
...
@@ -26,8 +27,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
$pgtitle
=
array
(
gettext
(
"VPN"
),
gettext
(
"L2TP"
),
gettext
(
"User"
),
gettext
(
"Edit"
));
$shortcut_section
=
"l2tps"
;
$pgtitle
=
array
(
gettext
(
'VPN'
),
gettext
(
'L2TP'
),
gettext
(
'Edit User'
));
function
l2tpusercmp
(
$a
,
$b
)
{
...
...
@@ -161,13 +161,6 @@ include("head.inc");
<section
class=
"col-xs-12"
>
<?php
$tab_array
=
array
();
$tab_array
[
0
]
=
array
(
gettext
(
"Configuration"
),
false
,
"vpn_l2tp.php"
);
$tab_array
[
1
]
=
array
(
gettext
(
"Users"
),
true
,
"vpn_l2tp_users.php"
);
display_top_tabs
(
$tab_array
);
?>
<div
class=
"tab-content content-box col-xs-12"
>
<form
action=
"vpn_l2tp_users_edit.php"
method=
"post"
name=
"iform"
id=
"iform"
>
...
...
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