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
ca6146a4
Commit
ca6146a4
authored
Feb 23, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy/plugins) move plugin_scan to system.inc for dependency reasons
(cherry picked from commit
4bffccf8
)
parent
5466d383
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
24 deletions
+35
-24
plugins.inc
src/etc/inc/plugins.inc
+0
-23
system.inc
src/etc/inc/system.inc
+28
-1
vpn_l2tp.php
src/www/vpn_l2tp.php
+1
-0
vpn_l2tp_users.php
src/www/vpn_l2tp_users.php
+1
-0
vpn_l2tp_users_edit.php
src/www/vpn_l2tp_users_edit.php
+1
-0
vpn_pptp.php
src/www/vpn_pptp.php
+1
-0
vpn_pptp_users.php
src/www/vpn_pptp_users.php
+1
-0
vpn_pptp_users_edit.php
src/www/vpn_pptp_users_edit.php
+1
-0
services_status.widget.php
src/www/widgets/widgets/services_status.widget.php
+1
-0
No files found.
src/etc/inc/plugins.inc
View file @
ca6146a4
...
...
@@ -26,29 +26,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
function
plugin_scan
()
{
$path
=
'/usr/local/etc/inc/plugins.inc.d/'
;
$ext
=
'.inc'
;
$ret
=
array
();
$plugins
=
glob
(
$path
.
'*'
.
$ext
);
if
(
!
is_array
(
$plugins
))
{
return
$ret
;
}
sort
(
$plugins
);
foreach
(
$plugins
as
$plugin
)
{
$name
=
preg_replace
(
'/'
.
preg_quote
(
$path
,
'/'
)
.
'/'
,
''
,
$plugin
);
$name
=
preg_replace
(
'/'
.
preg_quote
(
$ext
,
'/'
)
.
'/'
,
''
,
$name
);
$ret
[
$name
]
=
$plugin
;
}
return
$ret
;
}
function
plugins_services
()
{
$services
=
array
();
...
...
src/etc/inc/system.inc
View file @
ca6146a4
<?php
/*
Copyright (C) 2016 Franco Fichtner <franco@opnsense.org>
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>
All rights reserved.
...
...
@@ -844,7 +845,6 @@ function system_syslogd_start()
}
}
asort
(
$separatelogfacilities
);
$facilitylist
=
implode
(
','
,
array_unique
(
$separatelogfacilities
));
$syslogconf
.=
"!-
{
$facilitylist
}
\n
"
;
...
...
@@ -1809,3 +1809,30 @@ function get_possible_traffic_source_addresses($include_ipv6_link_local=false) {
}
return
$sourceips
;
}
/**
* scan plugins for legacy system
* @return array
*/
function
plugin_scan
()
{
$path
=
'/usr/local/etc/inc/plugins.inc.d/'
;
$ext
=
'.inc'
;
$ret
=
array
();
$plugins
=
glob
(
$path
.
'*'
.
$ext
);
if
(
!
is_array
(
$plugins
))
{
return
$ret
;
}
sort
(
$plugins
);
foreach
(
$plugins
as
$plugin
)
{
$name
=
preg_replace
(
'/'
.
preg_quote
(
$path
,
'/'
)
.
'/'
,
''
,
$plugin
);
$name
=
preg_replace
(
'/'
.
preg_quote
(
$ext
,
'/'
)
.
'/'
,
''
,
$name
);
$ret
[
$name
]
=
$plugin
;
}
return
$ret
;
}
src/www/vpn_l2tp.php
View file @
ca6146a4
...
...
@@ -31,6 +31,7 @@ require_once("guiconfig.inc");
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"services.inc"
);
require_once
(
"system.inc"
);
require_once
(
"plugins.inc"
);
require_once
(
"plugins.inc.d/vpn.inc"
);
...
...
src/www/vpn_l2tp_users.php
View file @
ca6146a4
...
...
@@ -29,6 +29,7 @@
require_once
(
"guiconfig.inc"
);
require_once
(
"services.inc"
);
require_once
(
"system.inc"
);
require_once
(
"plugins.inc"
);
require_once
(
"plugins.inc.d/vpn.inc"
);
...
...
src/www/vpn_l2tp_users_edit.php
View file @
ca6146a4
...
...
@@ -45,6 +45,7 @@ function l2tp_users_sort()
require_once
(
"guiconfig.inc"
);
require_once
(
"services.inc"
);
require_once
(
"system.inc"
);
require_once
(
"plugins.inc"
);
require_once
(
"plugins.inc.d/vpn.inc"
);
...
...
src/www/vpn_pptp.php
View file @
ca6146a4
...
...
@@ -31,6 +31,7 @@ require_once('guiconfig.inc');
require_once
(
'interfaces.inc'
);
require_once
(
'filter.inc'
);
require_once
(
'services.inc'
);
require_once
(
"system.inc"
);
require_once
(
"plugins.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
'plugins.inc.d/vpn.inc'
);
...
...
src/www/vpn_pptp_users.php
View file @
ca6146a4
...
...
@@ -29,6 +29,7 @@
require_once
(
'guiconfig.inc'
);
require_once
(
'services.inc'
);
require_once
(
"system.inc"
);
require_once
(
"plugins.inc"
);
require_once
(
'plugins.inc.d/vpn.inc'
);
...
...
src/www/vpn_pptp_users_edit.php
View file @
ca6146a4
...
...
@@ -45,6 +45,7 @@ function pptpd_users_sort()
require_once
(
'guiconfig.inc'
);
require_once
(
'services.inc'
);
require_once
(
"system.inc"
);
require_once
(
"plugins.inc"
);
require_once
(
'plugins.inc.d/vpn.inc'
);
...
...
src/www/widgets/widgets/services_status.widget.php
View file @
ca6146a4
...
...
@@ -33,6 +33,7 @@ $nocsrf = true;
require_once
(
"guiconfig.inc"
);
require_once
(
"services.inc"
);
require_once
(
"system.inc"
);
require_once
(
'plugins.inc'
);
require_once
(
"ipsec.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