[quick question]

Results 1 to 1 of 1
  1. #1
    Member stephensking is offline
    MemberRank
    Aug 2007 Join Date
    *******Location
    69Posts

    [quick question]

    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>';
    }





Advertisement