\n";
- if( $PREF["email"] == "emailaddict" )
- echo "Change to non-addicted mode (emails for each move) ";
- else
- echo "Change to addicted mode (minimal amount of emails) ";
-
- echo "\n";
-
- return;
-}
-
function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
{
global $RULES;
@@ -53,81 +28,140 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid)
function output_form_for_new_game($names)
{
+ $copy_names = $names; /* local copy, so that we can delete names from it
+ * after we selected them to make sure that each name
+ * only shows up once
+ */
?>
-
Players
-
Please select four players (or use the randomly pre-selected names)
\n";
+
+ return $HTML;
+}
+
function display_card($card,$dir="english")
{
/* cards are only availabl for the odd values, e.g. 1.png, 3.png, ...
* convert even cards to the matching odd value */
- if( $card/2 - (int)($card/2) == 0.5)
+ if( $card/2 - (int)($card/2) == 0.5 || $card == 0)
echo "\n";
else
echo "\n";
@@ -205,11 +239,18 @@ function output_check_for_sickness($me,$mycards)
return;
}
-function output_form_calls($me)
+function output_form_calls($me,$myparty)
{
if( can_call(120,$me) )
- echo " re/contra (120):".
- " ";
+ {
+ if($myparty=='re')
+ echo "re (120):";
+ else if ($myparty=='contra')
+ echo "contra (120):";
+ else
+ echo " re/contra (120):";
+ echo " ";
+ }
if( can_call(90,$me) )
echo " 90:".
" ";
@@ -254,35 +295,12 @@ function output_header()
e-Doko
-
-
+
+
-
Welcome to E-Doko (beta)
+
Welcome to E-Doko
der Spielkartenfabrik Altenburg GmbH,(c) ASS Altenburger \n".
" - ASS Altenburger Spielkarten - Spielkartenfabrik Altenburg GmbH \n".
" a Carta Mundi Company Email: info@spielkarten.com Internet: www.spielkarten.com\n";
- echo "