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';
|
2016-08-28 12:32:58 -05:00
|
|
|
} elseif ($device['os_group'] && is_file($config['install_dir'].'/includes/polling/os/'.$device['os_group'].'.inc.php')) {
|
2015-07-10 13:36:21 +02:00
|
|
|
// OS Group Specific
|
|
|
|
include $config['install_dir'].'/includes/polling/os/'.$device['os_group'].'.inc.php';
|
2016-08-28 12:32:58 -05:00
|
|
|
} else {
|
2015-07-10 13:36:21 +02:00
|
|
|
echo "Generic :(\n";
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:17:04 +00:00
|
|
|
|
2017-02-10 20:42:46 +00:00
|
|
|
if ($device['version'] != $version) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$update_array['version'] = $version;
|
2017-02-14 00:32:02 +02:00
|
|
|
log_event('OS Version -> ' . $version, $device, 'system', 3);
|
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;
|
2017-02-14 00:32:02 +02:00
|
|
|
log_event('OS Features -> ' . $features, $device, 'system', 3);
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2017-02-10 20:42:46 +00:00
|
|
|
if ($hardware != $device['hardware']) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$update_array['hardware'] = $hardware;
|
2017-02-14 00:32:02 +02:00
|
|
|
log_event('Hardware -> ' . $hardware, $device, 'system', 3);
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2017-02-10 20:42:46 +00:00
|
|
|
if ($serial != $device['serial']) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$update_array['serial'] = $serial;
|
2017-02-14 00:32:02 +02:00
|
|
|
log_event('Serial -> ' . $serial, $device, 'system', 3);
|
2012-04-13 23:10:32 +00:00
|
|
|
}
|
2011-05-03 21:46:25 +00:00
|
|
|
|
2017-02-14 12:56:16 +00:00
|
|
|
update_device_logo($device);
|
2012-04-24 22:50:15 +00:00
|
|
|
|
2016-10-14 02:41:53 +01:00
|
|
|
echo 'Hardware: ' . $hardware . PHP_EOL;
|
|
|
|
echo 'Version: ' . $version . PHP_EOL;
|
|
|
|
echo 'Features: ' . $features . PHP_EOL;
|
|
|
|
echo 'Serial: ' . $serial . PHP_EOL;
|