summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2008-05-17BUGFIX: diamond was added twice in defining the sorting order for the cardsArun Persaud1-1/+1
probably never did any harm, but long anyway Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-17CLEANUP: rewrote code for SchweinchenArun Persaud2-26/+48
should be easier to add some new features now. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-15BUGFIX: scoring of silent solo was wrongArun Persaud1-8/+37
game type wasn't set to silent solo. Also needed to change some outputs and other special cases for silent solo Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-15BUGFIX: wrong messages for email notification in preferencesArun Persaud1-4/+4
emailaddict said "lots of emails" but should say "less emails" Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-13BUGIFX: during each reload of a game, the starplayer got reset and emails ↵Arun Persaud1-30/+36
got send out the routine that emails the startplayer and sets some other variables (e.g. whos turn it is) should only be called once. Was called everytime the game page was reloaded though. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-12BUGFIX: some variables where not defined after moving some code aroundArun Persaud1-0/+1
forgot to add some variables as globals, while moving code to a function. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-11BUGFIX: rewrote poverty, should fix lots of bugsArun Persaud4-365/+434
poverty should work now, even if the user doesn't do everything in one go. Cleaned up the layout at the same time. The cards were sometime displayed below the main page, which led to a lot of empty space... Indicating whos turns it is during the pre-game phase should now be ok. Also cleaned up whitespaces. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-10NEW FEATURE: display if someone is sick during the init phaseArun Persaud2-2/+25
Now players can see if someone in front of them said they were sick or not. This way people can decide to wait until people in front of them finished the init phase to see what the other playes said... it's made so that you can also see if people behind you already have decided or not, but the player won't see the result in that case... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-10LAYOUT: repaired the layout for starting a new gameArun Persaud1-6/+5
the table was offset and some text was overlayed by the table. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-10NEW FEATURE: new settings page, user can now change timezoneArun Persaud7-177/+286
rewrote the settings page, timezone can now be changed, the user menu shows up on the left on the pref page. Added a link to the pref-page in the left menu. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-08CLEANUP: reorganized the 'init' phase of a gameArun Persaud4-88/+59
moved some code around, so that we test the result of the init phase in the init case statement. Made things a bit clearer and removed one page reload by doing this. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-08BUGIFX: typo in a call to a database functionArun Persaud1-1/+1
nothing critical Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-06CLEANUP: moved html from output.php to welcome.phpArun Persaud2-61/+56
since we now have several files in the include directory, it makes more sense to keep the html directly in the file for some cases instead of putting it in output.php. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-06CLEANUP: removed all calls to mysql functions and replaced them with calls ↵Arun Persaud10-569/+533
to DB_xxx should be very easy now to change to a different database. also made the code look nicer ;) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-06BUGFIX: typo in scoring algorithmArun Persaud1-17/+24
The re-party got less points in case the contra-party made a call and lost the game. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-04NEW FEATURES: show global statisticArun Persaud3-7/+73
show points/game for all players that have 10 or more games Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-01CLEANUP: moved the statistics page into the include directoryArun Persaud5-305/+261
added action=stats and moved the stats.php page to the include directory. Now we have a nice small index.php. Also moved the session_start in front of the includes, since it gave me an error on the mac otherwise?! Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-27BUGFIX: couldn't restart a finished game; force reload of CSSArun Persaud3-12/+13
problem was that everything on the page was in a form which is now submitted to the game page, but for new games, we need to call the newgame.php page. moved the button out of the side and into its own div structure now to fix it. also renamed the css file to force a reload Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-26CLEANUP: moved register.php to the include directoryArun Persaud3-35/+21
new users are now also automatically logged in. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-26CLEANUP: cleaned up index.php a bit more by introducing an 'action' variableArun Persaud11-254/+288
no more if, but one nice switch statement in index.php Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-26CLEANUP: make index.php very short and move everything in separate filesArun Persaud14-2328/+2419
created an include dir and almost everything that was in index.php is now in separate files and gets only included in index.php... makes index.php look a lot nicer ;) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-18BUGFIX: couldn't unclick no90 callArun Persaud2-17/+17
radio buttons for calling "no 120", "no 90", etc. had all different names and therefore clicking a second one, didn't unclick the first one. Signed-off-by: Arun Persaud <apersaud@lbl.gov>
2008-04-15BUGFIX: counted foxes wrong for povertyArun Persaud1-17/+27
had two cases (no schweinchen and two schweinchen) mixed up. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-07BUGFIX: adding new users was brokenArun Persaud1-1/+1
forgot to update the insert statement for the db when changing the user table a while ago. fixed now. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-07NEW FEATURE: some more statisticsArun Persaud1-1/+40
list the number of games a user is in at the moment and another list for the total number of games. Also list people that manage not to lose their foxes. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-07CLEANUP: started some database cleanup and added some more commentsArun Persaud6-253/+209
instead of having a different function for each possible way to query for example the full name of a player, there is now only one function with a switch statement that handles the different cases. Still not 100% perfect, but I think nicer to read than before. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-29BUGFIX: a comment for schweinchen was issued even in solo games without ↵Arun Persaud2-4/+13
schweinchen fixed the comment issue and also added trump solo to games where schweinchen will count Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-29BUGFIX: Karlchen and fox weren't accounted for in solosArun Persaud1-2/+28
this made sense in some solos, e.g. trumpless, but not in some other solos, e.g. normal trump solo. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-19LAYOUT: keep notes area from overflowingArun Persaud1-0/+3
added overflow auto to CSS and fixed the height of the div. Depending on the screen size there might be overlap now, but at least the notes area won't grow like crazy in case you add too many notes. Signed-off-by: Arun Persaud <apersaud@lbl.gov>
2008-03-19BUGFIX: Typo in one of the emailsArun Persaud1-1/+1
fixed a small typo Signed-off-by: Arun Persaud <apersaud@lbl.gov>
2008-03-15CLEANUP: more comments for index.phpArun Persaud1-16/+52
managed to comment the code a bit more ;) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-13BUGFIX: some stats should really be displayed as an average per game...fixedArun Persaud1-8/+19
The number of foxes caught/lost was displayed in absolut numbers, which didn't look good for people who played a lot of games. So now it's on a per game basis. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-11NEW FEATURE: Ability to add personal notes for each gameArun Persaud4-1/+89
In case a player is involed in too many games it can get quite confusing with whom your playing, etc. so now the player can add notes on the side that only show up on his/her screen. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-02BUGFIX: Score table in email displayed some htmlArun Persaud1-2/+2
had two str_replace functions in the wrong order, should be fixed now. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-01FEATURE: display names of new players and last logged in playersArun Persaud3-4/+35
instead of showing all registered players, just display the above. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-01FEATURE: add score table to email at the end of the gameArun Persaud1-0/+32
the last 4 lines of the score table are now added to the email that is being send out at the end of a game. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-01FEATURE: added a faviconArun Persaud2-0/+1
Lance made a nice favicon for edoko. So here it is ;) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-02-28BUGFIX: link to wiki wasn't in the config file, added link on the home pageArun Persaud3-29/+34
* the home page now links to the wiki * the wiki-url is now part of the config file Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-06BUGFIX: show that is is your turn after a new game has been createdArun Persaud1-14/+11
if there was no player set for a new game, the user page didn't show that is was your turn in that game Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-06NEW FEATURE: show the time a game took at the end of the gameArun Persaud1-0/+5
display time in hours together with total points. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-06BUGFIX: people can't start new games unless they are part of itArun Persaud2-118/+138
up to now anyone could start a new game, now you need to be logged in and also be a player in the game Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-05CLEANUP: started rewrite of pre-game phase, fixed 'start' sectionArun Persaud1-23/+56
the whole process is not very easy to read... you could get from start to init, but then the error check for the start phase was done during the init phase and if something went wrong init sent you back to the start-phase... now all error-checking for the start-phase is done during the start phase. should be a bit easier to read ;) Still need to fix the other sections Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-05BUGFIX: didn't set next player correctly during startupArun Persaud1-2/+4
in db.game the next player is set with his user.id, but I used the position at the table in some places. fixed now Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-05NEW FEATURE: show Vorbehalte in each gameArun Persaud1-0/+25
Vorbehalte are now shown in the same list as tricks and the score, so that players can go back and have a look at who said what Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-05LAYOUT: new game and vorbehaltArun Persaud1-5/+6
added layout to display vorbehalte and also fixed layout for new games a bit
2008-01-03BUGIFX: output was displayed twiceArun Persaud2-6/+4
the login information was displayed twice, also formatted the output a bit nicer in html
2008-01-03BUGIFX: added Lance to copyright and changed to 2008Arun Persaud1-1/+1
small changes in the footer
2008-01-03BUGFIX: fixed some typosArun Persaud1-16/+16
just typos nothing more...
2007-12-19BUGFIX: fixed some CSS issues for IEArun Persaud1-2/+3
never tried out IE before ;) fixed some small things, so that it looks a bit nicer on IE
2007-12-17BUGFIX: use of local web links now possibleArun Persaud7-45/+51
before I used a lot of http:// requests although the files were in the same domain, now local links with absolute paths are used.