2011-05-03 21:17:04 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_file($config['install_dir'].'/includes/polling/os/'.$device['os'].'.inc.php')) {
|
|
|
|
// OS Specific
|
|
|
|
include $config['install_dir'].'/includes/polling/os/'.$device['os'].'.inc.php';
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2015-07-10 13:36:21 +02:00
|
|
|
else if ($device['os_group'] && is_file($config['install_dir'].'/includes/polling/os/'.$device['os_group'].'.inc.php')) {
|
|
|
|
// OS Group Specific
|
|
|
|
include $config['install_dir'].'/includes/polling/os/'.$device['os_group'].'.inc.php';
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2015-07-10 13:36:21 +02:00
|
|
|
else {
|
|
|
|
echo "Generic :(\n";
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:17:04 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($version && $device['version'] != $version) {
|
|
|
|
$update_array['version'] = $version;
|
|
|
|
log_event('OS Version -> '.$version, $device, 'system');
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($features != $device['features']) {
|
|
|
|
$update_array['features'] = $features;
|
|
|
|
log_event('OS Features -> '.$features, $device, 'system');
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($hardware && $hardware != $device['hardware']) {
|
|
|
|
$update_array['hardware'] = $hardware;
|
|
|
|
log_event('Hardware -> '.$hardware, $device, 'system');
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($serial && $serial != $device['serial']) {
|
|
|
|
$update_array['serial'] = $serial;
|
|
|
|
log_event('Serial -> '.$serial, $device, 'system');
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if ($icon && $icon != $device['icon']) {
|
|
|
|
$update_array['icon'] = $icon;
|
|
|
|
log_event('Icon -> '.$icon, $device, 'system');
|
2012-04-24 22:50:15 +00:00
|
|
|
}
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
echo "\nHardware: ".$hardware.' Version: '.$version.' Features: '.$features.' Serial: '.$serial."\n";
|