summaryrefslogtreecommitdiffstats
path: root/include/reminder.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2009-02-13 23:40:26 -0800
committerArun Persaud <arun@nubati.net>2009-02-23 21:32:21 -0800
commitd661e260855977d34672388cfa8766de55a73f93 (patch)
tree4cf71a8f98d37a2adcf5d4cd97d06536eb86467b /include/reminder.php
parentf7e3acc9f015115707b7b6d59d8ebdb2522b9d0d (diff)
downloade-DoKo-d661e260855977d34672388cfa8766de55a73f93.tar.gz
e-DoKo-d661e260855977d34672388cfa8766de55a73f93.tar.bz2
e-DoKo-d661e260855977d34672388cfa8766de55a73f93.zip
CLEANUP: make emails more uniform
provide a standard header and footer. Also prepare for emails to be send to the database for later delivery.
Diffstat (limited to 'include/reminder.php')
-rw-r--r--include/reminder.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/reminder.php b/include/reminder.php
index 9c297cd..61bd37b 100644
--- a/include/reminder.php
+++ b/include/reminder.php
@@ -33,7 +33,6 @@ $r = DB_query_array("SELECT mod_date,player,status from Game WHERE id='$gameid'
if( (time()-strtotime($r[0]) > 60*60*24*7) && ($r[2]!='gameover') ) /* = 1 week */
{
$name = DB_get_name('userid',$r[1]);
- $To = DB_get_email('userid',$r[1]);
$userhash = DB_get_hash_from_gameid_and_userid($gameid,$r[1]);
$message = "Hello $name, \n\n".
@@ -50,12 +49,13 @@ if( (time()-strtotime($r[0]) > 60*60*24*7) && ($r[2]!='gameover') ) /* = 1 week
else
{
DB_set_reminder($r[1],$gameid);
- mymail($To,$EmailName."Reminder: game ".DB_format_gameid($gameid)." it's your turn",$message);
+ $subject ='Reminder: game '.DB_format_gameid($gameid)." it's your turn";
+ mymail($r[1],$subject,$message);
echo "<p style=\"background-color:red\";>Game ".DB_format_gameid($gameid).
": an email has been sent out.<br /><br /></p>";
}
}
else
- echo "<p>You need to wait longer before you can send out a reminder...</p>\n";
+ echo '<p>You need to wait longer before you can send out a reminder...</p>\n';
?> \ No newline at end of file