Files

14 lines
424 B
PHP
Raw Permalink Normal View History

2010-08-01 14:37:36 +00:00
<?php
if (is_numeric($vars['id'])) {
2020-09-21 15:40:17 +02:00
$data = dbFetchRow('SELECT * FROM bgpPeers WHERE bgpPeer_id = ?', [$vars['id']]);
2010-08-01 14:37:36 +00: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
2020-09-21 15:40:17 +02:00
$title = generate_device_link($device);
$title .= ' :: BGP :: ' . htmlentities($data['bgp_peerid']);
$auth = true;
}
2010-08-01 14:37:36 +00:00
}