From f1772af2dc84a86ceee17ca21532e7143dbcab65 Mon Sep 17 00:00:00 2001 From: artem Date: Tue, 20 May 2008 10:46:46 +0000 Subject: - [DEV-137] added WEB scenario deletion, on host remove (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5721 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/httptest.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'frontends/php/include/httptest.inc.php') 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); + } ?> -- cgit