e-DoKo.git
12 years agoCLEANUP: moved registration to seperate php file
Arun Persaud [Sat, 28 Jul 2007 16:44:33 +0000 (09:44 -0700)] 
CLEANUP: moved registration to seperate php file

started cleanup on index.php. trying to move as much out of index.php
as possible to make it easier to read.

12 years agoCLEANUP: working on database now a config.php option
Arun Persaud [Sat, 28 Jul 2007 17:04:38 +0000 (10:04 -0700)] 
CLEANUP: working on database now a config.php option

moved error checking into a function and made working on the database a config.php
option

12 years agoBUGFIX: change link from svn to git
Arun Persaud [Sat, 28 Jul 2007 16:19:23 +0000 (09:19 -0700)] 
BUGFIX: change link from svn to git

updated footer to point to the new git repository

12 years agoBUGFIX: reusing old randomnumbers didn't work
Arun Persaud [Fri, 20 Jul 2007 18:09:00 +0000 (11:09 -0700)] 
BUGFIX: reusing old randomnumbers didn't work

old numbers got reused, but more than once for the same people
should be fixed now.

12 years agoBUGFIX: using the recovery password to change your password
Arun Persaud [Thu, 19 Jul 2007 06:51:23 +0000 (23:51 -0700)] 
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

12 years agoNEW FEATURE+BUGFIX: changed calling re/contra
Arun Persaud [Fri, 29 Jun 2007 17:18:51 +0000 (19:18 +0200)] 
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.

12 years agoNEW FEATURE: use php session
Arun Persaud [Thu, 19 Jul 2007 05:26:29 +0000 (22:26 -0700)] 
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

12 years agoNEW FEATURE: use a better random generator
Arun Persaud [Thu, 19 Jul 2007 05:21:43 +0000 (22:21 -0700)] 
NEW FEATURE: use a better random generator

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 ;)

12 years agoLAYOUT: fixed small bug, probably only showed up on small windows
Arun Persaud [Wed, 18 Jul 2007 05:15:10 +0000 (22:15 -0700)] 
LAYOUT: fixed small bug, probably only showed up on small windows

the session and the trick menu didn't use the full width of the screen,
because they were cut off by the floating divs on the left

12 years agoBUGFIX: cards didn't show up anymore at the end of the game
Arun Persaud [Wed, 4 Jul 2007 17:44:52 +0000 (10:44 -0700)] 
BUGFIX: cards didn't show up anymore at the end of the game

forgot to check in an if-clause if the player was still playing or if the game was already over

12 years agoNEW FEATURE: allow multiple comments
Arun Persaud [Fri, 29 Jun 2007 16:22:01 +0000 (18:22 +0200)] 
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

12 years agoBUGFIX: final email didn't add up points for re/contra
Arun Persaud [Fri, 29 Jun 2007 11:10:18 +0000 (13:10 +0200)] 
BUGFIX: final email didn't add up points for re/contra

had a wrong GROUP BY SQL statement in the code.

12 years agoCLEANUP: make the code look a bit nicer
Arun Persaud [Thu, 28 Jun 2007 20:49:06 +0000 (22:49 +0200)] 
CLEANUP: make the code look a bit nicer

just a few small things

12 years agoBUGFIX: reload during the setup could mess up the state machine
Arun Persaud [Thu, 28 Jun 2007 20:36:51 +0000 (22:36 +0200)] 
BUGFIX: reload during the setup could mess up the state machine

if a user hits reload during the questions for the vorbehalt, the server
printed an error message and the game could not continue. Now this is detected
and the user is send back to the right page during the setup and can continue normally.

12 years agoBUGFIX: redeal in case of solo in tournament, add hint in case of 5 nines on howto...
Arun Persaud [Thu, 28 Jun 2007 19:57:36 +0000 (21:57 +0200)] 
BUGFIX: redeal in case of solo in tournament, add hint in case of 5 nines on howto redeal

12 years agoLAYOUT: updated icons from Lance
Arun Persaud [Mon, 25 Jun 2007 14:22:59 +0000 (16:22 +0200)] 
LAYOUT: updated icons from Lance

new icons for trump solo and spade solo

12 years agoBUGFIX: fixed bug in getting randomnumbers from a previous game
Arun Persaud [Mon, 25 Jun 2007 09:44:30 +0000 (11:44 +0200)] 
BUGFIX: fixed bug in getting randomnumbers from a previous game

