summaryrefslogtreecommitdiffstats
path: root/include/functions.php
AgeCommit message (Collapse)AuthorFilesLines
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>