2009-12-02 23:50:09 +00:00
|
|
|
<?php
|
|
|
|
|
2016-03-15 23:08:17 +00:00
|
|
|
$os = getHostOS($device);
|
|
|
|
if ($os != $device['os']) {
|
2016-04-15 18:18:53 -07:00
|
|
|
log_event('Device OS changed '.$device['os']." => $os", $device, 'system');
|
2016-02-23 23:44:51 -06:00
|
|
|
$device['os'] = $os;
|
2016-03-15 23:08:17 +00:00
|
|
|
$sql = dbUpdate(array('os' => $os), 'devices', 'device_id=?', array($device['device_id']));
|
|
|
|
echo "Changed OS! : $os\n";
|
|
|
|
}
|
2016-02-23 23:44:51 -06:00
|
|
|
|
2016-03-17 11:36:59 -05:00
|
|
|
$icon = getImageName($device, false);
|
2016-03-15 23:08:17 +00:00
|
|
|
if ($icon != $device['icon']) {
|
2016-04-15 18:18:53 -07:00
|
|
|
log_event('Device Icon changed '.$device['icon']." => $icon", $device, 'system');
|
2016-02-23 23:44:51 -06:00
|
|
|
$device['icon'] = $icon;
|
2016-03-15 23:08:17 +00:00
|
|
|
$sql = dbUpdate(array('icon' => $icon), 'devices', 'device_id=?', array($device['device_id']));
|
|
|
|
echo "Changed Icon! : $icon\n";
|
2011-03-15 10:54:59 +00:00
|
|
|
}
|