=1) { $check_login_server=”ON“; } else { $check_login_server=”OFF“; }
$link = mssql_connect($mssql_addr2,$mssql_user,$mssql_pass) or die (‘Could not connect: ‘ . mssql_get_last_message());
mssql_select_db($mssql_db2) or die(“Cannot select DB”);
$result = mssql_query(sprintf(SELECT_COUNT_ACCOUNT));
$accounts = mssql_fetch_array($result);
$accounts = $accounts[0];
mssql_close($link);
$link = mssql_connect($mssql_addr2,$mssql_user,$mssql_pass) or die (‘Could not connect: ‘ . mssql_get_last_message());
mssql_select_db($mssql_db) or die(“Cannot select DB”);
$result = mssql_query(“SELECT count(*) FROM user_data with (nolock) WHERE login>logout”);
$online = mssql_fetch_row($result);
$online = round($online[0]*3);
mssql_close($link);
echo $txt['gamesrv2'].$check_login_server.”
“;
echo $txt['online'].’‘.$online.’
‘;
?>