diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-09-01 17:14:51 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-09-01 17:14:51 +0000 |
| commit | 47e9fff6bc7cfed24efaf9531c3e98f83e790d38 (patch) | |
| tree | 84dd82756954dd5859c3b67e9dabeedc41d2ced5 /roundcubemail/program/steps/mail/func.inc | |
| parent | 41ed8110ab9aa1054b59a4f818cb8efa0631c2fc (diff) | |
Finalized quota image
git-svn-id: https://svn.roundcube.net/trunk@334 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 986a4c955..0cd6652ad 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/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&_action=quotaimg&u=%s&q=%d" alt="%s" width="102" height="15" />', + $attrib += array('width' => 100, 'height' => 14); + $quota_text = sprintf('<img src="%s&_action=quotaimg&u=%s&q=%d&w=%d&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 |
