summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/httptest.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-20 10:46:46 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-20 10:46:46 +0000
commitf1772af2dc84a86ceee17ca21532e7143dbcab65 (patch)
tree58f02929790d87cf5f9bd9454c247f41114f53e6 /frontends/php/include/httptest.inc.php
parent8b7a31ecc6bde646e36f0c6f81c33f15ed26a85d (diff)
downloadzabbix-f1772af2dc84a86ceee17ca21532e7143dbcab65.tar.gz
zabbix-f1772af2dc84a86ceee17ca21532e7143dbcab65.tar.xz
zabbix-f1772af2dc84a86ceee17ca21532e7143dbcab65.zip
- [DEV-137] added WEB scenario deletion, on host remove (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5721 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/httptest.inc.php')
-rw-r--r--frontends/php/include/httptest.inc.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/frontends/php/include/httptest.inc.php b/frontends/php/include/httptest.inc.php
index 2d2415fa..a0282034 100644
--- a/frontends/php/include/httptest.inc.php
+++ b/frontends/php/include/httptest.inc.php
@@ -389,7 +389,7 @@
return DBfetch(DBselect('select * from httptest where httptestid='.$httptestid));
}
- function &get_httpsteps_by_httptestid($httptestid)
+ function get_httpsteps_by_httptestid($httptestid)
{
return DBselect('select * from httpstep where httptestid='.$httptestid);
}
@@ -403,4 +403,12 @@
{
return DBfetch(DBselect('select * from httpstep where httptestid='.$httptestid.' and no='.$no));
}
+
+ function get_httptests_by_hostid($hostid){
+ $sql = 'SELECT DISTINCT ht.* '.
+ ' FROM httptest ht, applications ap '.
+ ' WHERE ap.hostid='.$hostid.
+ ' AND ht.applicationid=ap.applicationid';
+ return DBselect($sql);
+ }
?>