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=fa61c87caa69d315ad9423e48854b9242f2a2c4c;hb=HEAD;hpb=293b20963f2bbf0cfca1a146506d65d615b01c2c diff --git a/include/output.php b/include/output.php index fa61c87..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. * @@ -130,7 +130,6 @@ function output_form_for_new_game($names) echo ' '; $rand = $_SESSION["name"]; echo "
\n"; - $i++; echo " '; - echo ' '; + echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; - echo ' '; - echo ' '; + echo ' '; + echo ' '; echo ' '; echo '
'; @@ -424,11 +423,15 @@ function output_header() e-Doko - + + " /> + " /> + "/> + \n\n"; echo "
\n"; - echo "

copyright 2006-2012 Arun Persaud, et al.
\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"; - echo "

See the latest changes \n". + echo "

copyright 2006-2016 Arun Persaud, et al.
\n"; + echo "

See the latest changes \n". " via git
or download the source via
\n'git clone http://nubati.net/git/e-DoKo.git'
\n". " \n". " \"Green\n". - "

\n"; + " src=\"pics/green1.gif\" height=\"32\" width=\"100\" />

\n"; echo "

\n\n"; echo ''; @@ -474,7 +473,8 @@ function output_navbar() if(isset($_SESSION['name'])) { - $name = $_SESSION['name']; + $name = $_SESSION['name']; + $email = DB_get_email('name',$name); /* last logon time */ $myid = DB_get_userid('name',$name); @@ -489,30 +489,34 @@ function output_navbar() $token = get_user_token($myid); /* logout info */ - echo "\n
\n"; - echo "
\n"; - echo " E-DoKo\n"; - echo " \n"; + echo "\n
\n\n"; - - echo "
"._('last login').": ".date("r",$unixtime)."
\n\n"; + echo "\n"; } return; } @@ -645,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 @@ -653,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; @@ -664,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++) @@ -800,7 +804,7 @@ function output_exchanged_cards() } echo "
\n"; } - if($mygametype == $usersick) + if($gametype == $usersick) $show = 0; } }