Changeset 3ea0e32 in github for program/steps/mail/func.inc
- Timestamp:
- Sep 1, 2006 9:43:14 AM (7 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 8cb245c
- Parents:
- ea206d3
- File:
-
- 1 edited
-
program/steps/mail/func.inc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/steps/mail/func.inc
rea206d3 r3ea0e32 612 612 function rcmail_quota_display($attrib) 613 613 { 614 global $IMAP, $OUTPUT, $JS_OBJECT_NAME ;614 global $IMAP, $OUTPUT, $JS_OBJECT_NAME, $COMM_PATH; 615 615 616 616 if (!$attrib['id']) … … 621 621 // allow the following attributes to be added to the <span> tag 622 622 $attrib_str = create_attrib_string($attrib, array('style', 'class', 'id')); 623 623 624 624 if (!$IMAP->get_capability('QUOTA')) 625 625 $quota_text = rcube_label('unknown'); 626 else if (!($quota_text = $IMAP->get_quota())) 626 else if ($quota = $IMAP->get_quota()) 627 { 628 $quota_text = sprintf("%s / %s (%.0f%%)", 629 show_bytes($quota["used"] * 1024), 630 show_bytes($quota["total"] * 1024), 631 $quota["percent"]); 632 633 // show quota as image (by Brett Patterson) 634 if ($attrib['display'] == 'image' && function_exists('imagegif')) 635 { 636 $quota_text = sprintf('<img src="%s&_action=quotaimg&u=%s&q=%d" alt="%s" width="102" height="15" />', 637 $COMM_PATH, 638 $quota['used'], $quota['total'], 639 $quota_text); 640 } 641 } 642 else 627 643 $quota_text = rcube_label('unlimited'); 644 628 645 629 646 $out = '<span' . $attrib_str . '>';
Note: See TracChangeset
for help on using the changeset viewer.
