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.php"); echo("
"); $pos = strpos(strtolower($ifname), "vlan"); if( $pos !== false ) { $broke = yes; } $pos = strpos(strtolower($ifname), "loopback"); if( $pos !== false ) { $broke = yes; } if(mysql_result(mysql_query("SELECT COUNT(*) FROM `ports` WHERE `pagpGroupIfIndex` = '".$interface['ifIndex']."' and `device_id` = '".$device['device_id']."'"),0)) { $pagp = " | PAgP"; } echo("
"); print_optionbar_start(); echo ("Graphs | ARP Table$pagp"); if(mysql_result(mysql_query("SELECT count(*) FROM mac_accounting WHERE interface_id = '".$interface['interface_id']."'"),0) > "0"){ echo(" | Mac Accounting : Bits (Mini|Top10) | Packets (Mini)"); } if(mysql_result(mysql_query("SELECT COUNT(*) FROM juniAtmVp WHERE interface_id = '".$interface['interface_id']."'"),0) > "0"){ echo(" | ATM VPs :"); echo(" Bits"); echo(" | Packets"); echo(" | Cells"); echo(" | Errors"); } print_optionbar_end(); include("pages/device/port/".mres($_GET['optb']).".inc.php"); ?>