X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Foutput.php;h=8dbf3d6f9e1f1a7fd4fb0da11711f71e171e5374;hp=a5e49420072709ac5f1dd882c3a9de20e3dd7029;hb=ecabf718a77ca979d16ef9d55f8db962fd3e814b;hpb=b136132f43df4049b18119d5ad775ce99516e596 diff --git a/include/output.php b/include/output.php index a5e4942..8dbf3d6 100644 --- a/include/output.php +++ b/include/output.php @@ -1,5 +1,5 @@ +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 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,11 +423,15 @@ function output_header() e-Doko - + + " /> + " /> + "/> + \n\n"; echo "\n\n"; echo ''; @@ -489,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; } @@ -640,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 @@ -648,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; @@ -659,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++) @@ -795,7 +804,7 @@ function output_exchanged_cards() } echo " \n"; } - if($mygametype == $usersick) + if($gametype == $usersick) $show = 0; } }