summaryrefslogtreecommitdiffstats
path: root/include/functions.php
AgeCommit message (Collapse)AuthorFilesLines
2009-03-29LAYOUT: fixed a typo and made clock icon smallerArun Persaud1-1/+1
The validator should be happy again ;) and the clocks should look a bit better.
2009-03-29BUGFIX: store canceled games, don't delete themArun Persaud1-0/+31
deleting the games could result in the same people getting the same hand redealt over and over again. By just keeping track of the hands in the game table, this problem should be gone. Fixed issue #50.
2009-02-23CLEANUP: made emails a bit more personalArun Persaud1-2/+3
included the name of the person in the email
2009-02-23CLEANUP: make emails more uniformArun Persaud1-2/+41
provide a standard header and footer. Also prepare for emails to be send to the database for later delivery.
2009-02-23LAYOUT: added an icon for the time informationArun Persaud1-1/+3
gets rid of a bit of text and should leave more time for other buttons
2009-02-12NEW FEATURE + CLEANUP: added some table sorting to the statistics page via ↵Arun Persaud1-15/+18
jquery using jquery to add table sorting, might also use it for other things later. Also optimized some DB-queries and cleaned up some code.
2009-01-30NEW FEATURE: vacation supportArun Persaud1-3/+48
users can specify a vacation start and end date and a message. Once they are on vacation their name will be shown in a different color at the table and on the user page (in case it is their turn).
2009-01-24BUGFIX: when a fox was given back in poverty a no-trump icon was shown at ↵Arun Persaud1-5/+10
the table used the same function to count the number of trump cards as was used to determine poverty status. Therefore, foxes were not accounted for. Fixed now.
2009-01-16NEW FEATURE: always show current score on main pageArun Persaud1-3/+3
show the current score as the link to the score table
2009-01-16CLEANUP: small code cleanupArun Persaud1-3/+6
moved some DB queries out of loops
2009-01-16LAYOUT: add names of players to end of score table for long sessionsArun Persaud1-11/+32
if a session has more than 12 games, add the names of the players also at the end of the score table.
2009-01-15NEW FEATURE: add tooltips to icons at tableArun Persaud1-24/+24
makes it easier to figure out what they mean. Solves issue #27.
2008-12-02NEW FEATURE: new sorting algorithmArun Persaud1-4/+22
you can now sort your hand "low to high" and change your default using the setting dialog
2008-11-01CLEANUP: cleaned up CSS a bitArun Persaud1-5/+5
the bug where you couldn't click on the prev/next button shouldn't show up that often now, since that area is now a bit bigger, but the bug is still there... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-11-01BUGFIX: fixed some small typo/layout issues in the "game over" emailArun Persaud1-6/+6
added a line break, made the score table look better Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-20BUGFIX: make user menu and personal notes appear againArun Persaud1-10/+5
had them only shown when player was logged in, but there is really no reason to not show them to players who are not logged in in an ongoing game (only the correct player should get to a page with an ongoing game) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-18NEW FEATURE: implement Lance's Schweinchen ruleArun Persaud1-3/+16
new rule that only allows Schweinchen in case one of the teammembers called re/contra. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-18NEW FEATURE: make it possible to view games where people played with the ↵Arun Persaud1-6/+17
same hand had to change a few things and check more often if people are logge in, so that for example personal notes only show up when you are logged in and not when someone else is looking at your cards Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-08BUGFIX: user menu didn't list all games where it is your turnArun Persaud1-1/+1
games where you need to decide if you want to play should be listed in the menu on the left. The problem is that once somebody moved they won't show up in the list anymore, since from that point on the server keeps track of who needs to move next. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-08NEW FEATURE: added caching to stats.phpArun Persaud1-0/+24
since reloading always took a while and things don't really change that much over a day, I added a caching to it. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-07BUGFIX: fixed a typo in the scoretableArun Persaud1-1/+1
Nr instead of No Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-01LAYOUT: moved score table and rules to the topArun Persaud1-27/+104
removed more of the side layout into the top session bar. removed the list of games in a session and have it now accessable via the score table Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-31LAYOUT: make html standard conform in debug modeArun Persaud1-1/+1
hadn't checked debug mode with tidy Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-29BUGFIX: some text was outside a div. also fixed a html issue.Arun Persaud1-5/+6
moved the text back inside the div and also changed a & into a &amp; Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-26LAYOUT: more tables on the statistics pageArun Persaud1-4/+6
changed the last two tables to the new CSS-tables. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-24LAYOUT: only display user menu if it's your turn in some gamesArun Persaud1-2/+5
the user menu now only has the list of games in it, so no need to display it, if it is nor your turn in any games Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-24LAYOUT: rearranged the user menu to show up in the top right cornerArun Persaud1-11/+9
also limited the amount of games that show up in the user menu if it is your turn Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-18BUGFIX: show schweinchen has highest trump in your handArun Persaud1-6/+39
correctly shows both schweinchen as highest trump or just one depending on the rules. If only one don't allow to play it unless the first fox has been played. Signed-off-by: Arun Persaud <arun@nubati.net>
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 Persaud1-3/+3
should be easier to add some new features now. 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 Persaud1-7/+11
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: new settings page, user can now change timezoneArun Persaud1-0/+2
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-06CLEANUP: removed all calls to mysql functions and replaced them with calls ↵Arun Persaud1-28/+28
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-04NEW FEATURES: show global statisticArun Persaud1-1/+61
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 Persaud1-2/+2
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-26CLEANUP: cleaned up index.php a bit more by introducing an 'action' variableArun Persaud1-3/+3
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 Persaud1-0/+895
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>