2010-08-01 14:37:36 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_numeric($vars['id'])) {
|
|
|
|
$data = dbFetchRow('SELECT * FROM bgpPeers WHERE bgpPeer_id = ?', array($vars['id']));
|
2010-08-01 14:37:36 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_numeric($data['device_id']) && ($auth || device_permitted($data['device_id']))) {
|
|
|
|
$device = device_by_id_cache($data['device_id']);
|
2010-08-01 14:37:36 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$title = generate_device_link($device);
|
|
|
|
$title .= ' :: BGP :: '.htmlentities($data['bgp_peerid']);
|
|
|
|
$auth = true;
|
|
|
|
}
|
2010-08-01 14:37:36 +00:00
|
|
|
}
|