summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/maps.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-10 15:45:43 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-10 15:45:43 +0000
commite486dc3d851b74b984c3433deaff836e69ea7507 (patch)
treed1eaae083fcb9cf23b8b30e911443e9ae9932786 /frontends/php/include/maps.inc.php
parent024d1de15b266f8c7536c79657d5940ae9292689 (diff)
- [ZBX-200] improved Sysmap links color selection, changes in schema (Artem),
- [ZBX-190] fixed typo in triggers.inc.php (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5154 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/maps.inc.php')
-rw-r--r--frontends/php/include/maps.inc.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontends/php/include/maps.inc.php b/frontends/php/include/maps.inc.php
index 9a511d29..de482013 100644
--- a/frontends/php/include/maps.inc.php
+++ b/frontends/php/include/maps.inc.php
@@ -754,4 +754,17 @@
ImageLine($image,$x1,$y1,$x2,$y2,$color);
}
}
+
+ function convertColor($im,$color){
+
+ $RGB = array(
+ hexdec('0x'.substr($color, 0,2)),
+ hexdec('0x'.substr($color, 2,2)),
+ hexdec('0x'.substr($color, 4,2))
+ );
+
+
+ return ImageColorAllocate($im,$RGB[0],$RGB[1],$RGB[2]);
+ }
+
?>