index f759f74357bf8fa70cff38a486f9090bb86df315..874391ba46e3a63685c5273964036bf4bdc9bf94 100644 (file)
var $gosaVacationMessage= "";
var $gosaSpamSortLevel= "";
var $gosaSpamMailbox= "";
-
+ var $gosaSharedFolderTarget;
var $quotaUsage= 0;
var $forward_dialog= FALSE;
var $members= array();
var $indexed_user= array();
/* attribute list for save action */
- var $attributes= array("mail", "gosaMailServer", "gosaMailQuota", "gosaMailMaxSize",
- "gosaMailDeliveryMode", "gosaSpamSortLevel", "gosaSpamMailbox",
+ var $attributes= array("mail", "gosaMailServer", "gosaMailQuota", "gosaMailMaxSize","gosaMailAlternateAddress","gosaMailForwardingAddress",
+ "gosaMailDeliveryMode", "gosaSpamSortLevel", "gosaSpamMailbox","acl","gosaSharedFolderTarget",
"gosaVacationMessage");
var $objectclasses= array("gosaMailAccount");
/* Load attributes containing arrays */
foreach (array("gosaMailAlternateAddress", "gosaMailForwardingAddress") as $val){
+ $this->$val = array();
if (isset($this->attrs["$val"]["count"])){
for ($i= 0; $i<$this->attrs["$val"]["count"]; $i++){
array_push($this->$val, $this->attrs["$val"][$i]);
$smarty->assign("$val"."ACL", chkacl($this->acl, "$val"));
}
if (is_numeric($this->gosaMailQuota) && $this->gosaMailQuota != 0){
- $smarty->assign("quotausage", progressbar(round(($this->quotaUsage * 100)/ $this->gosaMailQuota,100,15,true)));
+ $smarty->assign("quotausage", progressbar(round(($this->quotaUsage * 100)/ $this->gosaMailQuota),100,15,true));
$smarty->assign("quotadefined", "true");
} else {
$smarty->assign("quotadefined", "false");
/* Added these ObjectClass and Attributes, because they were not
removed correctly, only in case of kolab ...
*/
- if(preg_match("/kolab/i",$this->config->current['MAILMETHOD'])){
+ if(isset($this->config->current['MAILMETHOD'])&&preg_match("/kolab/i",$this->config->current['MAILMETHOD'])){
$this->attributes[]="acl";
$this->attributes[]="kolabHomeServer";
$this->objectclasses[] = "kolabSharedFolder";
/* Keep uid */
unset ($this->attrs['uid']);
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
+ $this->cleanup();
+$ldap->modify ($this->attrs);
+
show_ldap_error($ldap->get_error());
/* Connect to IMAP server for account deletion */
/*
Backup for function save
- Änderungen : fixAttributesOnStore($this) wurde erst nach dem ldap->modify
+ Änderungen : fixAttributesOnStore($this) wurde erst nach dem this->cleanup();
+$ldap->modify
+
Ausgeführt, deshalb wurden die gemappten Attribute auch nicht
gespeichert.
/* Save data to LDAP * /
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
+ $this->cleanup();
+$ldap->modify ($this->attrs);
+
show_ldap_error($ldap->get_error());
/* Only do IMAP actions if we are not a template * /
/* Save data to LDAP */
$ldap->cd($this->dn);
- $ldap->modify($this->attrs);
+ $this->cleanup();
+$ldap->modify ($this->attrs);
+
show_ldap_error($ldap->get_error());
/* Optionally execute a command after we're done */