";
DB_set_hand_status_by_hash($me,'start');
}
else
@@ -439,12 +439,12 @@ else if(myisset("me"))
* unless a user tries to cheat ;)
* can also happen if user reloads the page!
*/
- echo "
";
DB_set_hand_status_by_hash($me,'init');
}
else
{
- echo "Processing what you selected in the last step... ";
+ echo "
Processing what you selected in the last step...";
/* check if this sickness needs to be handled first */
$gametype = DB_get_gametype_by_gameid($gameid);
@@ -490,7 +490,7 @@ else if(myisset("me"))
DB_set_sickness_by_hash($me,"nines");
}
- echo " Ok, done with checking, please go to the next step of the setup. ";
+ echo " Ok, done with checking, please go to the next step of the setup.
";
/* move on to the next stage*/
DB_set_hand_status_by_hash($me,'poverty');
@@ -515,8 +515,7 @@ else if(myisset("me"))
foreach($userids as $user)
{
$To = DB_get_email_by_userid($user);
- $userhash = DB_get_hash_from_gameid_and_userid($gameid,$user);
- if($userhash != $me)
+ $userhash = DB_get_hash_from_gameid_and_userid($gameid,$user); if($userhash != $me)
{
$message = "Everyone finish the questionary in game ".DB_format_gameid($gameid).", ".
"please visit this link now to continue: \n".
@@ -535,7 +534,8 @@ else if(myisset("me"))
* set that one in the Game table
* tell people about it.
*/
- echo " Checking if someone else selected solo, nines, wedding or poverty. ";
+ echo "
\n";
+ echo "
Checking if someone else selected solo, nines, wedding or poverty.
";
/* check if everyone has reached this stage */
$userids = DB_get_all_userid_by_gameid($gameid);
@@ -809,11 +809,11 @@ else if(myisset("me"))
$result = mysql_query("UPDATE Hand_Card SET hand_id='$myhand' WHERE hand_id='$userhand' AND card_id<'27'" );
/* add hidden button with trump in it to get to the next point */
- echo "
\n";
+ echo "
\n";
echo " \n";
echo " \n";
echo " \n";
- echo "
\n";
+ echo "
\n";
}
else if(myisset("trump","exchange") && $_REQUEST["trump"]>0 && ($who==$mypos || $who==$mypos*10))
{
@@ -914,7 +914,7 @@ else if(myisset("me"))
else
{
/* else show all trump, have lowest card pre-selected, have hidden setting for */
- echo "
\n";
break;
case 'play':
case 'gameover':
@@ -1056,8 +1057,8 @@ else if(myisset("me"))
/* has the game started? No, then just wait here...*/
if($gamestatus == 'pre')
{
- echo "You finished the setup, but not everyone else finished it... ".
- "so you need to wait for the others. Just wait for the an email... ";
+ echo "
You finished the setup, but not everyone else finished it... ".
+ "so you need to wait for the others. Just wait for the an email...
";
break; /* not sure this works... the idea is that you can
* only play a card after everyone is ready to play */
}