echo ' '._('Game')." $session.$j";
if($gamestatus != 'pre')
if($gametype_raw != 'normal') /* only show when needed */
- if(!($gametype_raw == 'solo' && $gametyep_solo == 'silent') )
+ if(!($gametype_raw == 'solo' && $gametype_solo == 'silent') )
echo " ($GT)";
if(isset($_SESSION['id']) && $_SESSION['id']==$myid)
/* output vorbehalte */
if($gametype_raw != 'normal') /* only show when needed */
- if(!($gametype_raw == 'solo' && $gametyep_solo == 'silent') )
+ if(!($gametype_raw == 'solo' && $gametype_solo == 'silent') )
echo " <li onclick=\"hl(0);\" class=\"old\"><a href=\"#\">Pre</a></li>\n";
$result = DB_query('SELECT Trick.id'.
{
/* user wants to play a solo */
+ /* double check input value */
+ $s = $_REQUEST['solo'];
+ $solos = array('trumpless','jack','queen','trump','club','spade','heart');
+ if (!in_array($s, $solos))
+ {
+ $messages[] = sprintf(_('There is a problem with the type of solo you selected (%s does not exist), please go back '.
+ 'and answer the <a href="%s">question</a> again.'),
+ $s,$INDEX.'?action=game&me=$me&in=yes');
+ break;
+ }
+
/* store the info in the user's hand info */
DB_set_solo_by_hash($me,$_REQUEST['solo']);
DB_set_sickness_by_hash($me,'solo');