Changeset 15062e8 in github for bin/quotaimg.php
- Timestamp:
- Feb 20, 2008 10:51:09 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- d451764
- Parents:
- 4d3f3b9
- File:
-
- 1 edited
-
bin/quotaimg.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bin/quotaimg.php
r5349b78 r15062e8 1 1 <?php 2 3 2 /* 4 3 +-----------------------------------------------------------------------+ … … 16 15 +-----------------------------------------------------------------------+ 17 16 18 $Id: $17 $Id: $ 19 18 20 19 */ … … 25 24 $height = empty($_GET['h']) ? 14 : (int)$_GET['h']; 26 25 26 /** 27 * Quota display 28 * 29 * Modify the following few elements to change the display of the image. 30 * Modifiable attributes are: 31 * bool border :: Defines whether you want to show a border around it? 32 * bool unknown :: Leave default; Defines whether quota is "unknown" 33 * 34 * int height :: Defines height of the image 35 * int width :: Defines width of the image 36 * int font :: Changes the font size & font used in the GD library. 37 * Available values are from 1 to 5. 38 * int padding :: Changes the offset (in pixels) from the top of the image 39 * to where the top of the text will be aligned. User 40 * greater than 0 to ensure text is off the border. 41 * array limit :: Holds the integer values of in an associative array as 42 * to what defines the upper and lower levels for quota 43 * display. 44 * High - Quota is nearing capacity. 45 * Mid - Quota is around the middle 46 * Low - Currently not used. 47 * array color :: An associative array of strings of comma separated 48 * values (R,G,B) for use in color creation. Define the 49 * RGB values you'd like to use. A list of colors (and 50 * their RGB values) can be found here: 51 * http://www.december.com/html/spec/colorcodes.html 52 * 53 * @return void 54 * 55 * @param mixed $used The amount used, or ?? if unknown. 56 * @param mixed $total The total available, or ?? if unknown. 57 * @param int $width Width of the image. 58 * @param int $height Height of the image. 59 * 60 * @see rcube_imap::get_quota() 61 * @see iil_C_GetQuota() 62 */ 27 63 function genQuota($used, $total, $width, $height) 28 64 { 29 /**30 * Quota Display31 *32 * Modify the following few elements to change the display of the image.33 * Modifiable attributes are:34 * bool border :: Defines whether you want to show a border around it or not.35 * bool unknown :: Leave default; Defines whether quota is "unknown"36 *37 * int height :: Defines height of the image38 * int width :: Defines width of the image39 * int font :: Changes the font size & font used in the GD library.40 * Available values are from 1 to 5.41 * int padding :: Changes the offset (in pixels) from the top of the image to42 * where the top of the text will be aligned. User greater than43 * 0 to ensure text is off the border.44 * array limit :: Holds the integer values of in an associative array as to what45 * defines the upper and lower levels for quota display.46 * High - Quota is nearing capacity.47 * Mid - Quota is around the middle48 * Low - Currently not used.49 * array color :: An associative array of strings of comma separated values (R,G,B)50 * for use in color creation. Define the RGB values you'd like to51 * use. A list of colors (and their RGB values) can be found here:52 * http://www.december.com/html/spec/colorcodes.html53 **/54 55 65 $unknown = false; 56 66 $border = 0; … … 78 88 79 89 80 /**************************** 90 /************************************ 81 91 ***** DO NOT EDIT BELOW HERE ***** 82 **************************** /92 ***********************************/ 83 93 84 94 if (ereg("^[^0-9?]*$", $used) || ereg("^[^0-9?]*$", $total))
Note: See TracChangeset
for help on using the changeset viewer.
