X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=9cadcb001b1d0c0048a8bb7d6d5182b19f45156a;hp=a224d6f85836cb199d51d2d4b9dc6531f802cb24;hb=e68d4598c0d0a5e1f138b9c891f5c1c9ae0e8541;hpb=12cfb198f8d644e370d646a7c42b37291a466089;ds=sidebyside diff --git a/output.php b/output.php index a224d6f..9cadcb0 100644 --- a/output.php +++ b/output.php @@ -27,6 +27,8 @@ function output_link_to_user_page($email,$password) function output_user_settings($email,$password) { + global $PREF; + echo "
\n"; echo "

Settings

\n"; echo "
\n"; @@ -46,6 +48,15 @@ function output_user_settings($email,$password) echo " \n"; echo "
\n"; echo "
\n"; + echo "
\n"; + echo " \n"; + echo " \n"; + echo " \n"; + if($PREF["ccemail"]=="no") + echo "
\n"; + else + echo "
\n"; + echo "
\n"; echo "
\n"; return; } @@ -53,8 +64,7 @@ function output_user_settings($email,$password) function output_register() { echo "IMPORTANT: passwords are going over the net as clear text, so pick an easy password. No need to pick anything complicated here ;)

"; - echo "TODO: convert timezone into a menu
\n"; - echo "TODO: figure out a way to handle passwords
\n"; + echo "TODO: figure out a better way to handle passwords
\n"; ?>
@@ -72,7 +82,12 @@ function output_register() - + + (If your timezone is not listed, just select whatever you want and email the admin your correct time zone.) @@ -95,6 +110,7 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) echo " \n"; echo " \n"; echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "\n"; @@ -150,7 +166,16 @@ function output_form_for_new_game($names)

- +

Call Re/Contra, etc.: +

+

-

Solo will work, but the first player will not change. Nothing else implemented.

-
do you want to play solo? @@ -200,7 +223,7 @@ function check_for_sickness($me,$mycards) "; @@ -211,7 +234,7 @@ function check_for_sickness($me,$mycards) echo " no
\n"; }; - echo "do you have poverty?"; + echo "Do you have poverty?"; if(count_trump($mycards)<4) { echo " yes"; @@ -222,7 +245,7 @@ function check_for_sickness($me,$mycards) echo " no
\n"; }; - echo "do you have too many nines?"; + echo "Do you have too many nines?"; if(count_nines($mycards)>4) { echo " yes"; @@ -263,7 +286,7 @@ function check_want_to_play($me) return; } -function output_home_page($pre,$game,$done) +function output_home_page($pre,$game,$done,$avgtime) { ?>

If you want to play a game of Doppelkopf, you found the right place ;)

@@ -289,7 +312,7 @@ function output_home_page($pre,$game,$done) else if($done==1) echo "One game has been completed on this server.

"; else - echo "$done games have been completed on this server.

"; + echo "$done games have been completed on this server. Average time of a game: $avgtime days

"; ?>

Please register, in case you haven't done that yet