diff options
author | Pim van den Berg | 2009-10-10 17:38:29 +0200 |
---|---|---|
committer | Pim van den Berg | 2009-10-10 17:38:29 +0200 |
commit | 5ecdf9deabba565729af908852e873d3836e282b (patch) | |
tree | 5ab7b465da2217d8a31bebd9c59a629e081033d0 /inc/html.inc.php | |
parent | remove laquo from navigation (diff) | |
download | apt-panopticon_cgp-5ecdf9deabba565729af908852e873d3836e282b.zip apt-panopticon_cgp-5ecdf9deabba565729af908852e873d3836e282b.tar.gz apt-panopticon_cgp-5ecdf9deabba565729af908852e873d3836e282b.tar.bz2 apt-panopticon_cgp-5ecdf9deabba565729af908852e873d3836e282b.tar.xz |
dynamic title
Show the host and plugin in the title to have a better browsing history.
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r-- | inc/html.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
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'; | |||
5 | 5 | ||
6 | function html_start() { | 6 | function html_start() { |
7 | global $CONFIG; | 7 | global $CONFIG; |
8 | |||
9 | if (isset($_GET['h'])) | ||
10 | $path = ' - '.htmlentities(ucfirst($_GET['h'])); | ||
11 | if (isset($_GET['p'])) | ||
12 | $path .= ' - '.htmlentities(ucfirst($_GET['p'])); | ||
13 | |||
8 | echo <<<EOT | 14 | echo <<<EOT |
9 | <!DOCTYPE HTML> | 15 | <!DOCTYPE HTML> |
10 | <html> | 16 | <html> |
11 | <head> | 17 | <head> |
12 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 18 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
13 | <title>Collectd Graph Panel</title> | 19 | <title>CGP{$path}</title> |
14 | <link rel="stylesheet" href="{$CONFIG['weburl']}/layout/style.css" type="text/css"> | 20 | <link rel="stylesheet" href="{$CONFIG['weburl']}/layout/style.css" type="text/css"> |
15 | </head> | 21 | </head> |
16 | <body> | 22 | <body> |