switch($mystatus)
{
case 'start':
- if( !myisset("in") )
+ /* don't ask if user has autosetup set to yest */
+ $skip = 0;
+ if($PREF['autosetup']=='yes') $skip = 1;
+
+ if( !myisset("in") && !$skip)
{
/* asks the player, if he wants to join the game */
output_check_want_to_play($me);
else
{
/* check the result, if player wants to join, got next stage, else cancel game */
- if($_REQUEST["in"] == "no")
+ if($_REQUEST["in"] == "no" && !$skip)
{
/* cancel the game */
$message = "Hello, \n\n".
foreach($cards as $card)
if($card<27) $nrtrump++;
echo "Player $name has $nrtrump trump. Do you want to take them?".
- "<a href=\"index.php?action=game&me=$me&trump=$user\">yes</a> <br />\n";
+ "<a href=\"index.php?action=game&me=$me&trump=$user\">Yes</a> <br />\n";
}
}
- echo "<a href=\"index.php?action=game&me=$me&trump=no\">No,way I take those trump...</a> <br />\n";
+ echo "<a href=\"index.php?action=game&me=$me&trump=no\">No way</a> <br />\n";
echo "</div><div>\n";
echo "<div class=\"mycards\">Your cards are: <br />\n";
echo " </div>\n </li>\n"; /* end div trick, end li trick */
}
-
- echo "</ul>\n"; /* end ul tricks*/
+ echo " <li onclick=\"hl_prev();\" class=\"old\"><a href=\"#\">prev</a></li>\n";
+ echo " <li onclick=\"hl_next();\" class=\"old\"><a href=\"#\">next</a></li>\n</ul>\n"; /* end ul tricks*/
echo "<div class=\"notes\"> Personal notes: <br />\n";
$notes = DB_get_notes_by_userid_and_gameid($myid,$gameid);