summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-09-01 17:14:51 +0000
committerthomascube <thomas@roundcube.net>2006-09-01 17:14:51 +0000
commitfda695f29732f5e5bcaa55e7e7abd090d2359927 (patch)
treeb4dbc2eb052e2b4cdff106a5409a2592f18363b5 /program/steps/mail/func.inc
parent5cd296dfb81988fbfb1aba5fecdc865bbe548a46 (diff)
Finalized quota image
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 986a4c955..0cd6652ad 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -633,10 +633,15 @@ function rcmail_quota_display($attrib)
// show quota as image (by Brett Patterson)
if ($attrib['display'] == 'image' && function_exists('imagegif'))
{
- $quota_text = sprintf('<img src="%s&amp;_action=quotaimg&amp;u=%s&amp;q=%d" alt="%s" width="102" height="15" />',
+ $attrib += array('width' => 100, 'height' => 14);
+ $quota_text = sprintf('<img src="%s&amp;_action=quotaimg&amp;u=%s&amp;q=%d&amp;w=%d&amp;h=%d" width="%d" height="%d" alt="%s" title="%s / %s" />',
$COMM_PATH,
$quota['used'], $quota['total'],
- $quota_text);
+ $attrib['width'], $attrib['height'],
+ $attrib['width'], $attrib['height'],
+ $quota_text,
+ show_bytes($quota["used"] * 1024),
+ show_bytes($quota["total"] * 1024));
}
}
else