[imp] Quota Display Tweak

Hammad hammad at brisksolutions.com
Fri Feb 21 11:13:46 PST 2003


I am using Horde 2.1/IMP 3.1, if I get the pixel.php from the HEAD version of
horde will it work with the production release. Do I need to get something else
other then just pixel.php?


--
Hammad


Quoting Chuck Hagenbuch <chuck at horde.org>:

| 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*
| 
| -- 
| IMP mailing list
| Frequently Asked Questions: http://horde.org/faq/
| To unsubscribe, mail: imp-unsubscribe at lists.horde.org
| 



More information about the imp mailing list