X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fphp-collection%2Findex.php;h=5953fbd354c96a05d0c91eed34d41023caee4e59;hb=00d5fc4af0f1750cbaddaab8c7e29907840e3f7f;hp=1abf40d595a6d0c4753defc1ea05ca1c1afecbc0;hpb=6a69db4d304118e11fd4bae9c761fc14674e4942;p=collectd.git
diff --git a/contrib/php-collection/index.php b/contrib/php-collection/index.php
index 1abf40d5..5953fbd3 100644
--- a/contrib/php-collection/index.php
+++ b/contrib/php-collection/index.php
@@ -39,6 +39,22 @@ function dhtml_response_list(&$items, $method) {
print("");
}
+function dhtml_response_graphs(&$graphs, $method) {
+ header("Content-Type: text/xml");
+
+ print(''."\n");
+ print("\n");
+ printf(" %s\n", htmlspecialchars($method));
+ print(" \n");
+ foreach ($graphs as &$graph)
+ printf(' '."\n",
+ htmlspecialchars($graph['host']), htmlspecialchars($graph['plugin']), htmlspecialchars($graph['pinst']),
+ htmlspecialchars($graph['type']), htmlspecialchars($graph['tinst']), htmlspecialchars($graph['timespan']),
+ htmlspecialchars($graph['logarithmic']), htmlspecialchars($graph['tinyLegend']));
+ print(" \n");
+ print("");
+}
+
/**
* Product page body with selection fields
*/
@@ -66,7 +82,7 @@ function build_page() {