summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorarun <arun@nubati.net>2006-12-08 11:05:21 +0000
committerarun <arun>2006-12-08 11:05:21 +0000
commit351e3df476b7cc3d6d3db7ec5833367e449bbdfa (patch)
tree7eb39c30c2de41b25e1ffeeee7a5d2c39fa4e83b /index.php
parentdceed6f464ca2a65ba25e454aeaea2e1434cd5f3 (diff)
downloade-DoKo-351e3df476b7cc3d6d3db7ec5833367e449bbdfa.tar.gz
e-DoKo-351e3df476b7cc3d6d3db7ec5833367e449bbdfa.tar.bz2
e-DoKo-351e3df476b7cc3d6d3db7ec5833367e449bbdfa.zip
basic user page, list available users and link to start a new game
Diffstat (limited to 'index.php')
-rw-r--r--index.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/index.php b/index.php
index f0bfad5..7db4399 100644
--- a/index.php
+++ b/index.php
@@ -52,8 +52,8 @@ DB_open();
if(isset($_REQUEST["new"]))
{
?>
- <p> no game in progress, please input 4 names and email addresses, please make sure that the addresses are correct! </p>
- <form action="index.php" method="post">
+ <p>Please add 4 names, please make sure that the names are correct! </p>
+ <form action="index.php" method="post">
Name: <input name="PlayerA" type="text" size="10" maxlength="20" />
Name: <input name="PlayerB" type="text" size="10" maxlength="20" />
Name: <input name="PlayerC" type="text" size="10" maxlength="20" />
@@ -389,7 +389,11 @@ else if(isset($_REQUEST["me"]))
$myturn = 1;
else
$myturn = 0;
+
+ if(isset($_REQUEST["comment"]))
+ {
+ }
/* do we want to play a card? */
if(isset($_REQUEST["card"]) && $myturn)
{
@@ -480,7 +484,7 @@ else if(isset($_REQUEST["me"]))
foreach($mycards as $card)
display_link_card($card);
?>
- <br />A short comment:<input name="comment" type="text" size="30" maxlength="50" />
+ <br />A short comments:<input name="comment" type="text" size="30" maxlength="50" />
<input type="hidden" name="me" value="<?php echo $me; ?>" />
<input type="submit" value="move" />
</form>
@@ -538,7 +542,13 @@ else if(isset($_REQUEST["me"]))
if($ok)
{
echo "ok. your logged in, now what? :)<br />";
-
+ $names = DB_get_all_names();
+ echo "<p>registered players:<br />\n";
+ foreach ($names as $name)
+ echo "$name <br />\n";
+ echo "</p>\n";
+ echo "<p>Want to start a new game? remember 4 names from the list above and visit ".
+ "<a href=\"http://doko.nubati.net/database/index.php?new\">this page.</a></p>";
}
else
{