summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40db3e9)
raw | patch | inline | side by side (parent: 40db3e9)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 09:25:22 +0000 (09:25 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 09:25:22 +0000 (09:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19616 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc
index 181eb949447b90da59370dfe777486b947c8a0a7..4c33d27b2e6bf55b7b7bbca6895b038380b5da4f 100644 (file)
}
}
}
-
+ $this->check();
/****************
Forward addresses
****************/
Alternate addresses
****************/
+
// Add manually inserted alternate mail address.
if (isset($_POST['addAlternateAddress'])){
$valid= FALSE;
$smarty->assign("initFailed", !$this->accountInitialized);
$smarty->assign("rpcError", $this->rpcError);
$smarty->assign("rpcErrorMessage", $this->rpcErrorMessage);
+
+
return($display.$smarty->fetch(get_template_path("generic.tpl",TRUE,dirname(__FILE__))));
}
msg_dialog::display(_("Error"), _("Groupware account creation failed!"), ERROR_DIALOG);
}
}
-
+
/*
* Trying to save the primary Email Address.
*/
if(!tests::is_email ($this->mailAddress)){
$messages[] = msgPool::invalid(_("Email"),$this->mailAddress , "", _("Example: user@excom.intranet.gonicus.de"));
}
+ /*
+ * forwarding Addresses
+ * $alternateAddresses
+ * $forwardingAddresses
+ */
+ if(isset($this->forwardingAddresses) && is_array($this->forwardingAddresses)){
+ foreach($this->forwardingAddresses as $fAddress){
+ if(!tests::is_email ($fAddress)){
+ $messages[] = msgPool::invalid(_("Email"),$fAddress, "", _("Example: user@excom.intranet.gonicus.de"));
+ }
+ }
+ }
+
return($messages);
}
/*
* TODO: Remove the debug
*/
- private $debug = true;
+ private $debug = false;
/*
* TODO: fill the following vars on init.
*/