diff options
author | Arun Persaud <arun@nubati.net> | 2007-06-19 10:45:05 +0200 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2007-06-19 10:45:05 +0200 |
commit | bcf82bbe699d28a45c44c9c18d96466713e81bef (patch) | |
tree | ed6d04e312ddb16d822c7eb221af8f1f056bf891 | |
parent | 4ab5b869e5e30735f150cf9563a8bd951a134ae8 (diff) | |
download | e-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.php | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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"; |