summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-07-29 19:12:11 -0700
committerArun Persaud <arun@nubati.net>2007-07-29 19:12:11 -0700
commit2e9d5e97305ccbd1b975013511922f924d53fffd (patch)
treea01a8a7a878bc6094d2c56d1a742bbe0b891ddab /index.php
parentd8eac0035f97a64371557e7da8b9730fe28d8788 (diff)
downloade-DoKo-2e9d5e97305ccbd1b975013511922f924d53fffd.tar.gz
e-DoKo-2e9d5e97305ccbd1b975013511922f924d53fffd.tar.bz2
e-DoKo-2e9d5e97305ccbd1b975013511922f924d53fffd.zip
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.
Diffstat (limited to 'index.php')
-rw-r--r--index.php11
1 files changed, 9 insertions, 2 deletions
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" ))