Disabled"; } if ($interface['ifAdminStatus'] == "up" && $interface['ifOperStatus'] == "down") { $status = "Enabled / Disconnected"; } if ($interface['ifAdminStatus'] == "up" && $interface['ifOperStatus'] == "up") { $status = "Enabled / Connected"; } $i = 1; $inf = fixifName($ifname); $bg="#ffffff"; $show_all = 1; echo("
"); include("includes/print-interface.inc"); echo("
"); $pos = strpos(strtolower($ifname), "vlan"); if( $pos !== false ) { $broke = yes; } $pos = strpos(strtolower($ifname), "loopback"); if( $pos !== false ) { $broke = yes; } echo("
"); echo("
Graphs | ARP Table"); if(mysql_result(mysql_query("SELECT count(*) FROM mac_accounting WHERE interface_id = '".$interface['interface_id']."'"),0)){ echo(" | Mac Accounting : Bits (Mini|Top10) | Packets (Mini)"); } echo("
"); if($_GET['optb']) { include("pages/device/port/".mres($_GET['optb']).".php"); } else { if(file_exists("rrd/" . $hostname . "/". $ifIndex . ".rrd")) { $iid = $id; echo("
Interface Traffic
"); $graph_type = "bits"; include("includes/print-interface-graphs.php"); echo("
Interface Packets
"); $graph_type = "pkts"; include("includes/print-interface-graphs.php"); echo("
Interface Non Unicast
"); $graph_type = "nupkts"; include("includes/print-interface-graphs.php"); echo("
Interface Errors
"); $graph_type = "errors"; include("includes/print-interface-graphs.php"); } } ?>