Skip to content

Commit b6de721

Browse files
author
Till Brehm
committed
Merge branch '6552-mail_quota_show' into 'develop'
Show use mail quota on mail user edit form Closes #6552 See merge request ispconfig/ispconfig3!1784
2 parents d155a8c + 322bd51 commit b6de721

29 files changed

+57
-23
lines changed

interface/lib/classes/quota_lib.inc.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function get_ftptrafficquota_data($clientid = null, $lastdays = 0) {
218218
return $traffic_data;
219219
}
220220

221-
public function get_mailquota_data($clientid = null, $readable = true) {
221+
public function get_mailquota_data($clientid = null, $readable = true, $email = null) {
222222
global $app;
223223

224224
$tmp_rec = $app->db->queryAllRecords("SELECT data from monitor_data WHERE type = 'email_quota' ORDER BY created DESC");
@@ -236,6 +236,14 @@ public function get_mailquota_data($clientid = null, $readable = true) {
236236
}
237237
//print_r($monitor_data);
238238

239+
if ($email !== null && !empty($email)) {
240+
if(isset($monitor_data[$email])) {
241+
return $monitor_data[$email];
242+
} else {
243+
return '';
244+
}
245+
246+
}
239247
// select all email accounts or email accounts belonging to client
240248
$emails = $app->db->queryAllRecords("SELECT * FROM mail_user".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : '') . " ORDER BY email", $clientid);
241249

interface/web/mail/lib/lang/ar_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ $wb['purge_junk_days_txt'] = 'Purge Junk automatically after X days';
7777
$wb['tooltip_purge_junk_days_txt'] = '0 = disabled';
7878
$wb['imap_prefix_txt'] = 'IMAP prefix';
7979
$wb['tooltip_imap_prefix_txt'] = 'In most cases this should be left empty. To allow seamless per-mailbox migration of legacy systems you can specify a prefix followed by the hierarchy separator. e.g.: \'INBOX.\'';
80+
$wb['used_txt'] = 'Used';
8081
$wb['mail_addresses_txt'] = 'Receives also mail for';
8182
?>

interface/web/mail/lib/lang/bg_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@ $wb['purge_junk_days_txt'] = 'Purge Junk automatically after X days';
7777
$wb['tooltip_purge_junk_days_txt'] = '0 = disabled';
7878
$wb['imap_prefix_txt'] = 'IMAP prefix';
7979
$wb['tooltip_imap_prefix_txt'] = 'In most cases this should be left empty. To allow seamless per-mailbox migration of legacy systems you can specify a prefix followed by the hierarchy separator. e.g.: \'INBOX.\'';
80+
$wb['used_txt'] = 'Used';
8081
$wb['mail_addresses_txt'] = 'Receives also mail for';
8182
?>

interface/web/mail/lib/lang/br_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ $wb['purge_trash_days_txt'] = 'Esvazia lixeira automaticamente após N dias';
7474
$wb['tooltip_purge_trash_days_txt'] = '0 = desabilitado';
7575
$wb['purge_junk_days_txt'] = 'Esvazia pasta Junk automaticamente após N dias';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = desabilitado';
77+
$wb['used_txt'] = 'Used';
7778
$wb['mail_addresses_txt'] = 'Receives also mail for';

interface/web/mail/lib/lang/ca_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@ $wb['purge_junk_days_txt'] = 'Purge Junk automatically after X days';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = disabled';
7777
$wb['imap_prefix_txt'] = 'IMAP prefix';
7878
$wb['tooltip_imap_prefix_txt'] = 'In most cases this should be left empty. To allow seamless per-mailbox migration of legacy systems you can specify a prefix followed by the hierarchy separator. e.g.: \'INBOX.\'';
79+
$wb['used_txt'] = 'Used';
7980
$wb['mail_addresses_txt'] = 'Receives also mail for';
8081
?>

interface/web/mail/lib/lang/cn_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@ $wb['purge_trash_days_txt'] = '自动在 X 天后清空垃圾箱';
7474
$wb['tooltip_purge_trash_days_txt'] = '0 = 禁用';
7575
$wb['purge_junk_days_txt'] = '自动在 X 天后清空垃圾邮件';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = 禁用';
77+
$wb['used_txt'] = 'Used';
7778
$wb['mail_addresses_txt'] = 'Receives also mail for';
7879
?>

interface/web/mail/lib/lang/cz_mail_user.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ $wb['tooltip_purge_trash_days_txt'] = '0 = neaktivní';
7575
$wb['purge_junk_days_txt'] = 'Vyčistit nevyžádanou poštu \"Junk\" automaticky po X dnech.';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = neaktivní';
7777
$wb['disablesmtp_txt'] = 'Zakázat SMTP (pouze odesílání)';
78+
$wb['used_txt'] = 'Used';
7879
$wb['mail_addresses_txt'] = 'Receives also mail for';

interface/web/mail/lib/lang/de_mail_user.lng

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ $wb['purge_trash_days_txt'] = 'Papierkorb automatisch nach X Tagen leeren';
7474
$wb['tooltip_purge_trash_days_txt'] = '0 = deaktiviert';
7575
$wb['purge_junk_days_txt'] = 'Junk-Ordner automatisch nach X Tagen leeren';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = deaktiviert';
77+
$wb['used_txt'] = 'Verwendet';
7778
$wb['imap_prefix_txt'] = 'IMAP-Präfix';
7879
$wb['tooltip_imap_prefix_txt'] = 'In den meisten Fällen sollte dies leer gelassen werden. Um eine nahtlose Migration von Altsystemen zu ermöglichen, können Sie ein Präfix, gefolgt vom Hierarchietrennzeichen, angeben, z. B: \'INBOX.\'';
79-
?>
80-
8180
$wb['mail_addresses_txt'] = 'Receives also mail for';

interface/web/mail/lib/lang/dk_mail_user.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ $wb['purge_junk_days_txt'] = 'Purge Junk automatically after X days';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = disabled';
7777
$wb['imap_prefix_txt'] = 'IMAP prefix';
7878
$wb['tooltip_imap_prefix_txt'] = 'In most cases this should be left empty. To allow seamless per-mailbox migration of legacy systems you can specify a prefix followed by the hierarchy separator. e.g.: \'INBOX.\'';
79+
$wb['used_txt'] = 'Used';
7980
$wb['mail_addresses_txt'] = 'Receives also mail for';
80-
?>

interface/web/mail/lib/lang/el_mail_user.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@ $wb['purge_junk_days_txt'] = 'Purge Junk automatically after X days';
7676
$wb['tooltip_purge_junk_days_txt'] = '0 = disabled';
7777
$wb['imap_prefix_txt'] = 'IMAP prefix';
7878
$wb['tooltip_imap_prefix_txt'] = 'In most cases this should be left empty. To allow seamless per-mailbox migration of legacy systems you can specify a prefix followed by the hierarchy separator. e.g.: \'INBOX.\'';
79+
$wb['used_txt'] = 'Used';
7980
$wb['mail_addresses_txt'] = 'Receives also mail for';
80-
?>

0 commit comments

Comments
 (0)