From 5b008727d85430f0732e690b90ec162dc61fb93c Mon Sep 17 00:00:00 2001 From: opensides Date: Tue, 27 Sep 2005 08:56:59 +0000 Subject: [PATCH] finally understood how to get data back from the session ;-( git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1429 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/nagios/class_nagiosAccount.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/personal/nagios/class_nagiosAccount.inc b/plugins/personal/nagios/class_nagiosAccount.inc index 02bda738c..25466ed40 100644 --- a/plugins/personal/nagios/class_nagiosAccount.inc +++ b/plugins/personal/nagios/class_nagiosAccount.inc @@ -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 */ -- 2.30.2