X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Fgame.php;h=f612b202870aec926035dedd1a9cfc4fe3319e77;hp=f9daf6523dc916dd7517854925c98d5fcdbf9fec;hb=993fc6fffd6c43498c756ef73f8fd27eb4fadce1;hpb=71c96bf3223f2d3cc63581d93de3bbff43ea7a99
diff --git a/include/game.php b/include/game.php
index f9daf65..f612b20 100644
--- a/include/game.php
+++ b/include/game.php
@@ -210,16 +210,19 @@ if($session)
echo " \n \n";
/* show score */
+
+ echo "
";
+
$score = generate_score_table($session);
+
+ /* get the last entry to show on the main page */
$tmpscore= $score;
$finalscore = array_pop($tmpscore);
$finalscore = $finalscore['players'];
- echo "
";
if($finalscore)
{
echo "Score: \n";
- /* output the final score on the front page */
foreach($finalscore as $user=>$value)
{
$name = DB_get_name('userid',$user);
@@ -232,10 +235,13 @@ if($session)
echo " ";
}
+ /* output all games for the score table */
echo format_score_table_html($score,$myid);
echo "
\n";
- /* figure out which game in a session we are in and link to the previous and next game if possible */
+ /* figure out which game in a session we are in and link to the
+ * previous and next game if possible
+ */
$hashes = DB_get_hashes_by_session($session,$myid);
$next = NULL;
$i = 1;
@@ -589,11 +595,10 @@ switch($mystatus)
else if($nines)
{
/* cancel game */
- $message = "Hello, \n\n".
- " the game has been canceled because ".DB_get_name('userid',$nines).
- " has five or more nines and nobody is playing solo.\n\n".
- " To redeal either start a new game or, in case the game was part of a tournament, \n".
- " go to the last game and use the link at the bottom of the page to redeal.\n\n";
+ $message = "the game has been canceled because ".DB_get_name('userid',$nines).
+ "has five or more nines and nobody is playing solo.\n\n".
+ "To redeal either start a new game or, in case the game was part of a tournament,\n".
+ "go to the last game and use the link at the bottom of the page to redeal.\n\n";
$userids = DB_get_all_userid_by_gameid($gameid);
foreach($userids as $user)
@@ -1295,6 +1300,7 @@ switch($mystatus)
/* end of trick? */
if($seq==4)
{
+ $winner = get_winner($play,$gametype); /* returns the position */
echo "
\n \n"; /* end div trick, end li trick */
}
}