Commit version 24.12.13800

This commit is contained in:
2025-01-06 17:35:06 -05:00
parent b7f6a79c2c
commit 55d9218816
6133 changed files with 4239740 additions and 1374287 deletions

View File

@ -1,5 +1,4 @@
<?php
/**
* Observium
*
@ -7,26 +6,27 @@
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
* @copyright (C) Adam Armstrong
*
*/
if (is_numeric($vars['id']))
{
$ap = accesspoint_by_id($vars['id']);
if (!is_intnum($vars['id'])) {
return;
}
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id'])))
{
$ap = accesspoint_by_id($vars['id']);
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id']))) {
$device = device_by_id_cache($ap['device_id']);
$cleanmac = str_replace(':','', $ap['mac_addr']);
$auth = TRUE;
$rrd_filename = get_rrd_path($device, "arubaap-".$cleanmac."-".$ap['radio_number'].".rrd");
$cleanmac = str_replace(':', '', $ap['mac_addr']);
$title = generate_device_link($device);
$title .= " :: AP :: " . escape_html($ap['name']);
$auth = TRUE;
}
$rrd_filename = get_rrd_path($device, "arubaap-" . $cleanmac . "-" . $ap['radio_number'] . ".rrd");
$graph_title = device_name($device, TRUE);
$graph_title .= " :: AP :: " . $ap['name'];
}
// EOF