summaryrefslogtreecommitdiffstats
path: root/include/game.php
AgeCommit message (Collapse)AuthorFilesLines
2014-01-05updated copyright to 2014Arun Persaud1-1/+1
2013-09-23BUGFIX: vorbehalte of all players were visibleArun Persaud1-1/+6
a player shouldn't know the vorbehalte of players behind him until he finished his setup. * fixed change of internal variable mystatus from init to check * fixed who can see vorbehalte depending on mystatus
2013-09-16BUGFIX: fixed selection of spade and heart soloArun Persaud1-0/+11
two typos messed up the solo selction, e.g. the gametype was not the same as the one given in the enum in the database. Also added an additional check before we set them in the database, so that people can mess things up when playing with the url directly.
2013-05-07BUGFIX: fixed typo gametyep ->gametypeArun Persaud1-2/+2
2013-05-05Make startup phase smoother: less reloading of pages and less text messages ↵Arun Persaud1-30/+14
to the user
2013-05-02in some cases the user has to reload the page to get to the next pre-game ↵Arun Persaud1-7/+26
phase. Skip some of these go automatically to the next pre-games phase, iff possible.
2013-05-02CLEANUP: GT,gametype,mygametype variable, make it translatable, some code ↵Arun Persaud1-66/+51
cleanup
2013-03-29TRANSLATION: marked more strings for translationArun Persaud1-21/+27
2013-02-25fixed language selection for end-of-game summary email.Arun Persaud1-21/+42
was send out in the language of he palyer who finished.
2013-02-25mysql optimization: don't quote integers as strings in WHEREArun Persaud1-32/+32
2013-01-19TRANSLATION: marked more strings for translationArun Persaud1-26/+30
2013-01-14BUGIFX: added some set_language functions, fixed some strings for ↵Arun Persaud1-1/+2
translation, fixed typo
2013-01-12TRANSLATION: marked more messages for translationArun Persaud1-2/+3
2013-01-12updated copyright for 2013Arun Persaud1-1/+1
2013-01-12fixed more language settings in email; marked more strings for translationArun Persaud1-33/+63
2012-12-31set languages can also be used by UID now; make mymail langauge sensitiveArun Persaud1-3/+2
mymail used to use the language of the person triggering the email.
2012-12-31improved language detection using browser information; set the language ↵Arun Persaud1-0/+1
directly in more places previously one had to reload to get the language correct, now it should be correct right away. We also read out the browser request for a language now.
2012-12-09BUGFIX: highlight of prev/next trick didn't work all the timeArun Persaud1-8/+8
used a string where I should have used an integer
2012-10-06starting to bootstrap the layout: navbar and tricksArun Persaud1-7/+7
- changing the tricks-selector to a paginator and fixing the js for highlighting - adding a navbar using bootstrap, probably should use .wrap more instead of adding divs to the code
2012-10-05BUGFIX: if not logged in, don't show link to last gameArun Persaud1-2/+3
This could be used to get the hash for a current game of a different user.
2012-09-22BUGIFX: leaked silent solo information in game typeArun Persaud1-1/+4
2012-09-17CLEANUP: replaced " with ' in lots of places'; added admin email to error ↵Arun Persaud1-130/+124
message
2012-09-17mark more strings for translationArun Persaud1-7/+7
2012-09-17BUGFIX: update status (healthy/sick) during pre-game phase right awayArun Persaud1-73/+71
before a reload was needed, no the information only gets displayed after the user data is being processed.
2012-06-09CLEANUP: name variables in a more consistent wayArun Persaud1-22/+22
2012-05-09BUGFIX: gametype was displayed in pre-phase of the gameArun Persaud1-1/+1
This could give away the type of sickness a player has
2012-05-08BUGFIX: move some text into the message boxArun Persaud1-1/+1
2012-05-08BUGFIX: removed side effect from getting the user's preferences: the ↵Arun Persaud1-0/+3
language used could be overwritten by another user's choise the DB_get_Prefs($myid) functions used to set the _SESSION variable for the language, but was also called with ids that belonged to other players overwriting the language settings with that from another user
2012-05-08BUGFIX: a typo in the variable name card_status triggered some error messages.Arun Persaud1-21/+8
fixed the typo and cleaned up the code a bit with a better default for the variable
2012-05-08fixed typo in commentArun Persaud1-1/+1
2012-02-19BUGFIX: if you win a trick, you don't have to reload the page from now on.Arun Persaud1-1/+3
added a check if the player won the trick, if so, show radiobuttons next to cards to select new one. Also needed to unset firstcard when winning the trick, since without it follow suite was still working with regards to the first card in the last trick.
2012-02-10updated copyright notice for 2012Arun Persaud1-1/+1
2012-02-04fixed showing re/contra call at beginning of game; allowed pre-game ↵Arun Persaud1-61/+115
comments; DB upgrade the problem with re/contra at the beginning of a game was that no playid was set yet, so we couldn't record when the call was made. Added two special playid (-1 and -2), for pre-game comments and re/contra calls before the first card is played. For this we need to record the gameid in the comment table => DB update
2011-11-19BUGFIX: added special section for vorbehalte (needs to be in div ↵Arun Persaud1-24/+65
class=middle in the new layout)
2011-11-19LAYOUT, BUGFIX: don't show current game in "it's your turn" list, also fix ↵Arun Persaud1-2/+2
layout for this on newgame.php
2011-11-16BUGFIX: fixed undefined variable when displaying tricks menuArun Persaud1-0/+1
2011-11-15LAYOUT: use html5 buttons for prev/next for the tricksArun Persaud1-2/+2
2011-11-15LAYOUT: redone layout of table and cardsArun Persaud1-92/+125
scales a lot better now and should be better for mobile devices
2011-11-14LAYOUT: moved game status to top; cleaned up some cssArun Persaud1-29/+24
2011-11-13CLEANUP: fixed html output a bitArun Persaud1-2/+2
added whitespaces and line breaks
2011-11-13LAYOUT: moved output of all game message after the tricks and tableArun Persaud1-42/+56
this should make the html layout more consistent and easier to manage for different screen sizes, e.g. for mobile phones
2011-11-13LAYOUT: move display of cards below switch for mystatusArun Persaud1-152/+154
This should make for a more consistent html layout and fix some issues that show up on different browsers and display sizes.
2011-11-13CLEANUP: added some comments, renamed some variables, moved a tiny bit of codeArun Persaud1-96/+97
2011-10-07fixed some html source code alignement and moved the games table, so it's ↵Arun Persaud1-18/+21
flush left with the rest of the test
2011-10-06make list of tricks and what game and session we are more compact.Arun Persaud1-9/+9
Also add game type in description for all games, but "normal" ones (which should include silent solos
2011-10-06started on better mobile supportArun Persaud1-10/+10
some changes in order of HTML, but mostly CSS
2011-03-20CLEANUP: added gameid to mymail and generate subject line in mymail directlyArun Persaud1-23/+12
this way it will be easier to add translation and also to add the gameid into the database for the digest
2011-02-21LAYOUT: fixed message area showing up in the wrong place during poverty setupArun Persaud1-0/+1
2011-02-21BUGFIX: don't show schweinchen in poverty games during pre-game phaseArun Persaud1-0/+3
after exchanging cards schweinchen was shown during the pre-game phase
2010-11-21fixed one bugs in the scoring algorithmArun Persaud1-15/+15
* no "call-x" points where given if "0" was called