From b744d6428d63e22171a7198b7181f08bb3da1f22 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Wed, 10 Aug 2005 12:02:14 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@1964 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/hosts.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'frontends/php/hosts.php') diff --git a/frontends/php/hosts.php b/frontends/php/hosts.php index 2535c5b7..744bbbe0 100644 --- a/frontends/php/hosts.php +++ b/frontends/php/hosts.php @@ -98,6 +98,21 @@ show_messages($result, S_TEMPLATE_LINKAGE_DELETED, S_CANNOT_DELETE_TEMPLATE_LINKAGE); unset($_GET["hosttemplateid"]); } + if($_GET["register"]=="add profile") + { + $result=add_host_profile($_GET["hostid"],$_GET["devicetype"],$_GET["name"],$_GET["os"],$_GET["serialno"],$_GET["tag"],$_GET["macaddress"],$_GET["hardware"],$_GET["software"],$_GET["contact"],$_GET["location"],$_GET["notes"]); + show_messages($result, S_PROFILE_ADDED, S_CANNOT_ADD_PROFILE); + } + if($_GET["register"]=="update profile") + { + $result=update_host_profile($_GET["hostid"],$_GET["devicetype"],$_GET["name"],$_GET["os"],$_GET["serialno"],$_GET["tag"],$_GET["macaddress"],$_GET["hardware"],$_GET["software"],$_GET["contact"],$_GET["location"],$_GET["notes"]); + show_messages($result, S_PROFILE_UPDATED, S_CANNOT_UPDATE_PROFILE); + } + if($_GET["register"]=="delete profile") + { + $result=delete_host_profile($_GET["hostid"]); + show_messages($result, S_PROFILE_DELETED, S_CANNOT_DELETE_PROFILE); + } if($_GET["register"]=="add") { $groups=array(); -- cgit