alecpl
2008-10-08 132aae7c4ea6e392845434bfa7aff2305e4ed408
bin/quotaimg.php
@@ -1,10 +1,10 @@
<?php
/*
 +-----------------------------------------------------------------------+
 | program/bin/quotaimg.php                                              |
 | bin/quotaimg.php                                                      |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
@@ -14,7 +14,7 @@
 | Author: Brett Patterson <brett2@umbc.edu>                             |
 +-----------------------------------------------------------------------+
 $Id: $
 $Id$
*/
@@ -159,7 +159,7 @@
      }
      $quota_width = $quota / 100 * $width;
      imagefilledrectangle($im, $border, 0, $quota, $height-2*$border, $fill);
      imagefilledrectangle($im, $border, 0, $quota_width, $height-2*$border, $fill);
      $string = $quota . '%';
      $mid    = floor(($width-(strlen($string)*imagefontwidth($font)))/2)+1;