DB querry was missing a column

12 years agoCLEANUP: counting points, prepare for keeping track of game points
Arun Persaud [Thu, 21 Jun 2007 14:22:36 +0000 (16:22 +0200)] 
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

12 years agoBUGFIX: include $call in $ruleset
Arun Persaud [Sun, 24 Jun 2007 11:28:50 +0000 (13:28 +0200)] 
BUGFIX: include $call in $ruleset

$call wasn't added everywhere where a new ruleset was defined;

12 years agoNEW FEATURE: added admin name and email address to be configurable
Arun Persaud [Sat, 23 Jun 2007 17:14:58 +0000 (19:14 +0200)] 
NEW FEATURE: added admin name and email address to be configurable

email and name can be defined in config.php. Errors are send to that email address.

12 years agoBUGFIX: displaying the player who has to move during setup
Arun Persaud [Sun, 24 Jun 2007 07:55:05 +0000 (09:55 +0200)] 
BUGFIX: displaying the player who has to move during setup

the server should now correctly dispaly who need to do a move
during the setup.

12 years agoCLEANUP: get card names from the database
Arun Persaud [Sun, 24 Jun 2007 09:30:20 +0000 (11:30 +0200)] 
CLEANUP: get card names from the database

12 years agoNEW FEATURE: password recovery is now working
Arun Persaud [Sat, 23 Jun 2007 13:53:30 +0000 (15:53 +0200)] 
NEW FEATURE: password recovery is now working

Added a simple form of password recovery. The user gets send an email
with the new password, which is valid for 24h. The user can request a
maximum of 5 passwords within 24h to prevent filling up the database
with garbage.

12 years agoBUGFIX: typo for emails at the end of game; able to set return address
Arun Persaud [Sat, 23 Jun 2007 17:19:41 +0000 (19:19 +0200)] 
BUGFIX: typo for emails at the end of game; able to set return address

used php.ini to set the return address for emails.
fixed typo in variable that prevented sending of emails at the end of the game

12 years agoLAYOUT: added icons from Lance
Arun Persaud [Wed, 20 Jun 2007 08:28:04 +0000 (10:28 +0200)] 
LAYOUT: added icons from Lance

re/contra/120...0 and wedding now have icons

12 years agoCLEANUP: code + text messages
Arun Persaud [Tue, 19 Jun 2007 20:57:17 +0000 (22:57 +0200)] 
CLEANUP: code + text messages

cleaned up the code and corrected some typos

12 years agoNEW FEATURE: show all hands at the end of a game
Arun Persaud [Tue, 19 Jun 2007 08:45:05 +0000 (10:45 +0200)] 
NEW FEATURE: show all hands at the end of a game

Now everyone can see all the cards at the end of a game.

12 years agoBUGFIX: CC'ed on final game allowed to view different accounts
Arun Persaud [Sun, 17 Jun 2007 19:53:29 +0000 (21:53 +0200)] 
BUGFIX: CC'ed on final game allowed to view different accounts

When people got CC'ed on the final email, they also got copies of everyones
email and the link to the game in that email. That way they could go to the
user page of a different user.

Removed CC option and will just send out two emails from now on. The first one to
all players (reply all possible) and the second one with the personal link.

12 years agoMerge branch 'dealing-reuse'
Arun Persaud [Sun, 17 Jun 2007 16:57:21 +0000 (18:57 +0200)] 
Merge branch 'dealing-reuse'

12 years agoNEW FEATURE: reuse random numbers from old games
Arun Persaud [Sun, 17 Jun 2007 16:55:34 +0000 (18:55 +0200)] 
NEW FEATURE: reuse random numbers from old games

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 ;)

12 years agocode cleanup
Arun Persaud [Sat, 16 Jun 2007 19:11:28 +0000 (21:11 +0200)] 
code cleanup

12 years agoadded a missing .gitignore file
Arun Persaud [Sat, 16 Jun 2007 16:52:44 +0000 (18:52 +0200)] 
added a missing .gitignore file

added *~ (e.g. emacs backups) to gitignore

12 years agoBUGFIX: adding a new game had a bug in the INSERT statement; wedding offset in can_ca...
arun [Tue, 12 Jun 2007 11:37:28 +0000 (11:37 +0000)] 
BUGFIX: adding a new game had a bug in the INSERT statement; wedding offset in can_call had wrong sign

