From: Arun Persaud Date: Sun, 19 Oct 2008 03:00:40 +0000 (-0700) Subject: NEW FEATURE: show how often a hand has been played on the user page X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=e1b3eaa640a1e4249b8406e946bd65e902aadfb9;hp=84155be68394d503bc7604f0ca2e2700695241dc NEW FEATURE: show how often a hand has been played on the user page print a number instead of "F" to indicate how often a hand has been played. Signed-off-by: Arun Persaud --- diff --git a/include/user.php b/include/user.php index dc96377..67c720a 100644 --- a/include/user.php +++ b/include/user.php @@ -111,7 +111,8 @@ else echo "

Session:
\n"; echo " p = pre-game phase "; echo "P = game in progess "; - echo "F = game finished
"; + echo "F = game finished "; + echo " N = game finished, hand played by others too
"; echo "

\n"; $output = array(); @@ -141,7 +142,14 @@ else if($r[4]=='pre') echo " p \n"; else if ($r[4]=='gameover') - echo " F \n"; + { + echo " "; + if($r[5]<2) + echo "F "; + else + echo $r[5]; + echo "\n"; + } else echo " P \n"; if($r[4] != 'gameover')