mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixing broken things...
git-svn-id: http://www.observium.org/svn/observer/trunk@87 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
$ignore = $_POST['ignore'];
|
||||
$type = $_POST['type'];
|
||||
|
||||
$sql = "UPDATE `devices` SET `purpose` = '$descr', `apache` = '$apache', `type` = '$type', `ignore` = '$ignore' WHERE `id` = '$_GET[id]'";
|
||||
$sql = "UPDATE `devices` SET `purpose` = '$descr', `apache` = '$apache', `type` = '$type', `ignore` = '$ignore' WHERE `device_id` = '$_GET[id]'";
|
||||
$query = mysql_query($sql);
|
||||
|
||||
$rows_updated = mysql_affected_rows();
|
||||
|
@@ -1,22 +1,20 @@
|
||||
<?
|
||||
|
||||
$selected[iface] = "selected";
|
||||
$selected['iface'] = "selected";
|
||||
|
||||
if(!$_GET[section]) {
|
||||
$_GET[section] = "dev-overview";
|
||||
if(!$_GET['section']) {
|
||||
$_GET['section'] = "dev-overview";
|
||||
}
|
||||
$section = $_GET[section];
|
||||
$section = $_GET['section'];
|
||||
$sectionx = str_replace("-", "", $section);
|
||||
$select[$sectionx] = "selected";
|
||||
|
||||
|
||||
$device_query = mysql_query("select * from devices WHERE `device_id` = '$_GET[id]'");
|
||||
$device_query = mysql_query("SELECT * FROM `devices` WHERE `device_id` = '" . $_GET['id'] . "'");
|
||||
while($device = mysql_fetch_array($device_query)) {
|
||||
$hostname = $device[hostname];
|
||||
#$bg="#ffffff";
|
||||
echo("<table cellpadding=7 cellspacing=0 class=devicetable width=100%>");
|
||||
include("includes/device-header.inc");
|
||||
echo("</table><br />");
|
||||
echo("<table cellpadding=7 cellspacing=0 class=devicetable width=100%>");
|
||||
include("includes/device-header.inc");
|
||||
echo("</table><br />");
|
||||
|
||||
echo("<div class=mainpane>");
|
||||
|
||||
|
@@ -10,7 +10,7 @@ if($_POST['editing']) {
|
||||
}
|
||||
}
|
||||
|
||||
$device = mysql_fetch_array(mysql_query("SELECT * FROM `devices` WHERE `id` = '$_GET[id]'"));
|
||||
$device = mysql_fetch_array(mysql_query("SELECT * FROM `devices` WHERE `device_id` = '$_GET[id]'"));
|
||||
$descr = $device['purpose'];
|
||||
|
||||
if($updated && $update_message) {
|
||||
|
Reference in New Issue
Block a user