+ /* first check if the game has been canceled and display */
+ switch($gamestatus)
+ {
+ case 'cancel-noplay':
+ echo "<div class=\"message\"><p>The game has been canceled due to the request of one player.</p><p>If this was a mistake all 4 players need to send an Email to $ADMIN_NAME at $ADMIN_EMAIL requesting that the game should be restarted.</p></div>";
+ break;
+ case 'cancel-timedout':
+ echo "<div class=\"message\"><p>The game has been canceled because one player wasn't responding.</p><p>If this was a mistake all 4 players need to send an Email to $ADMIN_NAME at $ADMIN_EMAIL requesting that the game should be restarted.</p></div>";
+ break;
+ case 'cancel-nines':
+ case 'cancel-timedout':
+ echo "<div class=\"message\"><p>The game has been canceled because one player had too many nines.</p></div>";
+ break;
+ case 'cancel-trump':
+ echo "<div class=\"message\"><p>The game has been canceled because nobody wanted to take the trump.</p></div>";
+ break;
+ }
+ /* for these two types, we shouldn't show the cards, since we might want to restart the game */
+ if (in_array($gamestatus,array('cancel-noplay','cancel-timedout')))
+ break;
+