mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02: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,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
if($_POST['editing']) {
|
||||
if($_SESSION['userlevel'] > "7") {
|
||||
if ($_POST['editing'])
|
||||
{
|
||||
if ($_SESSION['userlevel'] > "7")
|
||||
{
|
||||
include("includes/device-edit.inc.php");
|
||||
}
|
||||
}
|
||||
@@ -9,7 +11,8 @@ if($_POST['editing']) {
|
||||
$device = mysql_fetch_array(mysql_query("SELECT * FROM `devices` WHERE `device_id` = '".$device['device_id']."'"));
|
||||
$descr = $device['purpose'];
|
||||
|
||||
if($updated && $update_message) {
|
||||
if ($updated && $update_message)
|
||||
{
|
||||
print_message($update_message);
|
||||
} elseif ($update_message) {
|
||||
print_error($update_message);
|
||||
@@ -53,11 +56,14 @@ echo("<table cellpadding=0 cellspacing=0><tr><td>
|
||||
<td width='300'><div align='right'>SNMP Transport</div></td>
|
||||
<td colspan='3'>
|
||||
<select name='transport'>");
|
||||
foreach ($config['snmp']['transports'] as $transport) {
|
||||
|
||||
foreach ($config['snmp']['transports'] as $transport)
|
||||
{
|
||||
echo ("<option value='".$transport."'");
|
||||
if ($transport == $device['transport']) { echo (" selected='selected'"); }
|
||||
echo (">".$transport."</option>");
|
||||
}
|
||||
|
||||
echo(" </select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -102,11 +108,11 @@ echo("
|
||||
<tr>
|
||||
<td><div align='right'>Disable</div></td>
|
||||
<td><input name='disabled' type='checkbox' id='disabled' value='1'");
|
||||
if($device['disabled']) { echo("checked=checked"); }
|
||||
if ($device['disabled']) { echo("checked=checked"); }
|
||||
echo("/></td>
|
||||
<td><div align='right'>Ignore</div></td>
|
||||
<td><input name='ignore' type='checkbox' id='disable' value='1'");
|
||||
if($device['ignore']) { echo("checked=checked"); }
|
||||
if ($device['ignore']) { echo("checked=checked"); }
|
||||
echo("/></td>
|
||||
</tr>");
|
||||
|
||||
@@ -120,5 +126,4 @@ echo('
|
||||
</td>
|
||||
<td width="50"></td><td></td></tr></table>');
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user