- if($ok)
- {
- /* all done, send out email unless this player is the startplayer */
- $startplayer = DB_get_startplayer_by_gameid($gameid);
- if($mypos == $startplayer)
- {
- /* do nothing, go to next stage */
- }
- else
- {
- /* email startplayer */
- /*
- $hash = DB_get_hash_from_game_and_pos($gameid,$startplayer);
- $who = DB_get_userid('hash',$hash);
- DB_set_player_by_gameid($gameid,$who);
-
- $message = "It's your turn now in game ".DB_format_gameid($gameid).".\n".
- "Use this link to go the game: ".$HOST.$INDEX."?action=game&me=".$hash."\n\n" ;
- mymail($who, $gameid, GAME_READY,$message);
- */
- }
- }