X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=9cadcb001b1d0c0048a8bb7d6d5182b19f45156a;hp=ed6287b06b394c0056013c76103756c5ac7491ee;hb=e68d4598c0d0a5e1f138b9c891f5c1c9ae0e8541;hpb=e8474ef47d5f0df524207e5dd4ab1abf2b5a7b37 diff --git a/output.php b/output.php index ed6287b..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,12 +286,35 @@ 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 ;)

-

At the moment there are games that are being started and games that are ongoing. - games have been completed on this server.

+ At the moment there are no games that are being started "; + else if($pre==1) + echo "

At the moment there is one games that is being started "; + else + echo "

At the moment there are $pre games that are being started "; + + echo "and"; + + if($game==0) + echo " zero games that are ongoing. "; + else if($game==1) + echo " one game that is ongoing. "; + else + echo "$game games that are ongoing. "; + + if($done==0) + echo "No game has been completed on this server.

"; + else if($done==1) + echo "One game has been completed on this server.

"; + else + 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
or login with you email-address or name and password here:

@@ -333,7 +379,7 @@ function output_header()
-

Welcome to E-Doko

+

Welcome to E-Doko (beta)

\n"; echo "

copyright 2006-2007 Arun Persaud
\n". - "Verwendung der [deutschen] Kartenbilder mit Genehmigung der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger
". + "Verwendung der [deutschen] Kartenbilder mit Genehmigung
der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger
". "- ASS Altenburger Spielkarten - Spielkartenfabrik Altenburg GmbH
". "a Carta Mundi Company Email: info@spielkarten.com Internet: www.spielkarten.com

\n"; - echo "

Revision: $REV; ". - "http://svn.nubati.net/emaildoko/trunk/

\n"; + echo "

Revision: $REV;
". + "http://svn.nubati.net/emaildoko/trunk/
". + "". + "\"Green". + "

\n"; echo "\n"; echo "\n";