static-config ? $type_text['overview'] = "Overview"; $type_text['temperature'] = "Temperature"; $type_text['humidity'] = "Humidity"; $type_text['mempool'] = "Memory"; $type_text['storage'] = "Disk Usage"; $type_text['diskio'] = "Disk I/O"; $type_text['processor'] = "Processor"; $type_text['voltage'] = "Voltage"; $type_text['fanspeed'] = "Fanspeed"; $type_text['frequency'] = "Frequency"; $type_text['current'] = "Current"; $type_text['power'] = "Power"; if (!$_GET['opta']) { $_GET['opta'] = "processor"; } if (!$_GET['optb']) { $_GET['optb'] = "nographs"; } print_optionbar_start('', ''); echo('Health » '); $sep = ""; foreach ($datas as $texttype) { $type = strtolower($texttype); echo($sep); if ($_GET['opta'] == $type) { echo(""); } echo('' . $type_text[$type] .''); if ($_GET['opta'] == $type) { echo(""); } $sep = ' | '; } unset ($sep); echo('
'); if ($_GET['optb'] == "graphs") { echo(''); } echo(' Graphs'); if ($_GET['optb'] == "graphs") { echo(''); } echo(' | '); if ($_GET['optb'] == "nographs") { echo(''); } echo(' No Graphs'); if ($_GET['optb'] == "nographs") { echo(''); } echo('
'); print_optionbar_end(); if (in_array($_GET['opta'],array_keys($used_sensors)) || $_GET['opta'] == 'processor' || $_GET['opta'] == 'storage' || $_GET['opta'] == 'mempool') { include('pages/health/'.$_GET['opta'].'.inc.php'); } else { echo("No sensors of type " . $_GET['opta'] . " found."); } ?>