diff options
Diffstat (limited to 'inc/html.inc.php')
-rw-r--r-- | inc/html.inc.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index e93cc66..e38ca8e 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
@@ -1,7 +1,10 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | # html related functions | ||
4 | |||
3 | require_once 'conf/common.inc.php'; | 5 | require_once 'conf/common.inc.php'; |
4 | require_once 'inc/rrdtool.class.php'; | 6 | require_once 'inc/rrdtool.class.php'; |
7 | require_once 'inc/functions.inc.php'; | ||
5 | require_once 'inc/collectd.inc.php'; | 8 | require_once 'inc/collectd.inc.php'; |
6 | 9 | ||
7 | function html_start() { | 10 | function html_start() { |
@@ -78,15 +81,15 @@ function host_summary($hosts) { | |||
78 | 81 | ||
79 | 82 | ||
80 | function breadcrumbs() { | 83 | function breadcrumbs() { |
81 | if (isset($_GET['h'])) | 84 | if (validate_get($_GET['h'], 'host')) |
82 | $path = ' - '.ucfirst($_GET['h']); | 85 | $path = ' - '.ucfirst($_GET['h']); |
83 | if (isset($_GET['p'])) | 86 | if (validate_get($_GET['p'], 'plugin')) |
84 | $path .= ' - '.ucfirst($_GET['p']); | 87 | $path .= ' - '.ucfirst($_GET['p']); |
85 | if (isset($_GET['pi'])) | 88 | if (validate_get($_GET['pi'], 'pinstance')) |
86 | $path .= ' - '.$_GET['pi']; | 89 | $path .= ' - '.$_GET['pi']; |
87 | if (isset($_GET['t']) && isset($_GET['p']) && $_GET['t'] != $_GET['p']) | 90 | if (validate_get($_GET['t'], 'type') && validate_get($_GET['p'], 'plugin') && $_GET['t'] != $_GET['p']) |
88 | $path .= ' - '.$_GET['t']; | 91 | $path .= ' - '.$_GET['t']; |
89 | if (isset($_GET['ti'])) | 92 | if (validate_get($_GET['ti'], 'tinstance')) |
90 | $path .= ' - '.$_GET['ti']; | 93 | $path .= ' - '.$_GET['ti']; |
91 | 94 | ||
92 | return $path; | 95 | return $path; |