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
f79fac8f
Commit
f79fac8f
authored
Feb 19, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: first shuffling for splitting off plugins from core
parent
7b17ac34
Changes
37
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
66 additions
and
38 deletions
+66
-38
plugins.inc
src/etc/inc/plugins.inc
+31
-0
vpn.inc
src/etc/inc/plugins.inc.d/vpn.inc
+0
-0
rc.bootup
src/etc/rc.bootup
+1
-1
rc.filter_configure_sync
src/etc/rc.filter_configure_sync
+1
-2
rc.initial.setlanip
src/etc/rc.initial.setlanip
+1
-1
rc.initial.setports
src/etc/rc.initial.setports
+1
-1
rc.linkup
src/etc/rc.linkup
+1
-1
rc.newipsecdns
src/etc/rc.newipsecdns
+1
-1
rc.newwanip
src/etc/rc.newwanip
+1
-1
rc.newwanipv6
src/etc/rc.newwanipv6
+1
-1
rc.reload_all
src/etc/rc.reload_all
+1
-1
rc.reload_interfaces
src/etc/rc.reload_interfaces
+1
-2
diag_ipsec_leases.php
src/www/diag_ipsec_leases.php
+1
-1
diag_ipsec_sad.php
src/www/diag_ipsec_sad.php
+1
-1
diag_ipsec_spd.php
src/www/diag_ipsec_spd.php
+1
-1
diag_logs_vpn.inc
src/www/diag_logs_vpn.inc
+1
-1
interfaces.php
src/www/interfaces.php
+1
-2
interfaces_assign.php
src/www/interfaces_assign.php
+1
-1
status_services.php
src/www/status_services.php
+1
-1
system_advanced_misc.php
src/www/system_advanced_misc.php
+1
-1
system_gateway_groups_edit.php
src/www/system_gateway_groups_edit.php
+1
-1
vpn_ipsec.php
src/www/vpn_ipsec.php
+1
-1
vpn_ipsec_keys.php
src/www/vpn_ipsec_keys.php
+1
-1
vpn_ipsec_keys_edit.php
src/www/vpn_ipsec_keys_edit.php
+1
-1
vpn_ipsec_mobile.php
src/www/vpn_ipsec_mobile.php
+1
-1
vpn_ipsec_phase1.php
src/www/vpn_ipsec_phase1.php
+1
-1
vpn_ipsec_phase2.php
src/www/vpn_ipsec_phase2.php
+1
-1
vpn_ipsec_settings.php
src/www/vpn_ipsec_settings.php
+1
-1
vpn_l2tp.php
src/www/vpn_l2tp.php
+1
-1
vpn_l2tp_users.php
src/www/vpn_l2tp_users.php
+1
-1
vpn_l2tp_users_edit.php
src/www/vpn_l2tp_users_edit.php
+1
-1
vpn_pppoe.php
src/www/vpn_pppoe.php
+1
-1
vpn_pppoe_edit.php
src/www/vpn_pppoe_edit.php
+1
-1
vpn_pptp.php
src/www/vpn_pptp.php
+1
-1
vpn_pptp_users.php
src/www/vpn_pptp_users.php
+1
-1
vpn_pptp_users_edit.php
src/www/vpn_pptp_users_edit.php
+1
-1
services_status.widget.php
src/www/widgets/widgets/services_status.widget.php
+1
-1
No files found.
src/etc/inc/plugins.inc
0 → 100644
View file @
f79fac8f
<?php
/*
* Copyright (C) 2016 Franco Fichtner <franco@opnsense.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* 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
* POSSIBILITY OF SUCH DAMAGE.
*/
foreach
(
glob
(
'/usr/local/etc/inc/plugins.inc.d/*.inc'
)
as
$plugin
)
{
require_once
$plugin
;
}
src/etc/inc/vpn.inc
→
src/etc/inc/
plugins.inc.d/
vpn.inc
View file @
f79fac8f
File moved
src/etc/rc.bootup
View file @
f79fac8f
...
...
@@ -150,7 +150,7 @@ require_once("vslb.inc");
echo
"."
;
require_once
(
"filter.inc"
);
echo
"."
;
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
echo
"."
;
require_once
(
"openvpn.inc"
);
echo
"."
;
...
...
src/etc/rc.filter_configure_sync
View file @
f79fac8f
...
...
@@ -30,11 +30,10 @@
require_once
(
"config.inc"
);
require_once
(
"util.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"system.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"services.inc"
);
filter_configure_sync
();
src/etc/rc.initial.setlanip
View file @
f79fac8f
...
...
@@ -32,7 +32,7 @@ require_once("config.inc");
require_once
(
"interfaces.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"util.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"util.inc"
);
...
...
src/etc/rc.initial.setports
View file @
f79fac8f
...
...
@@ -32,7 +32,7 @@ require_once("config.inc");
require_once
(
"config.console.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"util.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"system.inc"
);
require_once
(
"services.inc"
);
...
...
src/etc/rc.linkup
View file @
f79fac8f
...
...
@@ -31,6 +31,7 @@
require_once
(
"config.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
'plugins.inc'
);
require_once
(
'openvpn.inc'
);
require_once
(
"util.inc"
);
require_once
(
"system.inc"
);
...
...
@@ -72,7 +73,6 @@ function handle_argument_group($iface, $argument2) {
case
"start"
:
log_error
(
"DEVD Ethernet attached event for
{
$iface
}
"
);
log_error
(
"HOTPLUG: Configuring interface
{
$iface
}
"
);
require_once
(
"vpn.inc"
);
// Do not try to readd to bridge otherwise em(4) has problems
interface_configure
(
$iface
,
true
,
true
);
break
;
...
...
src/etc/rc.newipsecdns
View file @
f79fac8f
...
...
@@ -32,7 +32,7 @@
require_once
(
"util.inc"
);
require_once
(
"config.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/etc/rc.newwanip
View file @
f79fac8f
...
...
@@ -31,7 +31,7 @@
/* parse the configuration and include all functions used below */
require_once
(
"config.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"util.inc"
);
...
...
src/etc/rc.newwanipv6
View file @
f79fac8f
...
...
@@ -32,7 +32,7 @@
require_once
(
"config.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"services.inc"
);
require_once
(
"rrd.inc"
);
...
...
src/etc/rc.reload_all
View file @
f79fac8f
...
...
@@ -31,7 +31,7 @@ require_once("config.inc");
require_once
(
"interfaces.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"util.inc"
);
require_once
(
"system.inc"
);
require_once
(
"pfsense-utils.inc"
);
...
...
src/etc/rc.reload_interfaces
View file @
f79fac8f
...
...
@@ -31,10 +31,9 @@ require_once("config.inc");
require_once
(
"filter.inc"
);
require_once
(
"util.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"services.inc"
);
require_once
(
"unbound.inc"
);
...
...
src/www/diag_ipsec_leases.php
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/diag_ipsec_sad.php
View file @
f79fac8f
...
...
@@ -29,7 +29,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/diag_ipsec_spd.php
View file @
f79fac8f
...
...
@@ -29,7 +29,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/diag_logs_vpn.inc
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/interfaces.php
View file @
f79fac8f
...
...
@@ -32,10 +32,9 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"vpn.inc"
);
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"openvpn.inc"
);
...
...
src/www/interfaces_assign.php
View file @
f79fac8f
...
...
@@ -30,7 +30,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"system.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/status_services.php
View file @
f79fac8f
...
...
@@ -36,7 +36,7 @@ require_once("unbound.inc");
require_once
(
"pfsense-utils.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"rrd.inc"
);
...
...
src/www/system_advanced_misc.php
View file @
f79fac8f
...
...
@@ -31,7 +31,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"vslb.inc"
);
require_once
(
"system.inc"
);
require_once
(
"pfsense-utils.inc"
);
...
...
src/www/system_gateway_groups_edit.php
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/vpn_ipsec.php
View file @
f79fac8f
...
...
@@ -30,7 +30,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/vpn_ipsec_keys.php
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
...
...
src/www/vpn_ipsec_keys_edit.php
View file @
f79fac8f
...
...
@@ -29,7 +29,7 @@
require_once
(
"interfaces.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
if
(
!
isset
(
$config
[
'ipsec'
])
||
!
is_array
(
$config
[
'ipsec'
]))
{
...
...
src/www/vpn_ipsec_mobile.php
View file @
f79fac8f
...
...
@@ -30,7 +30,7 @@
require_once
(
"interfaces.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
...
...
src/www/vpn_ipsec_phase1.php
View file @
f79fac8f
...
...
@@ -31,7 +31,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/vpn_ipsec_phase2.php
View file @
f79fac8f
...
...
@@ -30,7 +30,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
/**
...
...
src/www/vpn_ipsec_settings.php
View file @
f79fac8f
...
...
@@ -29,7 +29,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/vpn_l2tp.php
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/www/vpn_l2tp_users.php
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
if
(
!
isset
(
$config
[
'l2tp'
][
'user'
]))
{
$config
[
'l2tp'
][
'user'
]
=
array
();
...
...
src/www/vpn_l2tp_users_edit.php
View file @
f79fac8f
...
...
@@ -44,7 +44,7 @@ function l2tp_users_sort()
}
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
$referer
=
(
isset
(
$_SERVER
[
'HTTP_REFERER'
])
?
$_SERVER
[
'HTTP_REFERER'
]
:
'/vpn_l2tp_users.php'
);
...
...
src/www/vpn_pppoe.php
View file @
f79fac8f
...
...
@@ -29,7 +29,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"interfaces.inc"
);
if
(
!
is_array
(
$config
[
'pppoes'
]))
{
...
...
src/www/vpn_pppoe_edit.php
View file @
f79fac8f
...
...
@@ -29,7 +29,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"interfaces.inc"
);
function
vpn_pppoe_get_id
()
...
...
src/www/vpn_pptp.php
View file @
f79fac8f
...
...
@@ -30,7 +30,7 @@
require_once
(
'guiconfig.inc'
);
require_once
(
'interfaces.inc'
);
require_once
(
'filter.inc'
);
require_once
(
'
vpn
.inc'
);
require_once
(
'
plugins
.inc'
);
require_once
(
"pfsense-utils.inc"
);
if
(
!
is_array
(
$config
[
'pptpd'
][
'radius'
]))
{
...
...
src/www/vpn_pptp_users.php
View file @
f79fac8f
...
...
@@ -28,7 +28,7 @@
*/
require_once
(
'guiconfig.inc'
);
require_once
(
'
vpn
.inc'
);
require_once
(
'
plugins
.inc'
);
if
(
!
is_array
(
$config
[
'pptpd'
][
'user'
]))
{
$config
[
'pptpd'
][
'user'
]
=
array
();
...
...
src/www/vpn_pptp_users_edit.php
View file @
f79fac8f
...
...
@@ -44,7 +44,7 @@ function pptpd_users_sort()
}
require_once
(
'guiconfig.inc'
);
require_once
(
'
vpn
.inc'
);
require_once
(
'
plugins
.inc'
);
if
(
!
is_array
(
$config
[
'pptpd'
][
'user'
]))
{
$config
[
'pptpd'
][
'user'
]
=
array
();
...
...
src/www/widgets/widgets/services_status.widget.php
View file @
f79fac8f
...
...
@@ -33,7 +33,7 @@ $nocsrf = true;
require_once
(
"guiconfig.inc"
);
require_once
(
"services.inc"
);
require_once
(
"
vpn
.inc"
);
require_once
(
"
plugins
.inc"
);
require_once
(
"widgets/include/services_status.inc"
);
require_once
(
"interfaces.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