mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Misc webui cleanups * Style * More * graphing fixes * More graph cleanups * more fixes, graphs and device pages * style
14 lines
431 B
PHP
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;
|
|
}
|
|
}
|