Commit version 24.12.13800
This commit is contained in:
@ -4,9 +4,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage web
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage web
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -21,11 +21,10 @@ echo '<tr><th class="state-marker"></th><th></th><th>Port</th><th>AS</th><th>Pee
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
|
||||
foreach (dbFetchRows("SELECT * FROM `eigrp_ports` WHERE `device_id` = ? AND `eigrp_vpn` = ? AND `eigrp_as` = ?", array($device['device_id'], $vars['vpn'], $vars['asn'])) AS $eigrp_port)
|
||||
{
|
||||
foreach (dbFetchRows("SELECT * FROM `eigrp_ports` WHERE `device_id` = ? AND `eigrp_vpn` = ? AND `eigrp_as` = ?", [$device['device_id'], $vars['vpn'], $vars['asn']]) as $eigrp_port) {
|
||||
|
||||
$port = get_port_by_id($eigrp_port['port_id']);
|
||||
echo '<tr class="' . $port['row_class'] . '" onclick="openLink(\'' . generate_port_url($port) . '/\')" style="cursor: pointer;">
|
||||
$port = get_port_by_id($eigrp_port['port_id']);
|
||||
echo '<tr class="' . $port['row_class'] . '" onclick="openLink(\'' . generate_port_url($port) . '/\')" style="cursor: pointer;">
|
||||
|
||||
<td class="state-marker"></td>
|
||||
<td style="width: 1px;"></td>
|
||||
@ -37,20 +36,20 @@ foreach (dbFetchRows("SELECT * FROM `eigrp_ports` WHERE `device_id` = ? AND `eig
|
||||
<td>' . $eigrp_port['eigrp_authmode'] . '</td>
|
||||
</tr>';
|
||||
|
||||
if (get_var_true($vars['graphs'])) {
|
||||
echo '
|
||||
if (get_var_true($vars['graphs'])) {
|
||||
echo '
|
||||
<tr>
|
||||
<td class="state-marker"></td>
|
||||
<td colspan=6>';
|
||||
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $eigrp_port['eigrp_port_id'];
|
||||
$graph_array['type'] = 'eigrpport_packets';
|
||||
$graph_array['to'] = get_time();
|
||||
$graph_array['id'] = $eigrp_port['eigrp_port_id'];
|
||||
$graph_array['type'] = 'eigrpport_packets';
|
||||
|
||||
print_graph_row($graph_array);
|
||||
print_graph_row($graph_array);
|
||||
|
||||
echo '</td></tr>';
|
||||
}
|
||||
echo '</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '</tbody>';
|
||||
|
Reference in New Issue
Block a user