Author:   Lars Michelsen <[email protected]>
Date:     Fri Sep 23 19:56:05 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Sep 23 19:56:05 2011 +0200

Added missing listMapNames list function

---

 share/server/core/mapcfg/default.php |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/share/server/core/mapcfg/default.php 
b/share/server/core/mapcfg/default.php
index 5a64993..802d8f8 100644
--- a/share/server/core/mapcfg/default.php
+++ b/share/server/core/mapcfg/default.php
@@ -1,5 +1,21 @@
 <?php
 
+function listMapNames($CORE) {
+    global $AUTHORISATION;
+    $list = Array();
+    $automaps = $CORE->getAvailableAutomaps();
+    foreach($automaps AS $key => $val)
+        if($AUTHORISATION->isPermitted('AutoMap', 'view', $val))
+            $list[$key] = $val;
+
+    $maps = $CORE->getAvailableMaps();
+    foreach($maps AS $key => $val)
+        if($AUTHORISATION->isPermitted('Map', 'view', $val))
+            $list[$key] = $val;
+
+    return $list;
+}
+
 function listMapImages($CORE) {
     $options = $CORE->getAvailableBackgroundImages();
     array_unshift($options, 'none');


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to