summaryrefslogtreecommitdiffstats
path: root/frontends/php/hosts.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-18 08:15:56 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-09-18 08:15:56 +0000
commit984e8708f85679aefd3d0029383e8fefbaf647a0 (patch)
tree5c01c40c2f38bbd525942ecce7e21bcb77366787 /frontends/php/hosts.php
parent44e8cd98347176a8c79a470c5a0b7e6d236991e0 (diff)
downloadzabbix-984e8708f85679aefd3d0029383e8fefbaf647a0.tar.gz
zabbix-984e8708f85679aefd3d0029383e8fefbaf647a0.tar.xz
zabbix-984e8708f85679aefd3d0029383e8fefbaf647a0.zip
Better audit support.
git-svn-id: svn://svn.zabbix.com/trunk@1428 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
-rw-r--r--frontends/php/hosts.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php
index d7d08f4d..673c84f4 100644
--- a/frontends/php/hosts.php
+++ b/frontends/php/hosts.php
@@ -74,7 +74,12 @@
}
if($_GET["register"]=="delete")
{
+ $host-get_host_by_hostid($_GET["hostid"]);
$result=delete_host($_GET["hostid"]);
+ if($result)
+ {
+ add_audit(AUDIT_ACTION_DELETE,AUDIT_RESOURCE_HOST,"Host [".addslashes($host["name"])."]");
+ }
show_messages($result, S_HOST_DELETED, S_CANNOT_DELETE_HOST);
unset($_GET["hostid"]);
}