} if (in_array("lastseen", $col)) { $ls = date("j.M G:i:s", $n[5]); echo "<td bgcolor=#{$lc}>{$ls}</td>"; } if (in_array("ssh", $col)) { echo "<td><a href=ssh://{$ip}><img src=img/16/lokc.png border=0></a>\n"; echo CheckTCP($ip, '22', '') . "</td>"; } if (in_array("tel", $col)) { echo "<td><a href=telnet://{$ip}><img src=img/16/loko.png border=0></a>\n"; echo CheckTCP($ip, '23', '') . "</td>"; } if (in_array("www", $col)) { echo "<td><a href=http://{$ip} target=window><img src=img/16/glob.png border=0></a>\n"; echo CheckTCP($ip, '80', " \r\n\r\n") . "</td>"; } if (in_array("nbt", $col)) { echo "<td><img src=img/16/nwin.png>\n"; echo NbtStat($ip) . "</td>"; } echo "</tr>\n"; } @DbFreeResult($res); } else { print @DbError($link); } echo "</table><table bgcolor=#666666 cellspacing=1 cellpadding=8 border=0 width=100%>\n"; echo "<tr bgcolor=#{$bg2}><td>{$row} Nodes ({$query})</td></tr></table>\n"; } include_once "inc/footer.php";
flush(); if ($n[1]) { ?> <h2>Realtime Info</h2><p> <table bgcolor=#666666 <?php echo $tabtag; ?> > <tr><th bgcolor=#<?php echo $bg1; ?> width=120><img src=img/32/nwin.png><br>Netbios</th><td bgcolor=#<?php echo $bgb; ?> ><?php echo NbtStat($ip); ?> </td></tr> <tr><th bgcolor=#<?php echo $bg1; ?> width=120><a href=http://<?php echo $ip; ?> target=window><img src=img/32/glob.png border=0></a><br>HTTP</th><td bgcolor=#<?php echo $bga; ?> ><?php echo CheckTCP($ip, '80', " \r\n\r\n"); ?> </td></tr>
if( !isset($_GET['xls']) ){ if(in_array("sshNS",$col)){ echo "<td><a href=ssh://$ip><img src=\"img/16/lokc.png\"></a>\n"; echo (($wasup)?CheckTCP($ip,'22',''):"-") ."</td>"; } 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>