summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d12586f)
raw | patch | inline | side by side (parent: d12586f)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Oct 2010 15:34:54 +0000 (15:34 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Oct 2010 15:34:54 +0000 (15:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20120 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 de109fc09f0ca312b7cda2fe7a3be8f7c23c7148..cb42e0069f34dd2cfe179c3c154239f27e6f4b7a 100644 (file)
//checks for feature "quotaUsage"
if ($this->isFeatureEnabled("quotaUsage")){}
- //checks for feature "quotaSize"
- if ($this->isFeatureEnabled("quotaSize")){}
-
//checks for feature "mailLocations"
if ($this->isFeatureEnabled("mailLocations")){}
}
}
}
- //checks for feature "mailLimit"
- if ($this->isFeatureEnabled("mailLimit")){}
+ //checks for feature "mailLimit" - integer
+ if ($this->isFeatureEnabled("mailLimit")){
+ if (!is_numeric($this->mailLimitReceiveValue)){
+ $messages[] = msgPool::invalid(_("Value for mailbox size receive limit"),$this->mailLimitReceiveValue , "", "1024 = 1MB");
+ }
+ if (!is_numeric($this->mailLimitSendValue)){
+ $messages[] = msgPool::invalid(_("Value for mailbox size send limit"),$this->mailLimitSendValue , "", "1024 = 1MB");
+ }
+ }
//checks for feature "mailBoxWarnLimit"
- if ($this->isFeatureEnabled("mailBoxWarnLimit")){}
-
+ if ($this->isFeatureEnabled("quotaSize")){
+ //Todo: wrong test
+ if (!is_numeric($this->quotaSize)){
+ $messages[] = msgPool::invalid(_("Value for Quota size"),$this->quotaSize , "", "1024 = 1GB");
+ }
+ }
//checks for feature "mailBoxSendSizelimit"
- if ($this->isFeatureEnabled("mailBoxSendSizelimit")){}
-
+ if ($this->isFeatureEnabled("mailBoxSendSizelimit")){
+ //Todo: wrong test
+ if (!is_numeric($this->mailBoxSendSizelimitValue)){
+ $messages[] = msgPool::invalid(_("Value refuse incoming mails limit"),$this->mailBoxSendSizelimitValue , "", "1024 = 1GB");
+ }
+ }
//checks for feature "mailBoxHardSizelimit"
- if ($this->isFeatureEnabled("mailBoxHardSizelimit")){}
+ if ($this->isFeatureEnabled("mailBoxWarnLimit")){
+ //Todo: wrong test
+ if (!is_numeric($this->mailBoxWarnLimitValue)){
+ $messages[] = msgPool::invalid(_("Value warn about full mailbox"),$this->mailBoxWarnLimitValue , "", "1024 = 1GB");
+ }
+ }
//checks for feature "mailBoxAutomaticRemoval"
if ($this->isFeatureEnabled("mailBoxAutomaticRemoval")){}