initial commit; version 22.5.12042
This commit is contained in:
28
html/includes/graphs/location/auth.inc.php
Normal file
28
html/includes/graphs/location/auth.inc.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
// FIXME : bit hacky, I think.
|
||||
|
||||
if($vars['id'] == OBS_VAR_UNSET) { $vars['id'] = ''; }
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `devices` WHERE `location` = ?", array($vars['id'])) as $device)
|
||||
{
|
||||
if ($auth || device_permitted($device_id))
|
||||
{
|
||||
$devices[] = $device;
|
||||
$title = $vars['id'];
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user