diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-07 09:26:18 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-12-07 09:26:18 +0000 |
| commit | b78c585502a2b97dd8ef7e2a058b5097c20b650e (patch) | |
| tree | 8e2be79f017d2f1e9f032781f26c76721f8c3b84 /frontends/php/include/config.inc.php | |
| parent | a9fc5a926db7a8345c5789635dd6bf7d3df4dd0f (diff) | |
- deleted host to be renamed to "<host> [DELETED]"
(Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1086 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
| -rw-r--r-- | frontends/php/include/config.inc.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index f2c49c42..6ec458ad 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -3045,7 +3045,16 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; function delete_host($hostid) { - $sql="update hosts set status=".HOST_STATUS_DELETED." where hostid=$hostid"; + global $DB_TYPE; + + if($DB_TYPE=="MYSQL") + { + $sql="update hosts set status=".HOST_STATUS_DELETED.",host=concat(host,\" [DELETED]\") where hostid=$hostid"; + } + else + { + $sql="update hosts set status=".HOST_STATUS_DELETED.",host=host||' [DELETED]' where hostid=$hostid"; + } return DBexecute($sql); // $sql="select itemid from items where hostid=$hostid"; |
