optional printers type in devices menu

git-svn-id: http://www.observium.org/svn/observer/trunk@738 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-28 17:46:41 +00:00
parent a805d51c3a
commit ffcae1f80a
4 changed files with 16 additions and 0 deletions
+5
View File
@@ -142,6 +142,11 @@ while ($device = mysql_fetch_array($device_query)) {
if ($device['type'] == "unknown") { $device['type'] = 'firewall'; }
}
if ($device['os'] == "dell-laser")
{
if ($device['type'] == "unknown") { $device['type'] = 'printer'; }
}
$update_query = "UPDATE `devices` SET ";
$update_query .= " `last_discovered` = NOW(), `type` = '" . $device['type'] . "'";
$update_query .= " WHERE `device_id` = '" . $device['device_id'] . "'";