summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5df8d44)
raw | patch | inline | side by side (parent: 5df8d44)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 09:44:04 +0000 (09:44 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 May 2005 09:44:04 +0000 (09:44 +0000) |
plugins/personal/connectivity/class_proxyAccount.inc | patch | blob | history |
diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc
index 727082d23c76a7f22ff42e3ee9481e04f2522426..5e97daa8dd5be8ae48baa406007f46716eade90e 100644 (file)
$this->handle_post_events("remove");
}
+ /* Check values */
+ function check()
+ {
+ $message= array();
+
+ /* We've got only one value to check for positive integer or emtpy field */
+ if ($this->is_account){
+ if (isset($_POST["quota_size"])){
+ if ($_POST["quota_size"] == ""){
+ $message[]= _("Numerical value for Quota Setting is empty.");
+ }
+ else if ($_POST["quota_size"] <= 0){
+ $message[]= _("Numerical value for Quota Setting is not valid.");
+ }
+ }
+ }
+
+ return $message;
+ }
/* Save data to object */
function save_object()