summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/httptest.inc.php
diff options
context:
space:
mode:
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);
+ }
?>