Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
27b8b81a
Commit
27b8b81a
authored
Oct 01, 2009
by
tbrehm
Browse files
Fixed: FS#885 - client mail quota unlimited
parent
341d2b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_user_edit.php
View file @
27b8b81a
...
...
@@ -146,7 +146,7 @@ class page_action extends tform_actions {
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT sum(quota) as mailquota FROM mail_user WHERE mailuser_id != "
.
intval
(
$this
->
id
)
.
" AND sys_groupid =
$client_group_id
"
);
$mailquota
=
$tmp
[
"mailquota"
]
/
1024
/
1024
;
$new_mailbox_quota
=
intval
(
$this
->
dataRecord
[
"quota"
]);
if
(
$mailquota
+
$new_mailbox_quota
>
$client
[
"limit_mailquota"
])
{
if
(
(
$mailquota
+
$new_mailbox_quota
>
$client
[
"limit_mailquota"
])
||
(
$new_mailbox_quota
==
0
&&
$client
[
"limit_mailquota"
]
!=
-
1
))
{
$max_free_quota
=
$client
[
"limit_mailquota"
]
-
$mailquota
;
$app
->
tform
->
errorMessage
.
=
$app
->
tform
->
lng
(
"limit_mailquota_txt"
)
.
": "
.
$max_free_quota
.
"<br>"
;
// Set the quota field to the max free space
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment