diff options
| -rw-r--r-- | inc/html.inc.php | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index 51e8b37..cbe3ad2 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
| @@ -6,10 +6,7 @@ require_once 'inc/rrdtool.class.php'; | |||
| 6 | function html_start() { | 6 | function html_start() { |
| 7 | global $CONFIG; | 7 | global $CONFIG; |
| 8 | 8 | ||
| 9 | if (isset($_GET['h'])) | 9 | $path = htmlentities(breadcrumbs()); |
| 10 | $path = ' - '.htmlentities(ucfirst($_GET['h'])); | ||
| 11 | if (isset($_GET['p'])) | ||
| 12 | $path .= ' - '.htmlentities(ucfirst($_GET['p'])); | ||
| 13 | 10 | ||
| 14 | echo <<<EOT | 11 | echo <<<EOT |
| 15 | <!DOCTYPE HTML> | 12 | <!DOCTYPE HTML> |
| @@ -60,4 +57,20 @@ function host_summary($hosts) { | |||
| 60 | echo "</table>\n"; | 57 | echo "</table>\n"; |
| 61 | } | 58 | } |
| 62 | 59 | ||
| 60 | |||
| 61 | function breadcrumbs() { | ||
| 62 | if (isset($_GET['h'])) | ||
| 63 | $path = ' - '.ucfirst($_GET['h']); | ||
| 64 | if (isset($_GET['p'])) | ||
| 65 | $path .= ' - '.ucfirst($_GET['p']); | ||
| 66 | if (isset($_GET['pi'])) | ||
| 67 | $path .= ' - '.$_GET['pi']; | ||
| 68 | if (isset($_GET['t']) && isset($_GET['p']) && $_GET['t'] != $_GET['p']) | ||
| 69 | $path .= ' - '.$_GET['t']; | ||
| 70 | if (isset($_GET['ti'])) | ||
| 71 | $path .= ' - '.$_GET['ti']; | ||
| 72 | |||
| 73 | return $path; | ||
| 74 | } | ||
| 75 | |||
| 63 | ?> | 76 | ?> |
