X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fnewgame.php;h=6dbbd5170a47dc219f8c80ca25b305bb3b4fb03c;hp=f06bebe65d5e82b1028764fb03136080f7bab056;hb=0b5b9bc1e0f67e7405d2b33da3a37d28e8325d7e;hpb=c581cd05476d07f0fd17dab41cbb211a443fd57f diff --git a/include/newgame.php b/include/newgame.php index f06bebe..6dbbd51 100644 --- a/include/newgame.php +++ b/include/newgame.php @@ -42,6 +42,7 @@ else if( !myisset("PlayerA", "PlayerB","PlayerC","PlayerD","dullen","schweinchen","callrule","lowtrump" )) { + display_user_menu($myid); /* only get players that want to be in new games */ $names = DB_get_all_user_names_open_for_games(); @@ -56,7 +57,6 @@ else output_form_for_new_game($names); echo "\n"; - display_user_menu($myid); } else { @@ -191,8 +191,7 @@ else /* send out email, TODO: check for error with email */ $message = "You are invited to play a game of DoKo.\n". - "Please, place comments and bug reports here:\n". - "http://wiki.nubati.net/index.php?title=EmailDoko\n\n". + "Please, place comments and bug reports here:\n$WIKI\n\n". "The whole round would consist of the following players:\n". "$PlayerA\n". "$PlayerB\n". @@ -201,11 +200,10 @@ else "If you want to join this game, please follow this link:\n". "".$HOST.$INDEX."?action=game&me="; - $subject = 'You are invited to a game of DoKo (game '.DB_format_gameid($gameid).')'; - mymail($useridA,$subject, $message.$hashA."\n\n"); - mymail($useridB,$subject, $message.$hashB."\n\n"); - mymail($useridC,$subject, $message.$hashC."\n\n"); - mymail($useridD,$subject, $message.$hashD."\n\n"); + mymail($useridA, $gameid, GAME_NEW, $message.$hashA."\n\n"); + mymail($useridB, $gameid, GAME_NEW, $message.$hashB."\n\n"); + mymail($useridC, $gameid, GAME_NEW, $message.$hashC."\n\n"); + mymail($useridD, $gameid, GAME_NEW, $message.$hashD."\n\n"); echo "
You started a new game. The emails have been sent out!
\n"; display_user_menu($myid);