summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-06-23 19:19:41 +0200
committerArun Persaud <arun@nubati.net>2007-06-23 19:19:41 +0200
commite7748e94add02ab4530a3d75276bb942430d35f4 (patch)
tree38cee8c81780d5f915ee2869b1242c248a470d72
parent1f6dbb2039311c94e7932fac52626442d215d2b5 (diff)
downloade-DoKo-e7748e94add02ab4530a3d75276bb942430d35f4.tar.gz
e-DoKo-e7748e94add02ab4530a3d75276bb942430d35f4.tar.bz2
e-DoKo-e7748e94add02ab4530a3d75276bb942430d35f4.zip
BUGFIX: typo for emails at the end of game; able to set return address
used php.ini to set the return address for emails. fixed typo in variable that prevented sending of emails at the end of the game
-rw-r--r--index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index aec7c7d..0b9cfb4 100644
--- a/index.php
+++ b/index.php
@@ -9,6 +9,10 @@ include_once("functions.php"); /* the rest */
/* check if some variables are set in the config file, else set defaults */
if(!isset($EmailName))
$EmailName="[DoKo] ";
+if(isset($EMAIL_REPLY))
+ {
+ ini_set("sendmail_from",$EMAIL_REPLY);
+ }
/* in case work has to be done on the database or other section we can
* shut down the server and tell people to come back later
@@ -1412,7 +1416,7 @@ else if(myisset("me"))
foreach($userids as $user)
$all[] = DB_get_email_by_userid($user);
- $TO = implode(",",$all);
+ $To = implode(",",$all);
$help = "\n\n (you can use reply all on this email to reach all the players.)\n";
mymail($To,$EmailName."game over (game $gameid) part 1(2)",$message.$help);