E-DoKo FeedKnow when it is your turn
\n";
echo "\n";
$date = DB_query_array("Select create_date from User order by create_date ASC limit 1");
$date = $date[0];
$timestamp = strtotime($date);
echo "tag:".$_SERVER['SERVER_NAME'].",".date("Y-m-d",$timestamp).":$INDEX\n";
echo "".date(DATE_ATOM)."\n";
echo "\n";
echo "$ADMIN_NAME $date $timestamp\n";
echo "$ADMIN_EMAIL\n";
echo "\n\n";
/* output the entries */
$result = DB_query("SELECT Hand.hash,Hand.game_id,Game.player from Hand".
" LEFT JOIN Game On Hand.game_id=Game.id".
" WHERE Hand.user_id='$id'".
" AND ( Game.player='$id' OR ISNULL(Game.player) )".
" AND ( Game.status='pre' OR Game.status='play' )".
" ORDER BY Game.session" );
while( $r = DB_fetch_array($result))
{
echo "\n";
echo "game ".DB_format_gameid($r[1])."\n";
$url=$INDEX."?action=game&me=".$r[0];
echo "\n";
$date = DB_get_game_timestamp($r[1]);
$timestamp = strtotime($date);
$date = date("Y-m-d",$timestamp);
echo "tag:doko.nubati.net,$date:$url\n";
echo "".date(DATE_ATOM,$timestamp)."\n";
echo "Please use the link to access the game.\n";
echo "\n\n";
}
?>