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
0a5d4b71
Commit
0a5d4b71
authored
Feb 25, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mvc: style sweep
(cherry picked from commit
928d169c
)
parent
b693693f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
ServiceController.php
...vc/app/controllers/OPNsense/IDS/Api/ServiceController.php
+14
-14
No files found.
src/opnsense/mvc/app/controllers/OPNsense/IDS/Api/ServiceController.php
View file @
0a5d4b71
...
...
@@ -211,20 +211,20 @@ class ServiceController extends ApiControllerBase
*/
public
function
reloadRulesAction
()
{
$status
=
"failed"
;
if
(
$this
->
request
->
isPost
())
{
// close session for long running action
$this
->
sessionClose
();
$backend
=
new
Backend
();
// flush rule configuration
$bckresult
=
trim
(
$backend
->
configdRun
(
"template reload OPNsense.IDS"
));
if
(
$bckresult
==
"OK"
)
{
$status
=
$backend
->
configdRun
(
"ids reload"
,
$detach
);
}
else
{
$status
=
"template error"
;
}
}
return
array
(
"status"
=>
$status
);
$status
=
"failed"
;
if
(
$this
->
request
->
isPost
())
{
// close session for long running action
$this
->
sessionClose
();
$backend
=
new
Backend
();
// flush rule configuration
$bckresult
=
trim
(
$backend
->
configdRun
(
"template reload OPNsense.IDS"
));
if
(
$bckresult
==
"OK"
)
{
$status
=
$backend
->
configdRun
(
"ids reload"
,
$detach
);
}
else
{
$status
=
"template error"
;
}
}
return
array
(
"status"
=>
$status
);
}
/**
...
...
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