[imp] Quota Display Tweak

Chuck Hagenbuch chuck at horde.org
Fri Feb 21 09:39:55 PST 2003


Quoting Jan Schneider <jan at horde.org>:

> There once was a patch for IMP that created the quota bar an an image
> using the gd extension. I even used this patch here but I don't remember 
> where it was available.

This code is from Scry:

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


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.

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*


More information about the imp mailing list