forked from ganglia/ganglia-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
27 lines (21 loc) · 798 Bytes
/
footer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
$tpl = new Dwoo_Template_File( template("footer.tpl") );
$data = new Dwoo_Data();
$data->assign("webfrontend_version", $version["webfrontend"]);
if (isset($_GET["hide-hf"]) && filter_input(INPUT_GET, "hide-hf", FILTER_VALIDATE_BOOLEAN, array("flags" => FILTER_NULL_ON_FAILURE))) {
$data->assign("hide_footer", true);
}
if ($version["rrdtool"]) {
$data->assign("rrdtool_version", $version["rrdtool"]);
}
$backend_components = array("gmetad", "gmetad-python", "gmond");
foreach ($backend_components as $backend) {
if (isset($version[$backend])) {
$data->assign("webbackend_component", $backend);
$data->assign("webbackend_version", $version[$backend]);
break;
}
}
$data->assign("parsetime", sprintf("%.4f", $parsetime) . "s");
$dwoo->output($tpl, $data);
?>