X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=include%2Ffunctions.php;h=31fc28646cd1d0ba19267910629b41a226bb6904;hp=5267bfb4e42105c33005af56152707fb75e2cec8;hb=8141a807cda3a5387e3288e4d644cde94b9ab8fd;hpb=a4149c6703653b2d0d5f3da4277d7fe065048edd diff --git a/include/functions.php b/include/functions.php index 5267bfb..31fc286 100644 --- a/include/functions.php +++ b/include/functions.php @@ -847,8 +847,7 @@ function display_table () function display_user_menu() { global $WIKI,$myid,$INDEX; - echo "
\n". - " Go to my user page "; + echo "
\n"; $result = DB_query("SELECT Hand.hash,Hand.game_id,Game.player from Hand". " LEFT JOIN Game On Hand.game_id=Game.id". @@ -857,21 +856,20 @@ function display_user_menu() " AND Game.status<>'gameover'". " ORDER BY Game.session" ); if(DB_num_rows($result)) - echo "
It's your turn in these games:
\n"; + echo "It's your turn in these games:
\n"; + $i=0; while( $r = DB_fetch_array($result)) { + $i++; echo "game ".DB_format_gameid($r[1])."
\n"; + if($i>4) + { + echo "...
\n"; + break; + } } - echo "
Start a new game\n"; - - echo "
Change settings\n"; - - echo "
Statistics\n"; - - echo - "
Report bugs in the wiki\n"; echo "
\n"; return; }