From aa75108f001293d5e8b25aedb4b754b3133f944e Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 10 Jan 2004 19:53:50 +0000 Subject: Sysmaps to work under all versions of GD. git-svn-id: svn://svn.zabbix.com/trunk@1161 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/sysmap.php | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'frontends/php/sysmap.php') diff --git a/frontends/php/sysmap.php b/frontends/php/sysmap.php index a4953945..0cbf0713 100644 --- a/frontends/php/sysmap.php +++ b/frontends/php/sysmap.php @@ -95,7 +95,14 @@ $y_=DBget_field($result,$i,6); $status_=DBget_field($result,$i,7); - $map=$map."\n\"$host_\""; + if(function_exists("imagecreatetruecolor")) + { + $map=$map."\n\"$host_\""; + } + else + { + $map=$map."\n\"$host_\""; + } } $map=$map."\n"; echo $map; @@ -264,19 +271,27 @@ show_table2_h_delimiter(); echo "