\n";
while($r = DB_fetch_array($result))
{
$name = $r[0];
$pos = $r[1];
$user = $r[2];
$party = $r[3];
$sickness = $r[4];
$call = $r[5];
$hash = $r[7];
$timezone = $r[8];
$email = $r[9];
$wins = DB_get_number_of_tricks($gameid,$pos);
date_default_timezone_set($defaulttimezone);
$lastlogin = strtotime($r[6]);
date_default_timezone_set($timezone);
$timenow = strtotime(date("Y-m-d H:i:s"));
$gravatar = "$name
\n";
if($debug)
echo "
";
if($vacation = check_vacation($user))
{
$start = $vacation[0];
$stop = substr($vacation[1],0,10);
$comment = $vacation[2];
$title = "begin: $start end: $stop $comment";
echo " $gravatar (on vacation until $stop) \n";
}
else
echo " $gravatar \n";
if($debug)
echo"\n";
/* add hints for poverty, wedding, solo, etc */
if( $gametype != "solo")
if( $RULES["schweinchen"]=="both" && $GAME["schweinchen-who"]==$hash )
echo " Schweinchen.
";
if($GT=="poverty" && $party=="re")
if($sickness=="poverty" || ($RULES['lowtrump']=='poverty' && $sickness=='lowtrump'))
{
$userhash = DB_get_hash_from_gameid_and_userid($gameid,$user);
$cards = DB_get_all_hand($userhash);
$trumpNR = count_trump($cards,'all');
if($trumpNR)
echo "
";
else
echo "
";
}
else
echo "
";
if($GT=="dpoverty")
if($party=="re")
if($sickness=="poverty" || ($RULES['lowtrump']=='poverty' && $sickness=='lowtrump'))
{
$userhash = DB_get_hash_from_gameid_and_userid($gameid,$user);
$cards = DB_get_all_hand($userhash);
$trumpNR = count_trump($cards,'all');
if($trumpNR)
echo "
";
else
echo "
";
}
else
echo "
\" title=\"poverty partner\" />";
else
if($sickness=="poverty" || ($RULES['lowtrump']=='poverty' && $sickness=='lowtrump'))
{
$userhash = DB_get_hash_from_gameid_and_userid($gameid,$user);
$cards = DB_get_all_hand($userhash);
$trumpNR = count_trump($cards,'all');
if($trumpNR)
echo "
";
else
echo "
";
}
else
echo "
\" title=\"poverty2 partner\" />";
if($GT=="wedding" && $party=="re")
if($sickness=="wedding")
echo "
";
else
echo "
";
if( (strpos($GT,"solo")!==false) && $party=="re")
{
if(strpos($GT,"queen")!==false)
echo "
";
else if(strpos($GT,"jack")!==false)
echo "
";
else if(strpos($GT,"club")!==false)
echo "
";
else if(strpos($GT,"spade")!==false)
echo "
";
else if(strpos($GT,"heart")!==false)
echo "
";
else if(strpos($GT,"trumpless")!==false)
echo "
";
else if(strpos($GT,"trump")!==false)
echo "
";
}
/* add point calls */
if($call!=NULL)
{
if($party=="re")
echo "
";
else
echo "
";
switch($call)
{
case "0":
echo "
";
break;
case "30":
echo "
";
break;
case "60":
echo "
";
break;
case "90":
echo "
";
break;
}
}
echo "
\n";
echo "
".
"".
"\n";
/* show how many tricks the person made */
switch($wins)
{
case 0:
echo "#tricks 0"; break;
case 1:
echo "#tricks 1"; break;
case 2:
case 3:
case 4:
echo "#tricks few"; break;
default:
echo "#tricks many"; break;
}
echo "