From: Arun Persaud Date: Tue, 19 Jun 2007 08:45:05 +0000 (+0200) Subject: NEW FEATURE: show all hands at the end of a game X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=bcf82bbe699d28a45c44c9c18d96466713e81bef;hp=4ab5b869e5e30735f150cf9563a8bd951a134ae8 NEW FEATURE: show all hands at the end of a game Now everyone can see all the cards at the end of a game. --- 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:
\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 "
"; + + $name = DB_get_name_by_userid($user); + $oldcards = DB_get_all_hand($userhash); + $oldcards = mysort($oldcards,$gametype); + echo "$name's cards were:
\n"; + foreach($oldcards as $card) + display_card($card,$PREF["cardset"]); + } + } } echo "\n";