summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-06-19 10:45:05 +0200
committerArun Persaud <arun@nubati.net>2007-06-19 10:45:05 +0200
commitbcf82bbe699d28a45c44c9c18d96466713e81bef (patch)
treeed6d04e312ddb16d822c7eb221af8f1f056bf891
parent4ab5b869e5e30735f150cf9563a8bd951a134ae8 (diff)
downloade-DoKo-bcf82bbe699d28a45c44c9c18d96466713e81bef.tar.gz
e-DoKo-bcf82bbe699d28a45c44c9c18d96466713e81bef.tar.bz2
e-DoKo-bcf82bbe699d28a45c44c9c18d96466713e81bef.zip
NEW FEATURE: show all hands at the end of a game
Now everyone can see all the cards at the end of a game.
-rw-r--r--index.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/index.php b/index.php
index 3fa0fd1..f5c3d3d 100644
--- a/index.php
+++ b/index.php
@@ -1518,6 +1518,24 @@ else if(myisset("me"))
echo "Your cards were: <br />\n";
foreach($oldcards as $card)
display_card($card,$PREF["cardset"]);
+
+ $userids = DB_get_all_userid_by_gameid($gameid);
+ foreach($userids as $user)
+ {
+ $userhash = DB_get_hash_from_gameid_and_userid($gameid,$user);
+
+ if($userhash!=$me)
+ {
+ echo "<br />";
+
+ $name = DB_get_name_by_userid($user);
+ $oldcards = DB_get_all_hand($userhash);
+ $oldcards = mysort($oldcards,$gametype);
+ echo "$name's cards were: <br />\n";
+ foreach($oldcards as $card)
+ display_card($card,$PREF["cardset"]);
+ }
+ }
}
echo "</div>\n";