CLEANUP: make index.php very short and move everything in separate files 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>
CLEANUP: started some database cleanup and added some more comments 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>
NEW FEATURE: Ability to add personal notes for each game 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>
FEATURE: display names of new players and last logged in players instead of showing all registered players, just display the above. Signed-off-by: Arun Persaud <arun@nubati.net>
LAYOUT: last login and logout text where displayed incorrectly sometimes in a previous commit I moved those tings to the output_header function. Turns out you can't do that, so here is the fix.
BUGIX: games in a session were not ordered by date, but by id when a game gets cancled new games use that game_id in the DB which can mess up the ordering of sessions. fixed now.
NEW FEATURE: addicted people can turn of a lot of the email spam and just check online all emails saying: it's your turn can be turned off now by a user preference
NEW FEATURE: count game points, partly done ;) a table will be shown now for score keeping. fox, karlchen and dokos are accounted for normal win, calling something and winning should be accounted for still missing: both parties call or one party calls and doesn't acchieve it's goal
BUGFIX: no check for a followup game if someone else already started one several people could start a followup game (or one person hitting reload) and several games were started. Now the prog checks if there is already an active game.
NEW FEATURE: send out reminder email if a player hasn't moved for a week a reminder email can be send out. only one per day is possible, tracking in the db
BUGFIX: order games by session games are now ordered by sessions, also fixed a typo
LAYOUT: address game by session.gamenr don't use gameid, but use session.gamenumber instead. needs this for tournaments later. new games will get a session number now by default.
BUGFIX: reusing old randomnumbers didn't work old numbers got reused, but more than once for the same people should be fixed now.
BUGFIX: using the recovery password to change your password to change your password you needed your old password, the recovery password didn't work, which made it hard to change it, in case you forgot your old password... fixed
NEW FEATURE+BUGFIX: changed calling re/contra you can call re/contra, etc. now even if it is not your turn. Also fixed rule where you can say 90 with 9 cards, etc. so that you need to say 120 to say 90, 90 to say 60, etc.
NEW FEATURE: use php session used php session, so that people can actually log in and out and linking from one page to another can be done easily without using form to send the password as a hidden parameter over the net all the time
NEW FEATURE: allow multiple comments you can now also comment, if it is not your turn, and up to 7 days after the game finished. doubled size of comments too
BUGFIX: fixed bug in getting randomnumbers from a previous game DB querry was missing a column
CLEANUP: counting points, prepare for keeping track of game points use the database now to add up points, cleaned up the code a bit (counting points was done in different places), don't use score table for points from cards any more
BUGFIX: include $call in $ruleset $call wasn't added everywhere where a new ruleset was defined;