summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-04-27 17:43:11 -0700
committerArun Persaud <arun@nubati.net>2008-04-27 17:43:11 -0700
commit5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7 (patch)
tree77748f9f4c3a15586494c2047253064807e5e649 /include/game.php
parent4fc2c543112c4734b71272b1e4a1392406d63455 (diff)
downloade-DoKo-5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7.tar.gz
e-DoKo-5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7.tar.bz2
e-DoKo-5aa7d5dd2d0b487188fef191c6e5ef38f13e38f7.zip
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 <arun@nubati.net>
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php19
1 files changed, 9 insertions, 10 deletions
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 "<hr />";
}
- echo "<input type=\"submit\" value=\"submit\" />\n";
+ echo "<input type=\"submit\" value=\"submit\" />\n<hr />\n";
+ $session = DB_get_session_by_gameid($gameid);
+ $score = generate_score_table($session);
+
+ echo $score;
+
+ echo "</div>\n";
+
+ echo "</form>\n";
if($mystatus=='gameover' && DB_get_game_status_by_gameid($gameid)=='gameover' )
{
- echo "<hr />\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 "</div>\n";
-
- echo "</form>\n";
output_footer();
DB_close();
exit();