summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-04-29 21:34:16 -0700
committerArun Persaud <arun@nubati.net>2009-04-29 21:34:16 -0700
commit03d6cd5ba13a0aac918734c1f797df4f149d9194 (patch)
tree852592c3d2f189d283cb1106bc4e4f67949a05e7 /include/game.php
parent26bcd1e5b01ca8575b513e12ce7bdd302614273c (diff)
downloade-DoKo-03d6cd5ba13a0aac918734c1f797df4f149d9194.tar.gz
e-DoKo-03d6cd5ba13a0aac918734c1f797df4f149d9194.tar.bz2
e-DoKo-03d6cd5ba13a0aac918734c1f797df4f149d9194.zip
CLEANUP: all email now uses the standard header and footer
some email functions didn't use myemail, but used sendmail directly. This is now fixed and all emails should have the same header and footer.
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/include/game.php b/include/game.php
index 1dc4802..9c8c427 100644
--- a/include/game.php
+++ b/include/game.php
@@ -1798,12 +1798,8 @@ switch($mystatus)
$message .= "\nUse these links to have a look at game ".DB_format_gameid($gameid).": \n";
/* send out final email */
- $all = array();
-
foreach($userids as $user)
{
- $all[] = DB_get_email('userid',$user);
-
/* add links for all players */
$hash = DB_get_hash_from_gameid_and_userid($gameid,$user);
$name = DB_get_name('userid',$user);
@@ -1811,11 +1807,9 @@ switch($mystatus)
$link = "$name: ".$HOST.$INDEX."?action=game&me=".$hash."\n" ;
$message .= $link;
}
- $To = implode(",",$all);
-
$message .= "\n\n (you can use reply all on this email to reach all the players.)\n";
- $subject = $EmailName.' Game over (game '.DB_format_gameid($gameid).') ';
- sendmail($To,$subject,$message);
+ $subject = ' Game over (game '.DB_format_gameid($gameid).') ';
+ mymail($userids,$subject,$message);
}
}
else