2010-02-09 16:36:06 +00:00
|
|
|
<?php
|
|
|
|
|
2010-06-09 20:03:16 +00:00
|
|
|
$datas = array('Processors','Memory','Storage','Temperatures', 'Voltages', 'Fanspeeds', 'Frequencies', 'Current');
|
2010-04-11 13:45:19 +00:00
|
|
|
|
|
|
|
if(!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
2010-02-11 01:48:55 +00:00
|
|
|
|
|
|
|
print_optionbar_start();
|
|
|
|
|
2010-03-06 01:32:41 +00:00
|
|
|
$sep = "";
|
2010-02-11 01:48:55 +00:00
|
|
|
foreach ($datas as $texttype) {
|
|
|
|
$type = strtolower($texttype);
|
2010-03-06 01:32:41 +00:00
|
|
|
if (!isset($_GET['opta'])) { $_GET['opta'] = $type; }
|
2010-02-11 01:48:55 +00:00
|
|
|
echo($sep);
|
|
|
|
if ($_GET['opta'] == $type) { echo("<strong>"); }
|
2010-04-11 13:45:19 +00:00
|
|
|
echo("<a href='".$config['base_url']."/health/" . $type . "/'> " . $texttype ."</a>\n");
|
2010-02-11 01:48:55 +00:00
|
|
|
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
|
|
|
$sep = ' | ';
|
|
|
|
}
|
|
|
|
unset ($sep);
|
|
|
|
|
|
|
|
print_optionbar_end();
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-09 16:36:06 +00:00
|
|
|
switch ($_GET['opta'])
|
|
|
|
{
|
2010-04-11 13:45:19 +00:00
|
|
|
case 'processors':
|
|
|
|
case 'memory':
|
|
|
|
case 'storage':
|
2010-02-09 16:36:06 +00:00
|
|
|
case 'temperatures':
|
|
|
|
case 'voltages':
|
2010-02-11 09:21:32 +00:00
|
|
|
case 'fanspeeds':
|
2010-06-03 10:53:10 +00:00
|
|
|
case 'frequencies':
|
2010-06-09 20:03:16 +00:00
|
|
|
case 'current':
|
2010-04-11 13:45:19 +00:00
|
|
|
include('pages/health/'.$_GET['opta'].'.inc.php');
|
2010-02-09 16:36:06 +00:00
|
|
|
break;
|
|
|
|
default:
|
2010-04-11 13:45:19 +00:00
|
|
|
include('pages/health/temperatures.inc.php');
|
2010-02-09 16:36:06 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2010-02-11 01:48:55 +00:00
|
|
|
?>
|