mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
device subpages cleanup, remove dead code
git-svn-id: http://www.observium.org/svn/observer/trunk@1896 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,42 +1,42 @@
|
||||
<?php
|
||||
|
||||
if($_SESSION['userlevel'] < '7') {
|
||||
if ($_SESSION['userlevel'] < '7')
|
||||
{
|
||||
print_error("Insufficient Privileges");
|
||||
} else {
|
||||
|
||||
$panes = array('device' => 'Device Settings',
|
||||
'ports' => 'Port Settings',
|
||||
'apps' => 'Applications',
|
||||
'services' => 'Services',
|
||||
'ipmi' => 'IPMI');
|
||||
|
||||
$panes = array('device' => 'Device Settings',
|
||||
'ports' => 'Port Settings',
|
||||
'apps' => 'Applications',
|
||||
'services' => 'Services',
|
||||
'ipmi' => 'IPMI');
|
||||
print_optionbar_start();
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
unset($sep);
|
||||
foreach($panes as $type => $text) {
|
||||
|
||||
if(!isset($_GET['opta'])) { $_GET['opta'] = $type; }
|
||||
echo($sep);
|
||||
if ($_GET['opta'] == $type)
|
||||
unset($sep);
|
||||
foreach ($panes as $type => $text)
|
||||
{
|
||||
echo("<strong>");
|
||||
echo('<img src="images/icons/'.$type.'.png" class="optionicon" />');
|
||||
} else {
|
||||
echo('<img src="images/icons/greyscale/'.$type.'.png" class="optionicon" />');
|
||||
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 = " | ";
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
if (is_file("pages/device/edit/".mres($_GET['opta']).".inc.php"))
|
||||
{
|
||||
include("pages/device/edit/".mres($_GET['opta']).".inc.php");
|
||||
}
|
||||
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 = " | ";
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
if (is_file("pages/device/edit/".mres($_GET['opta']).".inc.php"))
|
||||
{
|
||||
include("pages/device/edit/".mres($_GET['opta']).".inc.php");
|
||||
} else {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user