summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f497b0c)
raw | patch | inline | side by side (parent: f497b0c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 May 2005 12:13:07 +0000 (12:13 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 30 May 2005 12:13:07 +0000 (12:13 +0000) |
plugins/admin/systems/class_servKolab.inc | patch | blob | history |
index fd87b6a7b76d8999fa75e2e2bc77836ae4a43edc..8c7f5b3365104c279bb4019e69347f6103bd24b5 100644 (file)
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",
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']))
{
/* 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)))
/* Save to LDAP */
function save()
{
+ if(!$this->changed) return;
+
/* Set ldap connection */
$ldap = $this->config->get_ldap_link();