[quick question]

Newbie Spellweaver
Joined
Aug 17, 2007
Messages
56
Reaction score
0
i edited the ip wat else do i edit? highlight the stuff and tell me wat to put..
:construct:construct

echo "<br><B>Server Status:</B> ";
?>
<br>

<style type="text/css">
<!--
body
{


}
.style1 {
color: #FFFFFF;
font-weight: bold;
}
.OFFLINE
{
color: #FF0000;
}
.ONLINE
{
color: #00FF00;
}
-->
</style>
</head>
<body onselectstart="return false;" oncontextmenu="return false;">
<?PHP
$_host_name = '12.175.44.159';
$_servers = Array(
'Match' => 6000,
'Clan' => 6010,
'Quest' => 6025
);

foreach($_servers as $_servername => $_port)
{
$_connection = @fsockopen($_host_name, $_port, $errno, $errstr, 0.003);
if(!$_connection)
{
$_status = '<span class="OFFLINE">offline</span>';
}
else
{
$_status = '<span class="ONLINE">online</span>';
}
print '<span class="style1">';
print $_servername . ' - ' . $_status . '<br />';
print '</style>';
}
 
Back