diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-10 12:02:14 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-10 12:02:14 +0000 |
| commit | b744d6428d63e22171a7198b7181f08bb3da1f22 (patch) | |
| tree | b6933236afc12d35a0a886f52bdfabec4f660ef8 /frontends/php/hosts.php | |
| parent | b0d0818a4c46627e9c9ab566c31108a6a8d15e88 (diff) | |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@1964 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/hosts.php')
| -rw-r--r-- | frontends/php/hosts.php | 15 |
1 files changed, 15 insertions, 0 deletions
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(); |
