mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@1096 61d68cd4-352d-0410-923a-c4978735b2b8
42 lines
902 B
PHP
42 lines
902 B
PHP
<?php
|
|
|
|
$datas = array('Processors','Memory','Storage','Temperatures', 'Voltages', 'Fanspeeds', 'Frequencies');
|
|
|
|
if(!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
|
|
|
print_optionbar_start();
|
|
|
|
$sep = "";
|
|
foreach ($datas as $texttype) {
|
|
$type = strtolower($texttype);
|
|
if (!isset($_GET['opta'])) { $_GET['opta'] = $type; }
|
|
echo($sep);
|
|
if ($_GET['opta'] == $type) { echo("<strong>"); }
|
|
echo("<a href='".$config['base_url']."/health/" . $type . "/'> " . $texttype ."</a>\n");
|
|
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
|
$sep = ' | ';
|
|
}
|
|
unset ($sep);
|
|
|
|
print_optionbar_end();
|
|
|
|
|
|
|
|
switch ($_GET['opta'])
|
|
{
|
|
case 'processors':
|
|
case 'memory':
|
|
case 'storage':
|
|
case 'temperatures':
|
|
case 'voltages':
|
|
case 'fanspeeds':
|
|
case 'frequencies':
|
|
include('pages/health/'.$_GET['opta'].'.inc.php');
|
|
break;
|
|
default:
|
|
include('pages/health/temperatures.inc.php');
|
|
break;
|
|
}
|
|
|
|
?>
|