From: hickert Date: Mon, 30 May 2005 12:13:07 +0000 (+0000) Subject: W3c conform, Save will only Save if Plugins is loaded X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=495126943eaeace96bf7e7fd8a0d730804317053;p=gosa.git W3c conform, Save will only Save if Plugins is loaded git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@498 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index fd87b6a7b..8c7f5b336 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -27,6 +27,7 @@ class servkolab extends plugin { var $kolabHost = array(); var $added = false; var $remove = false; + var $changed = false; var $attributes = array("postfix_mydomain", "postfix_mydestination", "postfix_mynetworks", "postfix_enable_virus_scan","postfix_relayhost","postfix_allow_unauthenticated", "cyrus_admins", "cyrus_imap","kolabFreeBusyFuture", @@ -59,17 +60,19 @@ class servkolab extends plugin { if(in_array($this->hostname,$this->attrs['kolabHost'])) { $this->is_account=true; } else { - $this->is_account=false; } - } + $this->is_account=false; + } + } function execute() { - /* Fill templating stuff */ $smarty = get_smarty(); $display = ""; + $this->changed =true; + /* Lets get all Host that are member of the Kolab extension, but don't catch count */ if(is_array($this->attrs['kolabHost'])) { @@ -152,7 +155,7 @@ class servkolab extends plugin { /* Initialize all attributes, that were submitted */ foreach($this->attributes as $val) { - $smarty->assign($val."ACL",$this->acl,str_replace("_","-",$val)); + $smarty->assign($val."ACL",chkacl($this->acl,str_replace("_","-",$val))); /* Tell smarty which variables we are useing */ $smarty->assign($val, $this->$val); if (($this->$val != "FALSE") && (!empty($this->$val))) @@ -225,6 +228,8 @@ class servkolab extends plugin { /* Save to LDAP */ function save() { + if(!$this->changed) return; + /* Set ldap connection */ $ldap = $this->config->get_ldap_link();