12 years agobugfix: typo in last commit
arun [Thu, 7 Jun 2007 18:34:38 +0000 (18:34 +0000)] 
bugfix: typo in last commit

12 years ago* FIX: added extra check for calling 120, etc. so that people can't cheat
arun [Thu, 7 Jun 2007 18:09:08 +0000 (18:09 +0000)] 
* FIX: added extra check for calling 120, etc.  so that people can't cheat
* 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

12 years agobugfix: the gamenumber wasn't shown in all email subjects
arun [Mon, 4 Jun 2007 13:07:55 +0000 (13:07 +0000)] 
bugfix: the gamenumber wasn't shown in all email subjects

12 years agosmall fixes, typo, etc
arun [Mon, 4 Jun 2007 12:51:02 +0000 (12:51 +0000)] 
small fixes, typo, etc

12 years agoadded output of average time for a game on the homepage
arun [Sat, 2 Jun 2007 16:25:28 +0000 (16:25 +0000)] 
added output of average time for a game on the homepage

12 years agoBUGFIX: guess I should test again before commiting :)
arun [Sat, 2 Jun 2007 15:50:35 +0000 (15:50 +0000)] 
BUGFIX: guess I should test again before commiting :)

12 years agonew feature: added checks for re/contra/90 etc. ; fixed: some measages were outdated
arun [Sat, 2 Jun 2007 15:40:16 +0000 (15:40 +0000)] 
new feature: added checks for re/contra/90 etc. ; fixed: some measages were outdated

12 years ago bugfix: last revision had some typos, fixed now
arun [Fri, 1 Jun 2007 13:40:44 +0000 (13:40 +0000)] 
 bugfix: last revision had some typos, fixed now

12 years agoadded some more hints for what kind of game is happening at the table; cleanup
arun [Mon, 28 May 2007 16:12:50 +0000 (16:12 +0000)] 
added some more hints for what kind of game is happening at the table; cleanup

12 years agofix: missed a ;
arun [Tue, 22 May 2007 09:52:17 +0000 (09:52 +0000)] 
fix: missed a ;

12 years agofeature: added link to game in final email, CC'ed people in final email
arun [Tue, 22 May 2007 09:49:07 +0000 (09:49 +0000)] 
feature: added link to game in final email, CC'ed people in final email

12 years agofixed bug in shuffle function
arun [Mon, 21 May 2007 12:04:05 +0000 (12:04 +0000)] 
fixed bug in shuffle function

12 years agomore emails during poverty, game number is displayed in email
arun [Fri, 18 May 2007 20:47:48 +0000 (20:47 +0000)] 
more emails during poverty, game number is displayed in email

12 years agoproblem with sql syntax: used a reserverd word
arun [Thu, 17 May 2007 12:51:21 +0000 (12:51 +0000)] 
problem with sql syntax: used a reserverd word

12 years agowedding should work now, started working on calling 120/90/60/30/0, small bugfixes
arun [Thu, 17 May 2007 12:29:55 +0000 (12:29 +0000)] 
wedding should work now, started working on calling 120/90/60/30/0, small bugfixes

12 years agofound a bug in the shuffling routine
arun [Wed, 16 May 2007 12:34:17 +0000 (12:34 +0000)] 
found a bug in the shuffling routine

12 years agofix: hash collision after a game has been cancled and the gameid is being reused.
arun [Wed, 25 Apr 2007 08:17:43 +0000 (08:17 +0000)] 
fix: hash collision after a game has been cancled and the gameid is being reused.

12 years agodebugging was on for creating the hands -> no random numbers
arun [Sun, 22 Apr 2007 20:46:14 +0000 (20:46 +0000)] 
debugging was on for creating the hands -> no random numbers

12 years agowrong pic for the 10 of heart
arun [Sat, 14 Apr 2007 13:54:01 +0000 (13:54 +0000)] 
wrong pic for the 10 of heart

12 years agosome more testing and bugfixes
arun [Sat, 14 Apr 2007 10:34:28 +0000 (10:34 +0000)] 
some more testing and bugfixes

12 years agopoverty should work now! added german card deck, tons of small fixes
arun [Thu, 12 Apr 2007 07:33:07 +0000 (07:33 +0000)] 
poverty should work now! added german card deck, tons of small fixes

