2011-11-29 10:34:18 +00:00
|
|
|
<?php
|
|
|
|
|
|
2018-11-28 16:49:18 -06:00
|
|
|
foreach (dbFetchRows('SELECT * FROM `devices`,`locations` WHERE location_id = ? && devices.location_id = locations.id', [$vars['id']]) as $device) {
|
2018-11-29 13:04:11 -06:00
|
|
|
if ($auth || device_permitted($device['device_id'])) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$devices[] = $device;
|
2018-11-28 16:49:18 -06:00
|
|
|
$title = $device['location'];
|
2015-07-10 13:36:21 +02:00
|
|
|
$auth = true;
|
|
|
|
|
}
|
2011-11-29 10:34:18 +00:00
|
|
|
}
|