summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c8f150)
raw | patch | inline | side by side (parent: 5c8f150)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 07:51:50 +0000 (07:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 07:51:50 +0000 (07:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9282 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc b/gosa-plugins/kolab/personal/connectivity/kolab/class_kolabAccount.inc
index a9149d4dcbab69b8f3c18e56ef0a5921a93b4bc2..d1d54190e9673aac770e72f022e54d728ef326c0 100644 (file)
$valid= FALSE;
if (!tests::is_email($address)){
if (!tests::is_email($address, TRUE)){
- msg_dialog::display(_("Error"), _("Cannot add invalid mail address!"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::invalid(_("Mail address"), "","", "example@your-domain.com"));
}
} else {
$ldap->cd ($this->config->current['BASE']);
$ldap->search('(mail='.$address.')',array("mail"));
if ($ldap->count() == 0){
- msg_dialog::display(_("Error"), _("Primary mail address already in use by another user!"), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), msgPool::duplicated(_("Primary mail address")));
} else {
$valid= TRUE;
}
$message= plugin::check();
/* FBFuture is in days... */
- if ($this->kolabFreeBusyFuture != "" && !preg_match('/^[0-9]+$/', $this->kolabFreeBusyFuture)){
- $message[]= _("The value specified as Free Busy future needs to be an integer.");
+ if ($this->kolabFreeBusyFuture != ""){
+ $message[]= msgPool::required(_("Free Busy future"));
+ }
+ if(!preg_match('/^[0-9]+$/', $this->kolabFreeBusyFuture)){
+ $message[]= msgPool::invalid(_("Free Busy future"), $this->kolabFreeBusyFuture, "/^[0-9]+$/");
}
/* Check for URL scheme... */
- if(!empty($this->calFBURL) && !preg_match("/http+(s)*:\/\//",$this->calFBURL)){
- $message[]= _("The value specified as Free Busy Information URL is invalid.");
+ if(!empty($this->calFBURL)){
+ $message[]= msgPool::required(_("Free Busy url"));
+ }
+ if(!preg_match("/^http+(s)*:\/\//",$this->calFBURL)){
+ $message[]= msgPool::invalid(_("Free Busy url"), $this->calFBURL, "/^http+(s)*:\/\//");
}
/* Check invitation policy for existing mail addresses */