summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a05cf3d)
raw | patch | inline | side by side (parent: a05cf3d)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 12:51:55 +0000 (12:51 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 12:51:55 +0000 (12:51 +0000) |
plugins/admin/systems/class_servDB.inc | patch | blob | history |
index 12612a580b17d6b71fdf25c6c0382a520db21e7b..260097ab20ed07c72e140dfbf458708b31249460 100644 (file)
/* Object information */
var $goImapName= "";
+ var $goImapName_old= "";
var $goImapConnect= "";
var $goImapAdmin= "";
var $goImapPassword= "";
}
}
+ /* We need to save the historical state of goImapName for later checking */
+ $this->goImapName_old= $this->goImapName;
+
/* Always is account... */
$this->is_account= TRUE;
}
}
}
}
+ if (in_array("goImapServer", $this->objectclasses) &&
+ $this->goImapName != $this->goImapName_old) {
+ // Attribute has changed
+ if(!preg_match("/^[a-z0-9\.]+$/", $this->goImapName)) {
+ $message[]= sprintf(_("The imap name string needs to be a hostname or an IP-address."));
+ }
+ }
return ($message);
}