2007-04-03 14:10:23 +00:00
|
|
|
<?php
|
|
|
|
|
2007-04-08 14:34:19 +00:00
|
|
|
$daily_traffic = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$day&to=$now&width=215&height=100";
|
2009-04-23 21:13:56 +00:00
|
|
|
$daily_traffic .= $args;
|
2007-04-08 14:34:19 +00:00
|
|
|
$daily_url = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$day&to=$now&width=400&height=150";
|
2009-04-23 21:13:56 +00:00
|
|
|
$daily_url .= $args;
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2007-04-08 14:34:19 +00:00
|
|
|
$weekly_traffic = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$week&to=$now&width=215&height=100";
|
2009-04-23 21:13:56 +00:00
|
|
|
$weekly_traffic .= $args;
|
2007-04-08 14:34:19 +00:00
|
|
|
$weekly_url = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$week&to=$now&width=400&height=150";
|
2009-04-23 21:13:56 +00:00
|
|
|
$weekly_url .= $args;
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2007-04-08 14:34:19 +00:00
|
|
|
$monthly_traffic = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$month&to=$now&width=215&height=100";
|
2009-04-23 21:13:56 +00:00
|
|
|
$monthly_traffic .= $args;
|
2007-04-08 14:34:19 +00:00
|
|
|
$monthly_url = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$month&to=$now&width=400&height=150";
|
2009-04-23 21:13:56 +00:00
|
|
|
$monthly_url .= $args;
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2007-04-08 14:34:19 +00:00
|
|
|
$yearly_traffic = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$year&to=$now&width=215&height=100";
|
2009-04-23 21:13:56 +00:00
|
|
|
$yearly_traffic .= $args;
|
|
|
|
$yearly_url = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$year&to=$now&width=400&height=150";
|
|
|
|
$yearly_url .= $args;
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2007-11-21 14:26:24 +00:00
|
|
|
echo("<a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
|
2007-04-03 14:10:23 +00:00
|
|
|
<img src='$daily_traffic' border=0></a> ");
|
2007-11-21 14:26:24 +00:00
|
|
|
echo("<a onmouseover=\"return overlib('<img src=\'$weekly_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
|
2007-04-03 14:10:23 +00:00
|
|
|
<img src='$weekly_traffic' border=0></a> ");
|
2007-11-21 14:26:24 +00:00
|
|
|
echo("<a onmouseover=\"return overlib('<img src=\'$monthly_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
|
2007-04-03 14:10:23 +00:00
|
|
|
<img src='$monthly_traffic' border=0></a> ");
|
2007-11-21 14:26:24 +00:00
|
|
|
echo("<a onmouseover=\"return overlib('<img src=\'$yearly_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
|
2007-04-03 14:10:23 +00:00
|
|
|
<img src='$yearly_traffic' border=0></a>");
|
|
|
|
|
|
|
|
?>
|
|
|
|
|