diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-01 12:02:22 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-06-01 12:02:22 +0000 |
| commit | eebf8121ea8f616317d67f04bf577e4c5bdca0d1 (patch) | |
| tree | f1ad35fa41d124eea270a1056c0ad8246680a71c /frontends/php/include/hosts.inc.php | |
| parent | 1d0d7ac11023dd1eccac147f9e1b2abf41d95334 (diff) | |
| download | zabbix-eebf8121ea8f616317d67f04bf577e4c5bdca0d1.tar.gz zabbix-eebf8121ea8f616317d67f04bf577e4c5bdca0d1.tar.xz zabbix-eebf8121ea8f616317d67f04bf577e4c5bdca0d1.zip | |
- added availability to export/import templates for hosts (Artem)
- added permissions for hosts on import (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@4220 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/hosts.inc.php')
| -rw-r--r-- | frontends/php/include/hosts.inc.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/frontends/php/include/hosts.inc.php b/frontends/php/include/hosts.inc.php index 5ccae673..52f8b3ef 100644 --- a/frontends/php/include/hosts.inc.php +++ b/frontends/php/include/hosts.inc.php @@ -915,4 +915,30 @@ require_once "include/items.inc.php"; return $result; } + + function host_status2str($status) + { + switch($status) + { + case HOST_STATUS_MONITORED: $status = S_MONITORED; break; + case HOST_STATUS_NOT_MONITORED: $status = S_NOT_MONITORED; break; + case HOST_STATUS_TEMPLATE: $status = S_TEMPLATE; break; + case HOST_STATUS_DELETED: $status = S_DELETED; break; + default: + $status = S_UNKNOWN; break; + } + return $status; + } + + function host_status2style($status) + { + switch($status) + { + case HOST_STATUS_MONITORED: $status = 'off'; break; + case HOST_STATUS_NOT_MONITORED: $status = 'on'; break; + default: + $status = 'unknown'; break; + } + return $status; + } ?> |
