librenms/html/includes/graphs/location/auth.inc.php

14 lines
248 B
PHP
Raw Normal View History

<?php
foreach (dbFetchRows("SELECT * FROM `devices` WHERE `location` = ?", array($id)) as $device)
{
if ($config['allow_unauth_graphs'] || device_permitted($device_id))
{
$devices[] = $device;
$title = $id;
$auth = TRUE;
}
}
?>