Files
librenms-librenms/includes/html/graphs/bgp/auth.inc.php
Tony Murray 6f5cf7727a Misc webui code cleanups (#14242)
* Misc webui cleanups

* Style

* More

* graphing fixes

* More graph cleanups

* more fixes, graphs and device pages

* style
2022-08-30 12:55:37 -05:00

14 lines
431 B
PHP

<?php
if (is_numeric($vars['id'])) {
$data = dbFetchRow('SELECT * FROM bgpPeers WHERE bgpPeer_id = ?', [$vars['id']]);
if (is_numeric($data['device_id']) && ($auth || device_permitted($data['device_id']))) {
$device = device_by_id_cache($data['device_id']);
$title = generate_device_link($device);
$title .= ' :: BGP :: ' . htmlentities($data['bgpPeerIdentifier']);
$auth = true;
}
}