<?php

  // This script outputs the amount of currently connected player

  // The format is suitable for MRTG

require 'lib_common.php';

$sql='SELECT COUNT(*) FROM session';

$rs = mysql_query($sql, $poker_lnk) or
  die('Fichier : '.__FILE__.', ligne : '.__LINE__.
      ', '.mysql_errno($poker_lnk).':'.mysql_error($poker_lnk));

list($count) = mysql_fetch_row($rs);
echo "$count\n0\n";

?>
