summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-23 14:04:50 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-23 14:04:50 +0000
commit026ee8a0f799dc8faec5bf4ce591746d06795b23 (patch)
treefaf519f6f76d14bdd24155e4495f44c590850ce6 /frontends/php/map.php
parent90c8eec0c0e5e610b7ba83c1ba46e598f0d060e2 (diff)
downloadzabbix-026ee8a0f799dc8faec5bf4ce591746d06795b23.tar.gz
zabbix-026ee8a0f799dc8faec5bf4ce591746d06795b23.tar.xz
zabbix-026ee8a0f799dc8faec5bf4ce591746d06795b23.zip
- fixed image storing for oracle (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2884 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index 56f74d69..b6198eee 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -83,13 +83,10 @@
$x=imagesx($im);
$y=imagesy($im);
-# ImageFilledRectangle($im,0,0,$width,$height,$black);
+ ImageFilledRectangle($im,0,0,$width,$height,$white);
if($background!="")
{
- $db_images = DBselect("select image from images".
- " where imagetype=2 and name=".zbx_dbstr($background));
-
- $db_image = DBfetch($db_images);
+ $db_image = get_image_by_name($background, 2);
if($db_image)
{
$back = ImageCreateFromString($db_image["image"]);
@@ -97,14 +94,12 @@
}
else
{
- ImageFilledRectangle($im,0,0,$width,$height,$white);
$x=imagesx($im)/2-ImageFontWidth(4)*strlen($name)/2;
ImageString($im, 4,$x,1, $name , $darkred);
}
}
else
{
- ImageFilledRectangle($im,0,0,$width,$height,$white);
$x=imagesx($im)/2-ImageFontWidth(4)*strlen($name)/2;
ImageString($im, 4,$x,1, $name , $colors["Dark Red"]);
}