X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=output.php;h=bfebf4ac5cff471fbdb8e1ac70279aa9a7e53dd3;hp=5b796813df5738af4770f7bc69e5b5897f79a5f6;hb=fb8907b3f2daf368222f514d5ff36a059e330a0d;hpb=bae8dd0032b45f632e85f12693debd2f03603f07 diff --git a/output.php b/output.php index 5b79681..bfebf4a 100644 --- a/output.php +++ b/output.php @@ -2,10 +2,10 @@ /* functions which only ouput html */ -function display_status() +function display_status($gametype) { echo "
"; - echo " is someone playing solo, etc?"; + echo " Gametype: $gametype"; echo "
\n"; return; @@ -16,9 +16,9 @@ function display_news() global $wiki; echo "
\n". " Please hit shift+reload.

\n". - " added local time display, let me know what you think

\n". - " If you find more bugs, please list them in the wiki.\n
\n"; + " The server now keeps score... (only from now on)

". + " If you find more bugs, please list them in the wiki.\n\n"; return; } @@ -83,15 +83,31 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) return; } -function output_form_for_new_game() +function output_form_for_new_game($names) { ?> -

Please add 4 names, please make sure that the names are correct!

+

Please select four players (or use the randomly pre-selected names)

- Name: - Name: - Name: - Name: + \n"; + foreach($names as $name) + { + if($name==$rand) + { + echo " \n"; + } + else + echo " \n"; + } + echo " \n"; + unset($names[$randkey]); + } +?>
@@ -123,7 +139,7 @@ function display_link_card($card) function check_for_sickness($me,$mycards) { ?> -

nothing implemented so far, but give it a try anyway ;)

+

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

@@ -142,7 +158,7 @@ function check_for_sickness($me,$mycards) "; @@ -230,6 +246,7 @@ function output_home_page() function output_header() { + global $REV; ?>

Welcome to E-Doko

+

Revision: