From bb470d6deeb78f69eb3875f0280a59abfeaa8e7d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 7 Feb 2010 19:09:37 -0800 Subject: updated copyright notice in footer --- include/output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/output.php') diff --git a/include/output.php b/include/output.php index 06eb8de..ce72c4e 100644 --- a/include/output.php +++ b/include/output.php @@ -378,7 +378,7 @@ function output_footer() echo "\n\n"; echo "
\n"; - echo "

copyright 2006-2009 Arun Persaud, Lance Thornton(graphics), Jeff Zerger(database support)
\n". + echo "

copyright 2006,2007,2008,2009,2010 Arun Persaud, Lance Thornton(graphics), Jeff Zerger(database support)
\n". " Verwendung der [deutschen] Kartenbilder mit Genehmigung
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"; -- cgit v1.2.3-18-g5258 From 76ce476d3c48709bf6a69b3cc5bd333c4593d66b Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Thu, 4 Mar 2010 12:48:10 -0800 Subject: changed message for new dealer into message for new startplayer since there really is no dealer, this was more confusing than helpful. --- include/output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/output.php') diff --git a/include/output.php b/include/output.php index ce72c4e..018372b 100644 --- a/include/output.php +++ b/include/output.php @@ -31,7 +31,7 @@ function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) global $RULES; echo "
\n
\n"; - echo "Do you want to continue playing?(This will start a new game, with $playerD as dealer.)\n"; + echo "Do you want to continue playing?(This will start a new game, with $playerA starting the game.)\n"; echo " \n"; echo " \n"; echo " \n"; -- cgit v1.2.3-18-g5258 From 850378a3e2da48d387dc565cc6e3c2b47f12e34d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 13 Mar 2010 15:59:07 -0800 Subject: NEW FEATURE: having only low trump (fox and below) can now be a Vorbehalt The low trump can either be treated as poverty or similar to 5 nines, that is the game is canceled unless someone plays a solo. Also minor code cleanup. --- include/output.php | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'include/output.php') diff --git a/include/output.php b/include/output.php index 018372b..135fe13 100644 --- a/include/output.php +++ b/include/output.php @@ -123,10 +123,19 @@ function output_form_for_new_game($names)

+

Low trump

+

+ Player can't trump a fox, that is none of his trump is higher than a fox. + +

Scoring-related

(not yet implemented)

@@ -205,10 +214,11 @@ function display_link_card($card,$dir="english",$type="card") function output_check_for_sickness($me,$mycards) { + global $RULES; ?>
Thanks for joining the game...
- do you want to play solo? + Do you want to play solo?
\n"; }; - echo "Do you have too many nines?"; + echo "Do you have too many nines?"; if(count_nines($mycards)>4) { echo " yes"; @@ -256,6 +266,26 @@ function output_check_for_sickness($me,$mycards) echo " no
\n"; }; + if($RULES['lowtrump']=='cancel' || $RULES['lowtrump']=='poverty') + { + if($RULES['lowtrump']=='cancel') + echo "Do you have low trump (cancel game)?"; + else + echo "Do you have low trump (poverty)?"; + + if(check_low_trump($mycards)) + { + echo " yes"; + echo " no
\n"; + } + else + { + echo " no
\n"; + }; + } + else + echo ""; + echo "\n"; echo "\n"; @@ -556,7 +586,7 @@ function output_exchanged_cards() */ /* need some information about the game */ - global $gameid,$mygametype, $PREF,$me,$mystatus; + global $gameid,$mygametype, $PREF,$me,$mystatus, $RULES; /* some variables to track where the people with poverty are sitting */ $partnerpos1 = 0; @@ -573,7 +603,7 @@ function output_exchanged_cards() for($mypos=1;$mypos<5;$mypos++) { $usersick = DB_get_sickness_by_pos_and_gameid($mypos,$gameid); - if($usersick == 'poverty') + if($usersick == 'poverty' || ($RULES['lowtrump']=='poverty' && $usersick=='lowtrump')) if($povertypos1) $povertypos2 = $mypos; else -- cgit v1.2.3-18-g5258 From 83fc1a851c69e13808d14f2d5a284c3369409018 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 14 Mar 2010 14:11:52 -0700 Subject: NEW FEATURE: added localization support using gettext to add support for localization --- include/output.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'include/output.php') diff --git a/include/output.php b/include/output.php index 135fe13..79e42c2 100644 --- a/include/output.php +++ b/include/output.php @@ -394,7 +394,9 @@ function output_header()
-

Welcome to E-Doko

+ '._('Welcome to E-Doko').' '; +?>
"en", + "Deutsch" => "de" ); + + echo " \n"; + + return; +} + + function output_password_recovery($email,$password) { ?> -- cgit v1.2.3-18-g5258