From 20ff0332e4cebfb212300f3d9496f14e400a6234 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 15 May 2005 18:53:33 +0000 Subject: - change copyright to SIA Zabbix (Alexei) - added basic support for log[*] (Alexei) - fixed processing of traps having character ':' (Alexei) - added logfiles.h and logfiles.c (Alexei) - group level start/stop monitoring (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@1774 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/config.inc.php | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) (limited to 'frontends/php/include/config.inc.php') diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index a8e41003..01ac0326 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -1,7 +1,7 @@ "; return $exp; } - # Update Host status - - function update_host_status($hostid,$status) - { - if(!check_right("Host","U",0)) - { - error("Insufficient permissions"); - return 0; - } - - $sql="select status from hosts where hostid=$hostid"; - $result=DBselect($sql); - $old_status=DBget_field($result,0,0); - if($status != $old_status) - { - update_trigger_value_to_unknown_by_hostid($hostid); - $sql="update hosts set status=$status where hostid=$hostid and status!=".HOST_STATUS_DELETED; - return DBexecute($sql); - } - else - { - return 1; - } - } - function add_image($name,$imagetype,$files) { if(isset($files)) @@ -2592,7 +2567,7 @@ echo "";

- + -- cgit