Code

finally understood how to get data back from the session ;-(
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Sep 2005 08:56:59 +0000 (08:56 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Sep 2005 08:56:59 +0000 (08:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1429 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/nagios/class_nagiosAccount.inc

index 02bda738c6fd203654d9fed027740e7f1c74476f..25466ed4079c793acb5f4022e8c76de5ce9fd476 100644 (file)
@@ -94,8 +94,20 @@ class nagiosAccount extends plugin
         return($display);
            }
          }
+         
+    foreach(array("NagiosAlias", "NagiosPager", "NagiosMail", "HostNotificationPeriod",
+                  "ServiceNotificationPeriod", "HostNotificationCommands", "ServiceNotificationCommands",
+                  "HostNotificationOptions", "ServiceNotificationOptions", "AuthorizedAllHosts", "AuthorizedAllServices",
+                  "AuthorizedSystemCommands", "AuthorizedAllHostCommands", "AuthorizedAllServiceCommands",
+                  "AuthorizedConfigurationInformation", "AuthorizedSystemInformation") as $val) {
+
+    $smarty->assign("$val", $this->$val);
+    $smarty->assign("$val"."ACL", chkacl($this->acl, "$val"));
+    }
+
        $display.= $smarty->fetch (get_template_path('nagios.tpl', TRUE, dirname(__FILE__)));
            return ($display);
+
   }
 
   /* Save to LDAP */