Exemplo n.º 1
0
            }
            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";
Exemplo n.º 2
0
        ?>
><?php 
        echo CheckTCP($ip, '22', '');
        ?>
</td></tr>
<tr><th bgcolor=#<?php 
        echo $bg1;
        ?>
 width=120><a href=telnet://<?php 
        echo $ip;
        ?>
><img src=img/32/loko.png border=0></a><br>Telnet</th><td bgcolor=#<?php 
        echo $bga;
        ?>
><?php 
        echo CheckTCP($ip, '23', '\\n');
        ?>
</td></tr>
</table>
<?php 
    } else {
        echo "<h4>No IP!</h4>";
    }
    echo '</td></tr>';
    if ($d = rawurlencode($n[6]) and $if = rawurlencode($n[7])) {
        ?>
<tr><td align=center>
<h2>Current Interface Traffic (<?php 
        echo $rrdstep;
        ?>
s average)</h2>
Exemplo n.º 3
0
				TblCell( date($datfmt,$n[21]),"?in[]=osupdate&op[]==&st[]=$n[21]","nowrap bgcolor=\"#$o1c\"");
			}
			if(in_array("noduser",$col))	{TblCell($n[22],"?in[]=noduser&op[]==&st[]=$n[22]");}

			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{