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
d6e54811
Commit
d6e54811
authored
Feb 19, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: enrich with plugins
(cherry picked from commit
07bafdf6
)
parent
e6d7a121
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
status_services.php
src/www/status_services.php
+6
-0
services_status.widget.php
src/www/widgets/widgets/services_status.widget.php
+6
-0
No files found.
src/www/status_services.php
View file @
d6e54811
...
...
@@ -177,6 +177,12 @@ function service_control_restart($name, $extras)
$services
=
services_get
();
require_once
'plugins.inc'
;
foreach
(
plugins_services
()
as
$service
)
{
$services
[]
=
$service
;
}
if
(
count
(
$services
)
>
0
)
{
uasort
(
$services
,
"service_name_compare"
);
}
...
...
src/www/widgets/widgets/services_status.widget.php
View file @
d6e54811
...
...
@@ -39,6 +39,12 @@ require_once("interfaces.inc");
$services
=
services_get
();
require_once
'plugins.inc'
;
foreach
(
plugins_services
()
as
$service
)
{
$services
[]
=
$service
;
}
if
(
isset
(
$_POST
[
'servicestatusfilter'
]))
{
$config
[
'widgets'
][
'servicestatusfilter'
]
=
htmlspecialchars
(
$_POST
[
'servicestatusfilter'
],
ENT_QUOTES
|
ENT_HTML401
);
write_config
(
"Saved Service Status Filter via Dashboard"
);
...
...
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