aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--inc/html.inc.php8
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
6function html_start() { 6function 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>