From 5ecdf9deabba565729af908852e873d3836e282b Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 10 Oct 2009 17:38:29 +0200 Subject: dynamic title Show the host and plugin in the title to have a better browsing history. --- inc/html.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index 99ecef2..51e8b37 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -5,12 +5,18 @@ require_once 'inc/rrdtool.class.php'; function html_start() { global $CONFIG; + + if (isset($_GET['h'])) + $path = ' - '.htmlentities(ucfirst($_GET['h'])); + if (isset($_GET['p'])) + $path .= ' - '.htmlentities(ucfirst($_GET['p'])); + echo << - Collectd Graph Panel + CGP{$path} -- cgit v1.1