Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon-widget-tactical-overview
Commits
e0f1bf40
Commit
e0f1bf40
authored
Jun 23, 2022
by
Kevin Duret
Browse files
enh(platform): remove centreon web path option
parent
1152472a
Changes
2
Hide whitespace changes
Inline
Side-by-side
tactical-overview/src/hosts_status.php
View file @
e0f1bf40
...
...
@@ -46,7 +46,6 @@ $db = new CentreonDB("centstorage");
* false: URIs will correspond to new page (Resource Status)
*/
$useDeprecatedPages
=
$centreon
->
user
->
doesShowDeprecatedPages
();
$centreonWebPath
=
trim
(
$centreon
->
optGen
[
'oreon_web_path'
],
'/'
);
$buildHostUri
=
function
(
array
$states
,
array
$statuses
)
use
(
$resourceController
,
$buildParameter
)
{
return
$resourceController
->
buildListingUri
(
...
...
@@ -73,7 +72,7 @@ $unhandledState = $buildParameter('unhandled_problems', 'Unhandled');
$acknowledgedState
=
$buildParameter
(
'acknowledged'
,
'Acknowledged'
);
$inDowntimeState
=
$buildParameter
(
'in_downtime'
,
'In downtime'
);
$deprecatedHostListingUri
=
'
/'
.
$centreonWebPath
.
'
/main.php?p=20202&search=&o=h_'
;
$deprecatedHostListingUri
=
'
../..
/main.php?p=20202&search=&o=h_'
;
// query for DOWN status
$res
=
$db
->
query
(
...
...
tactical-overview/src/services_status.php
View file @
e0f1bf40
...
...
@@ -46,7 +46,6 @@ $db = new CentreonDB("centstorage");
* false: URIs will correspond to new page (Resource Status)
*/
$useDeprecatedPages
=
$centreon
->
user
->
doesShowDeprecatedPages
();
$centreonWebPath
=
trim
(
$centreon
->
optGen
[
'oreon_web_path'
],
'/'
);
$buildServiceUri
=
function
(
array
$states
,
array
$statuses
)
use
(
$resourceController
,
$buildParameter
)
{
return
$resourceController
->
buildListingUri
(
...
...
@@ -74,7 +73,7 @@ $unhandledState = $buildParameter('unhandled_problems', 'Unhandled');
$acknowledgedState
=
$buildParameter
(
'acknowledged'
,
'Acknowledged'
);
$inDowntimeState
=
$buildParameter
(
'in_downtime'
,
'In downtime'
);
$deprecatedServiceListingUri
=
'
/'
.
$centreonWebPath
.
'
/main.php?p=20201&search='
;
$deprecatedServiceListingUri
=
'
../..
/main.php?p=20201&search='
;
// query for CRITICAL state
$res
=
$db
->
query
(
...
...
Write
Preview
Supports
Markdown
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