From 5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 27 Apr 2008 17:43:11 -0700 Subject: BUGFIX: couldn't restart a finished game; force reload of CSS problem was that everything on the page was in a form which is now submitted to the game page, but for new games, we need to call the newgame.php page. moved the button out of the side and into its own div structure now to fix it. also renamed the css file to force a reload Signed-off-by: Arun Persaud --- include/game.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'include/game.php') diff --git a/include/game.php b/include/game.php index 51d4320..b2c4fb0 100644 --- a/include/game.php +++ b/include/game.php @@ -1727,12 +1727,19 @@ switch($mystatus) echo "
"; } - echo "\n"; + echo "\n
\n"; + $session = DB_get_session_by_gameid($gameid); + $score = generate_score_table($session); + + echo $score; + + echo "\n"; + + echo "\n"; if($mystatus=='gameover' && DB_get_game_status_by_gameid($gameid)=='gameover' ) { - echo "
\n"; $session = DB_get_session_by_gameid($gameid); $result = mysql_query("SELECT id,create_date FROM Game". @@ -1756,15 +1763,7 @@ switch($mystatus) } } - $session = DB_get_session_by_gameid($gameid); - $score = generate_score_table($session); - - // if(size_of($score)>30) - echo $score; - echo "\n"; - - echo "\n"; output_footer(); DB_close(); exit(); -- cgit v1.2.3-18-g5258