2007-04-04 10:15:07 +00:00
|
|
|
<?php
|
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
if ($_SESSION['userlevel'] < '7')
|
|
|
|
{
|
2007-04-04 10:15:07 +00:00
|
|
|
print_error("Insufficient Privileges");
|
|
|
|
} else {
|
|
|
|
|
2011-03-18 16:49:15 +00:00
|
|
|
$panes['device'] = 'Device Settings';
|
|
|
|
$panes['snmp'] = 'SNMP';
|
|
|
|
$panes['ports'] = 'Port Settings';
|
|
|
|
$panes['apps'] = 'Applications';
|
2011-03-30 16:28:24 +00:00
|
|
|
$panes['alerts'] = 'Alerts';
|
2011-03-26 19:12:24 +00:00
|
|
|
|
2011-03-18 16:49:15 +00:00
|
|
|
if ($config['enable_services'])
|
|
|
|
{
|
|
|
|
$panes['services'] = 'Services';
|
|
|
|
}
|
2011-03-26 19:12:24 +00:00
|
|
|
|
2011-03-18 16:49:15 +00:00
|
|
|
$panes['ipmi'] = 'IPMI';
|
2007-04-04 10:15:07 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
print_optionbar_start();
|
2010-06-10 20:13:41 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
unset($sep);
|
|
|
|
foreach ($panes as $type => $text)
|
2010-06-10 20:13:41 +00:00
|
|
|
{
|
2011-03-16 23:10:10 +00:00
|
|
|
if (!isset($_GET['opta'])) { $_GET['opta'] = $type; }
|
|
|
|
echo($sep);
|
|
|
|
if ($_GET['opta'] == $type)
|
|
|
|
{
|
|
|
|
echo("<strong>");
|
|
|
|
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
|
|
|
} else {
|
|
|
|
echo('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
|
|
|
}
|
|
|
|
|
|
|
|
echo("<a href='".$config['base_url']."/device/".$device['device_id']."/edit/" . $type . ($_GET['optb'] ? "/" . $_GET['optb'] : ''). "/'> " . $text ."</a>\n");
|
|
|
|
if ($_GET['opta'] == $type) { echo("</strong>"); }
|
|
|
|
$sep = " | ";
|
2010-06-10 20:13:41 +00:00
|
|
|
}
|
2008-07-18 08:21:45 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
print_optionbar_end();
|
2007-04-04 10:15:07 +00:00
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
if (is_file("pages/device/edit/".mres($_GET['opta']).".inc.php"))
|
|
|
|
{
|
|
|
|
include("pages/device/edit/".mres($_GET['opta']).".inc.php");
|
|
|
|
}
|
2007-04-04 10:15:07 +00:00
|
|
|
}
|
|
|
|
|
2011-03-16 23:10:10 +00:00
|
|
|
?>
|