50 lines
2.9 KiB
PHP
50 lines
2.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Observium Network Management and Monitoring System
|
|
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
|
|
*
|
|
* @package observium
|
|
* @subpackage webui
|
|
* @author Adam Armstrong <adama@observium.org>
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
return; // PAGP removed
|
|
|
|
|
|
// FIXME functions!
|
|
|
|
if (!$graph_type) {
|
|
$graph_type = "pagp_bits";
|
|
}
|
|
|
|
$daily_traffic = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('day') . "&to=" . get_time('now') . "&width=215&height=100";
|
|
$daily_url = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('day') . "&to=" . get_time('now') . "&width=500&height=150";
|
|
|
|
$weekly_traffic = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('week') . "&to=" . get_time('now') . "&width=215&height=100";
|
|
$weekly_url = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('week') . "&to=" . get_time('now') . "&width=500&height=150";
|
|
|
|
$monthly_traffic = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('month') . "&to=" . get_time('now') . "&width=215&height=100";
|
|
$monthly_url = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('month') . "&to=" . get_time('now') . "&width=500&height=150";
|
|
|
|
$yearly_traffic = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('yearh') . "&to=" . get_time('now') . "&width=215&height=100";
|
|
$yearly_url = "graph.php?port=" . $port['port_id'] . "&type=$graph_type&from=" . get_time('yearh') . "&to=" . get_time('now') . "&width=500&height=150";
|
|
|
|
echo("<a href='#' onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT" . $config['overlib_defaults'] . ");\" onmouseout=\"return nd();\">
|
|
<img src='$daily_traffic' border=0></a> ");
|
|
echo("<a href='#' onmouseover=\"return overlib('<img src=\'$weekly_url\'>', LEFT" . $config['overlib_defaults'] . ");\" onmouseout=\"return nd();\">
|
|
<img src='$weekly_traffic' border=0></a> ");
|
|
echo("<a href='#' onmouseover=\"return overlib('<img src=\'$monthly_url\'>', LEFT" . $config['overlib_defaults'] . ", WIDTH, 350);\" onmouseout=\"return nd();\">
|
|
<img src='$monthly_traffic' border=0></a> ");
|
|
echo("<a href='#' onmouseover=\"return overlib('<img src=\'$yearly_url\'>', LEFT" . $config['overlib_defaults'] . ", WIDTH, 350);\" onmouseout=\"return nd();\">
|
|
<img src='$yearly_traffic' border=0></a>");
|
|
|
|
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `pagpGroupIfIndex` = ? and `device_id` = ?", [$port['ifIndex'], $device['device_id']]) as $member) {
|
|
echo("$br<img src='images/16/brick_link.png' align=absmiddle> <strong>" . generate_port_link($member) . " (PAgP)</strong>");
|
|
$br = "<br />";
|
|
}
|
|
|
|
// EOF
|