diff options
| author | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-11 13:02:45 +0000 |
|---|---|---|
| committer | sasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-03-11 13:02:45 +0000 |
| commit | 2f02b9d0c23fbeb73b8f3d88ee839711e5d776d6 (patch) | |
| tree | 43455b1b8ba5fdf095acf71cef0803b82dc0ffcf /frontends/php/include/discovery.inc.php | |
| parent | a5c435223703507964d991c38aed30f5b576f38c (diff) | |
- [DEV-108] GUI
git-svn-id: svn://svn.zabbix.com/trunk@5470 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/discovery.inc.php')
| -rw-r--r-- | frontends/php/include/discovery.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/php/include/discovery.inc.php b/frontends/php/include/discovery.inc.php index ec46a3b5..05e8b4e0 100644 --- a/frontends/php/include/discovery.inc.php +++ b/frontends/php/include/discovery.inc.php @@ -148,7 +148,7 @@ return $dcheckid; } - function add_discovery_rule($proxyid, $name, $iprange, $delay, $status, $dchecks) + function add_discovery_rule($proxy_hostid, $name, $iprange, $delay, $status, $dchecks) { if( !validate_ip_range($iprange) ) { @@ -158,8 +158,8 @@ } $druleid = get_dbid('drules', 'druleid'); - $result = DBexecute('insert into drules (druleid,proxyid,name,iprange,delay,status) '. - ' values ('.$druleid.','.$proxyid.','.zbx_dbstr($name).','.zbx_dbstr($iprange).','.$delay.','.$status.')'); + $result = DBexecute('insert into drules (druleid,proxy_hostid,name,iprange,delay,status) '. + ' values ('.$druleid.','.$proxy_hostid.','.zbx_dbstr($name).','.zbx_dbstr($iprange).','.$delay.','.$status.')'); if($result) { @@ -173,7 +173,7 @@ return $result; } - function update_discovery_rule($druleid, $proxyid, $name, $iprange, $delay, $status, $dchecks) + function update_discovery_rule($druleid, $proxy_hostid, $name, $iprange, $delay, $status, $dchecks) { if( !validate_ip_range($iprange) ) { @@ -182,7 +182,7 @@ } - $result = DBexecute('update drules set proxyid='.$proxyid.',name='.zbx_dbstr($name).',iprange='.zbx_dbstr($iprange).','. + $result = DBexecute('update drules set proxy_hostid='.$proxy_hostid.',name='.zbx_dbstr($name).',iprange='.zbx_dbstr($iprange).','. 'delay='.$delay.',status='.$status.' where druleid='.$druleid); if($result) |
