mymail($EmailA,"You are invited to a game of DoKo","Hello $PlayerA,\n".$message.$hashA);
mymail($EmailB,"You are invited to a game of DoKo","Hello $PlayerB,\n".$message.$hashB);
mymail($EmailC,"You are invited to a game of DoKo","Hello $PlayerC,\n".$message.$hashC);
mymail($EmailD,"You are invited to a game of DoKo","Hello $PlayerD,\n".$message.$hashD);
mymail($EmailA,"You are invited to a game of DoKo","Hello $PlayerA,\n".$message.$hashA);
mymail($EmailB,"You are invited to a game of DoKo","Hello $PlayerB,\n".$message.$hashB);
mymail($EmailC,"You are invited to a game of DoKo","Hello $PlayerC,\n".$message.$hashC);
mymail($EmailD,"You are invited to a game of DoKo","Hello $PlayerD,\n".$message.$hashD);
} /* end set up a new game */
/* cancle a game, if nothing has happend in the last N minutes */
else if(myisset("cancle","me"))
{
} /* end set up a new game */
/* cancle a game, if nothing has happend in the last N minutes */
else if(myisset("cancle","me"))
{
/* send out a reminder */
else if(myisset("remind","me"))
{
/* send out a reminder */
else if(myisset("remind","me"))
{
"It's your turn in game ".DB_format_gameid($gameid)." \n".
"Actually everyone else is waiting for you for more than a week now ;)\n\n".
"Please visit this link now to continue: \n".
"It's your turn in game ".DB_format_gameid($gameid)." \n".
"Actually everyone else is waiting for you for more than a week now ;)\n\n".
"Please visit this link now to continue: \n".
- echo " Ok, done with checking, please go to the <a href=\"$host?me=$me\">next step of the setup</a>.</p>";
+ echo " Ok, done with checking, please go to the <a href=\"$INDEX?me=$me\">next step of the setup</a>.</p>";
/* move on to the next stage*/
DB_set_hand_status_by_hash($me,'poverty');
/* move on to the next stage*/
DB_set_hand_status_by_hash($me,'poverty');
{
$message = "Everyone finish the questionary in game ".DB_format_gameid($gameid).", ".
"please visit this link now to continue: \n".
{
$message = "Everyone finish the questionary in game ".DB_format_gameid($gameid).", ".
"please visit this link now to continue: \n".
DB_set_party_by_hash($me,"contra");
echo "Whoever will make the first trick will be on the re team. <br />\n";
DB_set_party_by_hash($me,"contra");
echo "Whoever will make the first trick will be on the re team. <br />\n";
DB_set_player_by_gameid($gameid,$who);
$message = "Someone has poverty, it's your turn to decide, if you want to take the trump. Please visit:".
DB_set_player_by_gameid($gameid,$who);
$message = "Someone has poverty, it's your turn to decide, if you want to take the trump. Please visit:".
$message = "Someone has poverty, it's your turn to decide, ".
"if you want to take the trump. Please visit:".
$message = "Someone has poverty, it's your turn to decide, ".
"if you want to take the trump. Please visit:".
mymail($email,$EmailName."ready, set, go... (game ".DB_format_gameid($gameid).") ",$message);
}
else
mymail($email,$EmailName."ready, set, go... (game ".DB_format_gameid($gameid).") ",$message);
}
else
$r = mysql_fetch_array($result,MYSQL_NUM);
$gameend = time() - strtotime($r[0]);
$r = mysql_fetch_array($result,MYSQL_NUM);
$gameend = time() - strtotime($r[0]);
- /* handel comments in case player didn't play a card, allow comments a week after the end of the game */ if( (!myisset("card") && $mystatus=='play') || ($mystatus=='gameover' && ($gameend < 60*60*24*7)) )
+ /* handel comments in case player didn't play a card, allow comments a week after the end of the game */
+ if( (!myisset("card") && $mystatus=='play') || ($mystatus=='gameover' && ($gameend < 60*60*24*7)) )
if( DB_get_email_pref_by_uid($who)!="emailaddict" )
mymail($email,$EmailName."a card has been played in game ".DB_format_gameid($gameid),$message);
}
if( DB_get_email_pref_by_uid($who)!="emailaddict" )
mymail($email,$EmailName."a card has been played in game ".DB_format_gameid($gameid),$message);
}
$To = DB_get_email_by_userid($user);
$hash = DB_get_hash_from_gameid_and_userid($gameid,$user);
$To = DB_get_email_by_userid($user);
$hash = DB_get_hash_from_gameid_and_userid($gameid,$user);
if( DB_get_email_pref_by_uid($user) != "emailaddict" )
mymail($To,$EmailName."game over (game ".DB_format_gameid($gameid).") part 2(2)",$link);
}
if( DB_get_email_pref_by_uid($user) != "emailaddict" )
mymail($To,$EmailName."game over (game ".DB_format_gameid($gameid).") part 2(2)",$link);
}
echo "N.B. You tried this already $number times during the last day and it will only work ".
" 5 times during a day.<br />";
echo "The new password will be valid for one day, make sure you reset it to something else.<br />";
echo "N.B. You tried this already $number times during the last day and it will only work ".
" 5 times during a day.<br />";
echo "The new password will be valid for one day, make sure you reset it to something else.<br />";
{
echo "Sorry you already tried 5 times during the last 24h.<br />".
"You need to use one of those passwords or wait to get a new one.<br />";
{
echo "Sorry you already tried 5 times during the last 24h.<br />".
"You need to use one of those passwords or wait to get a new one.<br />";
else
echo "Couldn't find a player with this email! <br />".
"Please contact Arun, if you think this is a mistake <br />".
else
echo "Couldn't find a player with this email! <br />".
"Please contact Arun, if you think this is a mistake <br />".
if(DB_get_reminder($r[3],$gameid)==0)
if(time()-strtotime($r[2]) > 60*60*24*7)
echo "".
if(DB_get_reminder($r[3],$gameid)==0)
if(time()-strtotime($r[2]) > 60*60*24*7)
echo "".