12 years agolots of small fixes and cleanup
arun [Wed, 11 Apr 2007 08:15:47 +0000 (08:15 +0000)] 
lots of small fixes and cleanup

12 years agoadded email to first player at the beginning of the game; fixed small layout issue
arun [Tue, 10 Apr 2007 15:26:58 +0000 (15:26 +0000)] 
added email to first player at the beginning of the game; fixed small layout issue

12 years agoremoved one debug message; added timestamp update for game when playing a card
arun [Tue, 10 Apr 2007 08:58:23 +0000 (08:58 +0000)] 
removed one debug message; added timestamp update for game when playing a card

12 years agominor cleanup
arun [Mon, 9 Apr 2007 09:25:29 +0000 (09:25 +0000)] 
minor cleanup

12 years agomore cleanup
arun [Mon, 9 Apr 2007 08:06:01 +0000 (08:06 +0000)] 
more cleanup

12 years agomore cleanup, the layout for the pre game stuff is now probably broken:(
arun [Sun, 8 Apr 2007 20:08:24 +0000 (20:08 +0000)] 
more cleanup, the layout for the pre game stuff is now probably broken:(

12 years agocleaned up the interface a bit
arun [Sun, 8 Apr 2007 19:49:22 +0000 (19:49 +0000)] 
cleaned up the interface a bit

12 years agofixed & in html
arun [Sun, 8 Apr 2007 17:09:32 +0000 (17:09 +0000)] 
fixed & in html

12 years agoadded footer, moved revision into footer
arun [Sun, 8 Apr 2007 17:06:04 +0000 (17:06 +0000)] 
added footer, moved revision into footer

12 years agoPreparation for adding german cards
arun [Sat, 24 Mar 2007 21:31:28 +0000 (21:31 +0000)] 
Preparation for adding german cards

12 years agosome missing html and some more comments
arun [Sat, 24 Mar 2007 21:24:36 +0000 (21:24 +0000)] 
some missing html and some more comments

12 years agofoxes should now work correctly
arun [Mon, 12 Feb 2007 18:25:29 +0000 (18:25 +0000)] 
foxes should now work correctly

12 years ago* rewrote checking for sickness, the player now sees a nice summary before getting...
arun [Thu, 8 Feb 2007 19:19:11 +0000 (19:19 +0000)] 
* rewrote checking for sickness, the player now sees a nice summary before 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

12 years agofixed: bug in routine to figure out the next player
arun [Wed, 7 Feb 2007 17:48:24 +0000 (17:48 +0000)] 
fixed: bug in routine to figure out the next player

added rulesets (change  in database): at the beginning of a game differnt rules can be chosen

12 years agofeature request: show complete hand for completed games
arun [Tue, 6 Feb 2007 02:03:39 +0000 (02:03 +0000)] 
feature request: show complete hand for completed games

12 years agoa bit of code cleanup
arun [Sat, 3 Feb 2007 22:07:21 +0000 (22:07 +0000)] 
a bit of code cleanup

12 years agowhen starting a new game, games can't be selected twice anymore and are randomly...
arun [Sat, 3 Feb 2007 05:29:17 +0000 (05:29 +0000)] 
when starting a new game, games can't be selected twice anymore and are randomly pre-selected

12 years agoonly ask for a new game in a session, if it was the latest game
arun [Sat, 3 Feb 2007 05:13:42 +0000 (05:13 +0000)] 
only ask for a new game in a session, if it was the latest game

12 years agoadded session to database
arun [Sat, 3 Feb 2007 04:57:04 +0000 (04:57 +0000)] 
added session to database

12 years agocleaned up the user page a bit
arun [Sat, 3 Feb 2007 04:33:02 +0000 (04:33 +0000)] 
cleaned up the user page a bit

12 years agofixed a typo
arun [Sat, 3 Feb 2007 04:25:41 +0000 (04:25 +0000)] 
fixed a typo

12 years agoyou can now cancle games, if they are older than a month
arun [Sat, 3 Feb 2007 04:24:35 +0000 (04:24 +0000)] 
you can now cancle games, if they are older than a month

12 years agoadded a uniform list name for emails
arun [Sat, 3 Feb 2007 03:53:40 +0000 (03:53 +0000)] 
added a uniform list name for emails

12 years agobetter selection of players for new game
arun [Sat, 3 Feb 2007 03:46:41 +0000 (03:46 +0000)] 
better selection of players for new game

12 years agoadded game number to game display
arun [Fri, 26 Jan 2007 12:17:32 +0000 (12:17 +0000)] 
added game number to game display

12 years agostarted work on canceling games
arun [Fri, 26 Jan 2007 11:59:05 +0000 (11:59 +0000)] 
started work on canceling games

12 years agofixed the new sorting algorithm
arun [Tue, 16 Jan 2007 15:11:17 +0000 (15:11 +0000)] 
fixed the new sorting algorithm

12 years agonew sort function; should sorrt correctly for solos,etc
arun [Tue, 16 Jan 2007 15:00:03 +0000 (15:00 +0000)] 
new sort function; should sorrt correctly for solos,etc

12 years agofixed the revision number thing ;)
arun [Sun, 14 Jan 2007 13:48:22 +0000 (13:48 +0000)] 
fixed the revision number thing ;)

