diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-08-31 06:59:09 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2001-08-31 06:59:09 +0000 |
| commit | 5aaee1f9c4d0ceb5f6dfe40f46178a9e9152d8eb (patch) | |
| tree | cd93623088c9b5eac104ba6d86075ccec7626560 /frontends/php/include | |
| parent | 021efd5bfe977924076cccd522b09d62f9218bad (diff) | |
| download | zabbix-5aaee1f9c4d0ceb5f6dfe40f46178a9e9152d8eb.tar.gz zabbix-5aaee1f9c4d0ceb5f6dfe40f46178a9e9152d8eb.tar.xz zabbix-5aaee1f9c4d0ceb5f6dfe40f46178a9e9152d8eb.zip | |
Form for host details changing added.
git-svn-id: svn://svn.zabbix.com/trunk@178 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
| -rw-r--r-- | frontends/php/include/config.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc b/frontends/php/include/config.inc index 46fc63e0..578acc33 100644 --- a/frontends/php/include/config.inc +++ b/frontends/php/include/config.inc @@ -1115,7 +1115,7 @@ function add_host($host,$port,$status,$template,$useip,$ip) { - if($useip=="true") + if($useip=="on") { $useip=1; } @@ -1139,6 +1139,22 @@ return $result; } + function update_host($hostid,$host,$port,$status,$useip,$ip) + { + if($useip=="on") + { + $useip=1; + } + else + { + $useip=0; + } + $sql="update hosts set host='$host',port=$port,status=$status,useip=$useip,ip='$ip' where hostid=$hostid"; + $result=DBexecute($sql); + return $result; + } + + # Add Media definition function add_media( $userid, $type, $sendto) |
