diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-05-09 13:38:49 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-05-09 13:38:49 +0000 |
commit | 600d1fa907d54c247ab2fdb38573c4503aeffc8a (patch) | |
tree | 2a19f8ce66f3eb4874763a39e73b4fb6ee6bca3b /frontends/php/map.php | |
parent | aa379c6f18a008a13b3daef3770177da0198ae80 (diff) | |
download | zabbix-600d1fa907d54c247ab2fdb38573c4503aeffc8a.tar.gz zabbix-600d1fa907d54c247ab2fdb38573c4503aeffc8a.tar.xz zabbix-600d1fa907d54c247ab2fdb38573c4503aeffc8a.zip |
- increased maximal size of images (Eugene)
- improoved validation
- more
git-svn-id: svn://svn.zabbix.com/trunk@4109 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r-- | frontends/php/map.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php index 5a05b40d..6434ebeb 100644 --- a/frontends/php/map.php +++ b/frontends/php/map.php @@ -95,7 +95,7 @@ include_once "include/page_header.php"; ImageFilledRectangle($im,0,0,$width,$height,$white); - if(($db_image = get_image_by_imageid($backgroundid, 2))) + if(($db_image = get_image_by_imageid($backgroundid))) { $back = ImageCreateFromString($db_image["image"]); ImageCopy($im,$back,0,0,0,0,imagesx($back),imagesy($back)); @@ -105,6 +105,7 @@ include_once "include/page_header.php"; $x=imagesx($im)/2-ImageFontWidth(4)*strlen($name)/2; ImageString($im, 4,$x,1, $name , $darkred); } + unset($db_image); $str=date("m.d.Y H:i:s",time(NULL)); ImageString($im, 0,imagesx($im)-120,imagesy($im)-12,"$str", $gray); |