From 2e9d5e97305ccbd1b975013511922f924d53fffd Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 29 Jul 2007 19:12:11 -0700 Subject: BUGIFX+LAYOUT: gameids where still in the player menu; show table for new game setup fixed last commit. for new games, the table is now shown and one can select the place people are sitting better. --- index.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 71d4050..57145c6 100644 --- a/index.php +++ b/index.php @@ -33,8 +33,15 @@ if(myisset("logout")) } else if(myisset("new")) { - $names = DB_get_all_names(); - output_form_for_new_game($names); + if( isset($_SESSION["name"]) ) + { + $names = DB_get_all_names(); + output_form_for_new_game($names); + } + else + { + echo "Please log in."; + } } /*check if everything is ready to set up a new game */ else if( myisset("PlayerA", "PlayerB","PlayerC","PlayerD","dullen","schweinchen","call" )) -- cgit v1.2.3-18-g5258