From: Arun Persaud Date: Mon, 22 Jun 2009 03:48:29 +0000 (-0700) Subject: some more comments X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=1a44bc0d058016a093a112f064bac63a570c400d;hp=51fcc71c971df1a1983ceff9d0e40ffff3ddeafe;ds=sidebyside some more comments looked into issue#51 (everything was correct) and added some comments. --- diff --git a/include/game.php b/include/game.php index 5c367e9..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;