From 984e8708f85679aefd3d0029383e8fefbaf647a0 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sat, 18 Sep 2004 08:15:56 +0000 Subject: Better audit support. git-svn-id: svn://svn.zabbix.com/trunk@1428 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/hosts.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'frontends/php/hosts.php') 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"]); } -- cgit