diff options
Diffstat (limited to 'host.php')
-rw-r--r-- | host.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,8 +4,8 @@ require_once 'conf/common.inc.php'; | |||
4 | require_once 'inc/html.inc.php'; | 4 | require_once 'inc/html.inc.php'; |
5 | require_once 'inc/collectd.inc.php'; | 5 | require_once 'inc/collectd.inc.php'; |
6 | 6 | ||
7 | $host = validate_get(GET('h'), 'host'); | 7 | $host = GET('h'); |
8 | $plugin = validate_get(GET('p'), 'plugin'); | 8 | $plugin = GET('p'); |
9 | 9 | ||
10 | $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); | 10 | $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); |
11 | 11 | ||
@@ -14,6 +14,11 @@ html_start(); | |||
14 | printf("<fieldset id=\"%s\">", htmlentities($host)); | 14 | printf("<fieldset id=\"%s\">", htmlentities($host)); |
15 | printf("<legend>%s</legend>", htmlentities($host)); | 15 | printf("<legend>%s</legend>", htmlentities($host)); |
16 | 16 | ||
17 | echo <<<EOT | ||
18 | <input type="checkbox" id="navicon" class="navicon" /> | ||
19 | <label for="navicon"></label> | ||
20 | |||
21 | EOT; | ||
17 | 22 | ||
18 | if (!strlen($host) || !$plugins = collectd_plugins($host)) { | 23 | if (!strlen($host) || !$plugins = collectd_plugins($host)) { |
19 | echo "Unknown host\n"; | 24 | echo "Unknown host\n"; |