define( 'SQ_SERVER_ADDR', 'tf.animuservers.ru' );
define( 'SQ_SERVER_PORT', 27015 );
define( 'SQ_TIMEOUT', 1 );
define( 'SQ_ENGINE', SourceQuery :: SOURCE );
// Edit this <-
$Timer = MicroTime( True );
$Query = new SourceQuery( );
$Info = Array( );
$Rules = Array( );
$Players = Array( );
try
{
$Query->Connect( SQ_SERVER_ADDR, SQ_SERVER_PORT, SQ_TIMEOUT, SQ_ENGINE );
$Info = $Query->GetInfo( );
$Players = $Query->GetPlayers( );
$Rules = $Query->GetRules( );
}
catch( SourceQueryException $e )
{
$Error = $e->getMessage( );
}
$Query->Disconnect( );
?>
Source Query PHP Class
Exception:
Server info |
$InfoValue ): ?>
|
";
print_r( $InfoValue );
echo "";
}
else
{
echo htmlspecialchars( $InfoValue );
}
?> |
Players |
|
No players in da house! |