summaryrefslogtreecommitdiffstats
path: root/functions.php
AgeCommit message (Collapse)AuthorFilesLines
2008-02-28BUGFIX: link to wiki wasn't in the config file, added link on the home pageArun Persaud1-2/+2
* 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>
2007-12-17BUGFIX: use of local web links now possibleArun Persaud1-8/+8
before I used a lot of http:// requests although the files were in the same domain, now local links with absolute paths are used.
2007-12-17BUGFIX: local time should now work correctlyArun Persaud1-3/+3
had to reset the timezone to the local time. added a config parameter to store the local timezone.
2007-12-16BUGFIX: time display used wrong timezones. also optimized things a bitArun Persaud1-26/+7
Got rid of a few db-queries for getting the right timezone. The timezone was also set after the timefunction was called and therefore the timezone didn't have any effect.
2007-12-14BUGIFX: sort game list by session in user menuArun Persaud1-1/+2
if it is your turn those games are shown in the user menu, but where not sorted by sessions. fixed now
2007-12-07LAYOUT: fixed some typos, changed CSS a bitArun Persaud1-3/+3
the linebreak for displaying the tricks should be gone now. Fixed also quite a few other small things at the same time.
2007-12-02NEW FEATURE: make stastitic page accessableArun Persaud1-0/+1
created a link from the user menu to the stats.php page
2007-11-02NEW FEATURE: count game points, partly done ;)Arun Persaud1-74/+130
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
2007-10-09CLEANUP: make html output a bit nicerArun1-32/+32
added some newlines and spaces
2007-10-09LAYOUT: 1st round of changes to get rid of overlapping areasArun1-2/+2
centered table, moved menus to correct place (this also fixed a bug that still showed that it was your turn in a game after you moved) and some other small changes.
2007-08-04LAYOUT: new user pageArun Persaud1-1/+1
mixed finished games, started games and games in progress into one table
2007-08-04LAYOUT: fixed some overlaying of boxes (but not all), made userpage a bit nicerArun Persaud1-0/+3
a bit more html on the user page and the session are displayed differently now. Also fixed a few small html errors, moved the link for new games into the menu and probably some small things I don't remember right now ;)
2007-07-29BUGIFX+LAYOUT: gameids where still in the player menu; show table for new ↵Arun Persaud1-1/+1
game setup fixed last commit. for new games, the table is now shown and one can select the place people are sitting better.
2007-07-28LAYOUT: started work on new layoutArun Persaud1-0/+169
table is also shown during setup of the game user menu on the left, game menu on the right user menu shows games in which you have to move
2007-07-28BUGFIX: use email reply address for sendingArun Persaud1-1/+4
the ini_set method didn't seem to work for some reason. Setting the From in the header does work though
2007-07-28CLEANUP: working on database now a config.php optionArun Persaud1-0/+49
moved error checking into a function and made working on the database a config.php option
2007-07-18NEW FEATURE+BUGFIX: changed calling re/contraArun Persaud1-4/+42
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.
2007-07-18NEW FEATURE: use php sessionArun Persaud1-3/+0
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
2007-07-18NEW FEATURE: use a better random generatorArun Persaud1-1/+8
people complained about too many solos ;) so I changed from the standard php random generator to a better one. Not sure if that solves the problem though ;)
2007-06-25BUGFIX: fixed bug in getting randomnumbers from a previous gameArun Persaud1-1/+1
DB querry was missing a column
2007-06-25CLEANUP: counting points, prepare for keeping track of game pointsArun Persaud1-66/+0
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
2007-06-24NEW FEATURE: added admin name and email address to be configurableArun Persaud1-3/+11
email and name can be defined in config.php. Errors are send to that email address.
2007-06-24CLEANUP: get card names from the databaseArun Persaud1-81/+0
2007-06-17Merge branch 'dealing-reuse'Arun Persaud1-2/+13
2007-06-17NEW FEATURE: reuse random numbers from old gamesArun Persaud1-2/+13
random numbers generated for old games are reused in case none of the players were in that old game. Will be interesting how different people play with the same hand ;)
2007-06-16code cleanupArun Persaud1-1/+0
2007-06-12BUGFIX: adding a new game had a bug in the INSERT statement; wedding offset ↵arun1-1/+1
in can_call had wrong sign
2007-06-07* FIX: added extra check for calling 120, etc. so that people can't cheatarun1-1/+1
* NEW: display sessions * NEW: display who's turn it is on the userpage (change in DB) * NEW: different ways when to say 90, 60, etc. (change in DB) * MISC: some clean up, e.g. display of final score
2007-06-02BUGFIX: guess I should test again before commiting :)arun1-1/+1
2007-06-02new feature: added checks for re/contra/90 etc. ; fixed: some measages were ↵arun1-2/+43
outdated
2007-05-22feature: added link to game in final email, CC'ed people in final emailarun1-3/+9
2007-05-21fixed bug in shuffle functionarun1-17/+14
2007-05-17wedding should work now, started working on calling 120/90/60/30/0, small ↵arun1-8/+17
bugfixes
2007-05-16found a bug in the shuffling routinearun1-1/+1
2007-04-22debugging was on for creating the hands -> no random numbersarun1-9/+11
2007-04-12poverty should work now! added german card deck, tons of small fixesarun1-3/+25
2007-02-12foxes should now work correctlyarun1-13/+41
2007-02-08* rewrote checking for sickness, the player now sees a nice summary before ↵arun1-98/+106
getting to the table... * wedding is now announced * for solo and normal games, re and contra are assigned correctly * the score for re and contra is computed at the end * used one variable $CARDS instead of several global ones e.g. $CARDS["trump"] instead of $TRUMP
2007-02-07fixed: bug in routine to figure out the next playerarun1-15/+56
added rulesets (change in database): at the beginning of a game differnt rules can be chosen
2007-01-16fixed the new sorting algorithmarun1-13/+9
2007-01-16new sort function; should sorrt correctly for solos,etcarun1-0/+20
2007-01-12some small bugfixesarun1-2/+2
2007-01-12added email to all players, in case someone cancled the game at the beginningarun1-1/+0
2007-01-12server keeps score now, several small bugfixesarun1-1/+1
2007-01-10added list of finished games to user pagearun1-2/+1
2007-01-08FEATURE: added solo and now you also can only play cards that are valid on a ↵arun1-137/+201
trick
2007-01-04bugfix: names and table show up all the time now;arun1-7/+51
2006-12-21fixed a lot of bugs, started to work on solos, moved some stuff to output.phparun1-27/+112
2006-12-19started on adding support for different solo games (modified get_winner a ↵arun1-37/+55
tiny bit)...still needs work
2006-12-15added a new php file for html output onlyarun1-136/+0