Module: nagvis Branch: master Commit: 0c5f7469a1d4e65fac0df9b370bf973f1d220a2e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=0c5f7469a1d4e65fac0df9b370bf973f1d220a2e
Author: Roman Kyrylych <[email protected]> Date: Wed Jul 22 17:15:34 2009 +0300 Added support for configurable URL for nested maps Signed-off-by: Roman Kyrylych <[email protected]> --- etc/nagvis.ini.php-sample | 2 ++ share/nagvis/includes/classes/GlobalMainCfg.php | 3 +++ share/nagvis/includes/classes/GlobalMapCfg.php | 2 +- 3 files changed, 6 insertions(+), 1 deletions(-) diff --git a/etc/nagvis.ini.php-sample b/etc/nagvis.ini.php-sample index d9c97b7..b647712 100644 --- a/etc/nagvis.ini.php-sample +++ b/etc/nagvis.ini.php-sample @@ -102,6 +102,8 @@ ;serviceurl="[htmlcgi]/extinfo.cgi?type=2&host=[host_name]&service=[service_description]" ; URL template for servicegroup object links ;servicegroupurl="[htmlcgi]/status.cgi?servicegroup=[servicegroup_name]&style=detail" +; URL template for nested map links +;mapurl="[htmlbase]/index.php?map=[map_name]" ; Options to configure the Overview page of NagVis [index] diff --git a/share/nagvis/includes/classes/GlobalMainCfg.php b/share/nagvis/includes/classes/GlobalMainCfg.php index ec88821..ccba7c1 100644 --- a/share/nagvis/includes/classes/GlobalMainCfg.php +++ b/share/nagvis/includes/classes/GlobalMainCfg.php @@ -182,6 +182,9 @@ class GlobalMainCfg { 'editable' => 1, 'default' => '_self', 'match' => MATCH_STRING_NO_SPACE), + 'mapurl' => Array('must' => 0, + 'default' => '[htmlbase]/index.php?map=[map_name]', + 'match' => MATCH_STRING_URL_EMPTY), 'hosturl' => Array('must' => 0, 'default' => '[htmlcgi]/status.cgi?host=[host_name]', 'match' => MATCH_STRING_URL_EMPTY), diff --git a/share/nagvis/includes/classes/GlobalMapCfg.php b/share/nagvis/includes/classes/GlobalMapCfg.php index bcb7510..c7d0778 100644 --- a/share/nagvis/includes/classes/GlobalMapCfg.php +++ b/share/nagvis/includes/classes/GlobalMapCfg.php @@ -982,7 +982,7 @@ class GlobalMapCfg { 'field_type' => 'boolean'), 'url' => Array('must' => 0, - 'default' => '[htmlbase]/index.php?map=[map_name]', + 'default' => $this->CORE->MAINCFG->getValue('defaults', 'mapurl'), 'match' => MATCH_STRING_URL_EMPTY), 'url_target' => Array('must' => 0, 'match' => MATCH_STRING_NO_SPACE), ------------------------------------------------------------------------------ _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