12 years agoadded displau of revsion number
arun [Sun, 14 Jan 2007 13:43:17 +0000 (13:43 +0000)] 
added displau of revsion number

12 years agofixed: provided links for new games, so that reloading is not required anymore
arun [Sun, 14 Jan 2007 12:20:39 +0000 (12:20 +0000)] 
fixed: provided links for new games, so that reloading is not required anymore

12 years agofixed: correct startplayer for solos
arun [Sun, 14 Jan 2007 12:17:06 +0000 (12:17 +0000)] 
fixed: correct startplayer for solos

12 years agosome small bugfixes
arun [Fri, 12 Jan 2007 16:00:56 +0000 (16:00 +0000)] 
some small bugfixes

12 years agoadded some checks for poverty and wedding, but only nines are handled correctly from...
arun [Fri, 12 Jan 2007 15:21:14 +0000 (15:21 +0000)] 
added some checks for poverty and wedding, but only nines are handled correctly from now on

12 years agoadded email to all players, in case someone cancled the game at the beginning
arun [Fri, 12 Jan 2007 14:49:15 +0000 (14:49 +0000)] 
added email to all players, in case someone cancled the game at the beginning

12 years agosmall bug in displaying the score
arun [Fri, 12 Jan 2007 10:49:29 +0000 (10:49 +0000)] 
small bug in displaying the score

12 years agoserver keeps score now, several small bugfixes
arun [Fri, 12 Jan 2007 08:43:28 +0000 (08:43 +0000)] 
server keeps score now, several small bugfixes

12 years agoadded list of finished games to user page
arun [Wed, 10 Jan 2007 12:51:43 +0000 (12:51 +0000)] 
added list of finished games to user page

12 years agoadded a message for work on the database
arun [Mon, 8 Jan 2007 09:44:22 +0000 (09:44 +0000)] 
added a message for work on the database

12 years agoFEATURE: added solo and now you also can only play cards that are valid on a trick
arun [Mon, 8 Jan 2007 09:16:20 +0000 (09:16 +0000)] 
FEATURE: added solo and now you also can only play cards that are valid on a trick

12 years agoforgot to add the new table pic
arun [Thu, 4 Jan 2007 18:25:52 +0000 (18:25 +0000)] 
forgot to add the new table pic

12 years agobugfix: names and table show up all the time now;
arun [Thu, 4 Jan 2007 18:23:47 +0000 (18:23 +0000)] 
bugfix: names and table show up all the time now;

12 years agoadded third candle (a bit late)
arun [Thu, 21 Dec 2006 22:32:26 +0000 (22:32 +0000)] 
added third candle (a bit late)

12 years agofixed a lot of bugs, started to work on solos, moved some stuff to output.php
arun [Thu, 21 Dec 2006 20:20:42 +0000 (20:20 +0000)] 
fixed a lot of bugs, started to work on solos, moved some stuff to output.php

12 years agostarted on adding support for different solo games (modified get_winner a tiny bit...
arun [Tue, 19 Dec 2006 18:11:30 +0000 (18:11 +0000)] 
started on adding support for different solo games (modified get_winner a tiny bit)...still needs work

12 years agomoved more stuff from index.php to output.php
arun [Fri, 15 Dec 2006 11:26:22 +0000 (11:26 +0000)] 
moved more stuff from index.php to output.php