diff options
author | arun <arun@nubati.net> | 2007-02-03 03:53:40 +0000 |
---|---|---|
committer | arun <arun> | 2007-02-03 03:53:40 +0000 |
commit | 4debc08c04fc66d59a04eab5fb10bbdb31ddece0 (patch) | |
tree | e3371b3851b575f504ca7cef6c9b8c6156a96e17 /index.php | |
parent | 686b0be45302319f7f30d38d129cee68ebfc12bf (diff) | |
download | e-DoKo-4debc08c04fc66d59a04eab5fb10bbdb31ddece0.tar.gz e-DoKo-4debc08c04fc66d59a04eab5fb10bbdb31ddece0.tar.bz2 e-DoKo-4debc08c04fc66d59a04eab5fb10bbdb31ddece0.zip |
added a uniform list name for emails
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -9,6 +9,10 @@ include_once("output.php"); /* html output only */ include_once("db.php"); /* database only */ 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(0) { output_header(); @@ -173,7 +177,7 @@ else if(myisset("me")) foreach($userids as $user) { $To = DB_get_email_by_userid($user); - mymail($To,"[DoKo] game cancled",$message); + mymail($To,$EmailName."game cancled",$message); } /* delete everything from the dB */ @@ -304,7 +308,7 @@ else if(myisset("me")) foreach($userids as $user) { $To = DB_get_email_by_userid($user); - mymail($To,"[DoKo] game cancled",$message); + mymail($To,$EmailName."game cancled",$message); } /* delete everything from the dB */ @@ -614,7 +618,7 @@ else if(myisset("me")) foreach($userids as $user) { $To = DB_get_email_by_userid($user); - mymail($To,"[DoKo] game over",$message); + mymail($To,$EmailName."game over",$message); } } @@ -657,7 +661,7 @@ else if(myisset("me")) $message = "It's your turn now.\n". "Use this link to play a card: ".$host."?me=".$next_hash."\n\n" ; - mymail($email,"[DoKo-debug] a card has been played",$message); + mymail($email,$EmailName."a card has been played",$message); if($debug) echo "DEBUG:<a href=\"index.php?me=".DB_get_hash_from_game_and_pos($gameid,$next). |