include green1.gif picture from dreamhost
[e-DoKo.git] / include / newgame.php
index f06bebe65d5e82b1028764fb03136080f7bab056..68e0d155cd2743aae0e976b19a9f758e0c2522de 100644 (file)
@@ -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 "<div class=\"message\">You started a new game. The emails have been sent out!</div>\n";
         display_user_menu($myid);