else{$pst = "<img src=\"img/16/bcls.png\" title=\"broken\">";} $ui = urlencode($ifn[$ix]); list($ifimg,$iftit) = Iftype($ift[$ix]); TblRow($bg); echo "<th class=\"$ifstat\" width=\"20\"><img src=\"img/$ifimg\" title=\"$ix - $iftit\"></th>\n"; echo "<th class=\"$bi\" width=\"20\">$pst $sten $rpimg</th><td>\n"; if($ifstat == "good" and $guiauth != 'none' and !isset($_GET['print'])){ echo "<div style=\"font-weight: bold\" class=\"blu\" title=\"$rltlbl $trflbl\" onclick=\"window.open('inc/rt-popup.php?d=$debug&ip=$ip&v=$rv&c=$rc&i=$ix&t=$ud&in=$ui','$ip_$ix','scrollbars=0,menubar=0,resizable=1,width=600,height=400')\">$ifn[$ix]</div></td>\n"; }else{ echo "<b>$ifn[$ix]</b></td>\n"; } echo "<td align=\"right\">$pcost[$po]</td><td align=\"right\">".DecFix($ifs[$ix])."</td><td>$ifi[$ix]</td>\n"; if($shg){ echo "<td nowrap align=\"center\">\n"; IfGraphs($ud, $ui, $ifs[$i], ($_SESSION['gsiz'] == 4)?2:1 ); echo "</td>"; } echo "</tr>\n"; } ?> </table> <table class="content"> <tr class="<?= $modgroup[$self] ?>2"><td><?= $row ?> Interfaces</td></tr> </table> <?php } include_once ("inc/footer.php"); ?>
} if (in_array("macflood", $col)) { TblCell($if[31]); } if (in_array("poNS", $col) and !isset($_GET['xls'])) { $pop = NodPop(array('device', 'ifname'), array('=', '='), array($if[0], $if[1]), array('AND')); if ($pop) { echo "<td nowrap>" . Bar($pop, 24, 'mi') . " <a href=Nodes-List.php?in[]=device&op[]==&st[]={$ud}&in[]=ifname&op[]==&st[]={$if['1']}&co[]=AND\">{$pop}</td>"; } else { TblCell(); } DbFreeResult($np); } if (in_array("gfNS", $col) and !isset($_GET['xls'])) { echo "<td nowrap align=\"center\">\n"; IfGraphs($ud, $ui, $if[9], $_SESSION['gsiz']); echo "</td>\n"; } if (in_array("rdrNS", $col) and !isset($_GET['xls'])) { echo "<td nowrap align=\"center\">\n"; IfRadar("rt{$row}", $_SESSION['gsiz'], '248', $if[12], $if[14], $if[13], $if[15], $if[20], $if[21], $if[24]); IfRadar("rl{$row}", $_SESSION['gsiz'], '284', $if[16], $if[18], $if[17], $if[19], $if[22], $if[23], $if[25]); echo "</td>\n"; } echo "</tr>\n"; } DbFreeResult($res); } else { print DbError($link); } ?>
if($niflog[$in]){ $bnl = sprintf("%02x","40" + $off); echo "<td bgcolor=\"#$bg3$bg3$bnl\" title=\"$niflog[$in]\" nowrap>"; }else{ echo "<td nowrap>"; } if($ncount[$in]){ echo Bar($ncount[$in],8,'mi') . " <a href=Nodes-List.php?in[]=device&op[]==&st[]=$ud&co[]=AND&in[]=ifname&op[]==&st[]=$ui title=\"Nodes-List\">$ncount[$in]</a>\n"; } echo "</td>\n"; } if($shg and $_SESSION['gsiz']){ echo "<td nowrap align=\"center\">\n"; IfGraphs($ud, $ui, $ifs[$i], $_SESSION['gsiz']); echo "</td>\n"; }else{ if ($ino[$i] > 70){ # Ignore the first 70 bytes... $rio[$i] = ($ifs[$i])?round($dio[$i] / $ifs[$i] / $rrdstep * 800,1):0; $bio = "title=\"$rio[$i]%\" bgcolor=\"#".(($rio[$i] > $trfa)?sprintf("%02x","40" + $off):$bg3)."$bg3".sprintf("%02x","40" + $off)."\""; if ($die[$i]){ $ier = $die[$i] * $die[$i] * 8/(($dio[$i])?$dio[$i]:1); if ($ier > 55){$ier = 55;} $bie = "bgcolor=\"#".sprintf("%02x", $ier+$off)."$bg3$bg3\""; } } if ($oto[$i] > 70){ # ...cauz some devs don't default to 0! $roo[$i] = ($ifs[$i])?round($doo[$i] / $ifs[$i] / $rrdstep * 800,1):0; $boo = "title=\"$roo[$i]%\" bgcolor=\"#".(($roo[$i] > $trfa)?sprintf("%02x","40" + $off):$bg3)."$bg3".sprintf("%02x","40" + $off)."\"";
} if(in_array("telNS",$col)){ echo "<td><a href=telnet://$ip><img src=\"img/16/loko.png\"></a>\n"; echo (($wasup)?CheckTCP($ip,'23',''):"-") ."</td>"; } if(in_array("wwwNS",$col)){ echo "<td><a href=http://$ip target=window><img src=\"img/16/glob.png\"></a>\n"; echo (($wasup)?CheckTCP($ip,'80',"GET / HTTP/1.0\r\n\r\n"):"-") ."</td>"; } if(in_array("nbtNS",$col)){ echo "<td><img src=\"img/16/nwin.png\">\n"; echo (($wasup)?NbtStat($ip):"-") ."</td>"; } if( in_array("gfNS",$col) ){ echo "<td nowrap align=\"center\">\n"; IfGraphs($ud, $ui, $n[30],($_SESSION['gsiz'] == 4)?2:1 ); echo "</td>\n"; } } echo "</tr>\n"; } DbFreeResult($res); }else{ print DbError($link); } ?> </table> <table class="content" > <tr class="<?= $modgroup[$self] ?>2"><td><?= $row ?> Nodes<?= ($ord)?", $srtlbl: $ord":"" ?><?= ($lim)?", $limlbl: $lim":"" ?></td></tr> </table> <?php