diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-04 10:13:41 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-01-04 10:13:41 +0000 |
| commit | 2a4c603bb433fc21d4deaa87d1c0b41cc55a1bea (patch) | |
| tree | f09277f20f2f31e37ab0833770f27aa510a78cc7 /frontends/php/include/config.inc.php | |
| parent | 5d64930fe2b5ca25c3a7b4ad2182b9cb28a6dad3 (diff) | |
| download | zabbix-2a4c603bb433fc21d4deaa87d1c0b41cc55a1bea.tar.gz zabbix-2a4c603bb433fc21d4deaa87d1c0b41cc55a1bea.tar.xz zabbix-2a4c603bb433fc21d4deaa87d1c0b41cc55a1bea.zip | |
More support for different connector types/colors.
git-svn-id: svn://svn.zabbix.com/trunk@1130 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index f99afb81..10d5e530 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -2600,15 +2600,15 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; return DBexecute($sql); } - function add_link($sysmapid,$shostid1,$shostid2,$triggerid) + function add_link($sysmapid,$shostid1,$shostid2,$triggerid,$drawtype_off,$color_off,$drawtype_on,$color_on) { if($triggerid == 0) { - $sql="insert into sysmaps_links (sysmapid,shostid1,shostid2,triggerid) values ($sysmapid,$shostid1,$shostid2,NULL)"; + $sql="insert into sysmaps_links (sysmapid,shostid1,shostid2,triggerid,drawtype_off,color_off,drawtype_on,color_on) values ($sysmapid,$shostid1,$shostid2,NULL,$drawtype_off,'$color_off',$drawtype_on,'$color_on')"; } else { - $sql="insert into sysmaps_links (sysmapid,shostid1,shostid2,triggerid) values ($sysmapid,$shostid1,$shostid2,$triggerid)"; + $sql="insert into sysmaps_links (sysmapid,shostid1,shostid2,triggerid,drawtype_off,color_off,drawtype_on,color_on) values ($sysmapid,$shostid1,$shostid2,$triggerid,$drawtype_off,'$color_off',$drawtype_on,'$color_on')"; } return DBexecute($sql); } |
