\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 "
\n";
else
echo "
\n";
}
else
echo "
\n";
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 "
\n";
else
echo "
\n";
}
else
echo "
\" title=\"poverty partner\" />\n";
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 "
\n";
else
echo "
\n";
}
else
echo "
\" title=\"poverty2 partner\" />\n";
if($GT=="wedding" && $party=="re")
if($sickness=="wedding")
echo "
\n";
else
echo "
\n";
if( (strpos($GT,"solo")!==false) && $party=="re")
{
if(strpos($GT,"queen")!==false)
echo "
\n";
else if(strpos($GT,"jack")!==false)
echo "
\n";
else if(strpos($GT,"club")!==false)
echo "
\n";
else if(strpos($GT,"spade")!==false)
echo "
\n";
else if(strpos($GT,"heart")!==false)
echo "
\n";
else if(strpos($GT,"trumpless")!==false)
echo "
\n";
else if(strpos($GT,"trump")!==false)
echo "
\n";
}
/* add point calls */
if($call!=NULL)
{
if($party=="re")
echo "
\n";
else
echo "
\n";
switch($call)
{
case "0":
echo "
\n";
break;
case "30":
echo "
\n";
break;
case "60":
echo "
\n";
break;
case "90":
echo "
\n";
break;
}
}
echo "
";
/* show how many tricks the person made */
switch($wins)
{
case 0:
echo "#tricks 0\n"; break;
case 1:
echo "#tricks 1\n"; break;
case 2:
case 3:
case 4:
echo "#tricks few\n"; break;
default:
echo "#tricks many\n"; break;
}
echo "