[imp] Quota Display Tweak

Liam Hoekenga liamr at umich.edu
Fri Mar 21 21:08:26 PST 2003


> That generates a bar 10 pixels high, and % pixels wide. It uses
> /horde/util/pixel.php to create the graphic, so you don't even need GD. I
> don't remember if we have a pixel.php in RELENG_2, though - doesn't look
> like it. You could port one just to IMP pretty easily if you had to.

Ok, copying util/pixel.php, lib/Image.php and lib/Image/* from head into RELENG2
seems to mostly have worked.  This is what I've added as the 

    $quota_html = '<td valign="top">'
            . Horde::img('util/pixel.php',
                'width="' . $percent . '" height="10"',
                $GLOBALS['registry']->getParam('webroot', 'horde')) 
            . Horde::img('tree/blank.gif',
                'width="' . (100 - $percent) . '" height="10"',
                $GLOBALS['registry']->getParam('graphics', 'horde')) 
            . '</td>';

And, it's kind fo working.  I found the image on my page.. but there's no color,
and I get this in my error log:

[21-Mar-2003 21:02:53] PHP Notice:  Undefined property:  _rgb in
/usr/local/projects/webmail/html-ssl/horde-2.2.1UM/lib/Image/gif.php on line 39

It probably also needs to be place in more than just as <TD></TD> block.

I'd like Nick Ustinovs because besides the graphical display, it did throw some
numbers in there (amount used, max available and percentage).

Anyone got this working further?

Liam


More information about the imp mailing list