X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=b0d3f4a87bbf70e0cd4560c368e40d7c0b9a4680;hp=d38c899c2b96d7b4b2920a6e8dc46610489d6e9f;hb=HEAD;hpb=106c90b95129be78b2763553c72e3aa131f5ee4b diff --git a/include/output.php b/include/output.php index d38c899..b0d3f4a 100644 --- a/include/output.php +++ b/include/output.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2016, 2016 Arun Persaud * * This file is part of e-DoKo. * @@ -268,14 +268,14 @@ function output_check_for_sickness($me,$mycards) echo ''; echo ' '._('Do you want to play solo?').''; echo ' '; echo '
'; @@ -423,7 +423,7 @@ function output_header() e-Doko - + " /> " /> "/> @@ -446,15 +446,12 @@ function output_footer() echo "\n\n"; echo "\n\n"; echo ''; @@ -492,25 +489,34 @@ function output_navbar() $token = get_user_token($myid); /* logout info */ - echo "\n
\n"; - echo " E-DoKo\n"; - echo " \n"; - echo "
\n"; - - echo "
"._('last login').": ".date("r",$unixtime)."
\n\n"; + echo "\n\n"; } return; } @@ -643,7 +649,7 @@ function output_robotproof($i) } } -function output_exchanged_cards() +function output_exchanged_cards($gametype) { /* in a poverty game this function will output the exchanged cards * players in the team will see the cards, the other team will see @@ -651,7 +657,7 @@ function output_exchanged_cards() */ /* need some information about the game */ - global $gameid,$mygametype, $PREF,$me,$mystatus, $RULES; + global $gameid,$PREF,$me,$mystatus, $RULES; /* some variables to track where the people with poverty are sitting */ $partnerpos1 = 0; @@ -662,7 +668,7 @@ function output_exchanged_cards() /* only need to do it in a poverty game, this might not be needed, but * just to make sure everything is ok */ - if($mygametype == 'poverty' || $mygametype=='dpoverty') + if($gametype == 'poverty' || $gametype=='dpoverty') { /* find out who has poverty */ for($mypos=1;$mypos<5;$mypos++) @@ -798,7 +804,7 @@ function output_exchanged_cards() } echo " \n"; } - if($mygametype == $usersick) + if($gametype == $usersick) $show = 0; } }