Arun Persaud [Sun, 2 Mar 2008 00:56:01 +0000 (16:56 -0800)]
FEATURE: added a favicon
Lance made a nice favicon for edoko. So here it is ;)
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Fri, 29 Feb 2008 07:01:08 +0000 (23:01 -0800)]
BUGFIX: link to wiki wasn't in the config file, added link on the home page
* 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>
Arun Persaud [Sun, 6 Jan 2008 19:01:25 +0000 (20:01 +0100)]
BUGFIX: show that is is your turn after a new game has been created
if there was no player set for a new game, the user page didn't show that is was your turn in that game
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sun, 6 Jan 2008 18:49:04 +0000 (19:49 +0100)]
NEW FEATURE: show the time a game took at the end of the game
display time in hours together with total points.
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sun, 6 Jan 2008 18:27:54 +0000 (19:27 +0100)]
BUGFIX: people can't start new games unless they are part of it
up to now anyone could start a new game, now you need to be logged in and also be a player in the game
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sat, 5 Jan 2008 21:43:53 +0000 (22:43 +0100)]
CLEANUP: started rewrite of pre-game phase, fixed 'start' section
the whole process is not very easy to read... you could get from start to init, but then
the error check for the start phase was done during the init phase and if something went
wrong init sent you back to the start-phase... now all error-checking for the start-phase
is done during the start phase. should be a bit easier to read ;)
Still need to fix the other sections
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sat, 5 Jan 2008 21:24:10 +0000 (22:24 +0100)]
BUGFIX: didn't set next player correctly during startup
in db.game the next player is set with his user.id, but I used the
position at the table in some places. fixed now
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sat, 5 Jan 2008 21:08:17 +0000 (22:08 +0100)]
NEW FEATURE: show Vorbehalte in each game
Vorbehalte are now shown in the same list as tricks and the score, so that players
can go back and have a look at who said what
Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Thu, 3 Jan 2008 13:01:44 +0000 (14:01 +0100)]
LAYOUT: new game and vorbehalt
added layout to display vorbehalte and also fixed layout for new games a bit
Arun Persaud [Thu, 3 Jan 2008 13:06:16 +0000 (14:06 +0100)]
BUGIFX: output was displayed twice
the login information was displayed twice, also formatted the output a bit nicer in html
Arun Persaud [Thu, 3 Jan 2008 12:52:28 +0000 (13:52 +0100)]
BUGIFX: added Lance to copyright and changed to 2008
small changes in the footer
Arun Persaud [Mon, 31 Dec 2007 11:23:56 +0000 (12:23 +0100)]
BUGFIX: fixed some typos
just typos nothing more...
Arun Persaud [Wed, 19 Dec 2007 20:52:13 +0000 (21:52 +0100)]
BUGFIX: fixed some CSS issues for IE
never tried out IE before ;) fixed some small things, so that it looks a bit nicer on IE
Arun Persaud [Mon, 17 Dec 2007 09:17:50 +0000 (10:17 +0100)]
BUGFIX: use of local web links now possible
before I used a lot of http:// requests although the files were in the
same domain, now local links with absolute paths are used.
Arun Persaud [Sun, 16 Dec 2007 23:44:09 +0000 (00:44 +0100)]
BUGFIX: local time should now work correctly
had to reset the timezone to the local time. added a config parameter to store the local timezone.
Arun Persaud [Sun, 16 Dec 2007 22:50:35 +0000 (23:50 +0100)]
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.
Arun Persaud [Sun, 16 Dec 2007 17:33:25 +0000 (18:33 +0100)]
BUGFIX: added indecis to tables for faster lookup
this should make the database part a bit faster. not quit sure if this is
the correct way of doing it though :)
Arun Persaud [Sun, 16 Dec 2007 13:54:06 +0000 (14:54 +0100)]
BUGFIX: time display used wrong timezones. also optimized things a bit
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.
Arun Persaud [Fri, 14 Dec 2007 14:33:49 +0000 (15:33 +0100)]
BUGFIX: wrong SQL query for min and max time of games
the wrong time was shown for the minimum game
Arun Persaud [Fri, 14 Dec 2007 11:07:39 +0000 (12:07 +0100)]
LAYOUT: made login/logout message in stats.php look nicer
title says it all ;)
Arun Persaud [Fri, 14 Dec 2007 11:01:01 +0000 (12:01 +0100)]
NEW FEATURE: display longest session, display shortest games in hours
also name players a bit more often.
Arun Persaud [Fri, 14 Dec 2007 10:41:47 +0000 (11:41 +0100)]
BUGIFX: sort game list by session in user menu
if it is your turn those games are shown in the user menu, but where not sorted by sessions. fixed now
Arun Persaud [Fri, 7 Dec 2007 15:52:48 +0000 (16:52 +0100)]
NEW FEATURE: list game points in last email
add a few lines to show the total amount of game points for this game in the email
that gets send out
Arun Persaud [Fri, 7 Dec 2007 15:31:50 +0000 (16:31 +0100)]
BUGFIX: the number of extra points per Game where not calculated on a per Game base, but all Games where added up
fixed now
Arun Persaud [Fri, 7 Dec 2007 15:16:22 +0000 (16:16 +0100)]
LAYOUT: fixed some typos, changed CSS a bit
the linebreak for displaying the tricks should be gone now.
Fixed also quite a few other small things at the same time.
Arun Persaud [Sun, 2 Dec 2007 18:05:15 +0000 (19:05 +0100)]
NEW FEATURE: make stastitic page accessable
created a link from the user menu to the stats.php page
Arun Persaud [Sun, 2 Dec 2007 16:38:01 +0000 (17:38 +0100)]
NEW FEATURE: detailed few of the score of one game
display each of the points re and contra made during the game.
At the moment only the names from the database are used.
Arun Persaud [Sun, 2 Dec 2007 16:14:52 +0000 (17:14 +0100)]
BUGFIX: finished scoring algorithm
now all games are scored. Rules can be looked up in the wiki.
Arun Persaud [Tue, 27 Nov 2007 18:12:39 +0000 (19:12 +0100)]
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.
Arun Persaud [Thu, 8 Nov 2007 19:58:20 +0000 (20:58 +0100)]
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
Arun Persaud [Sat, 3 Nov 2007 12:39:56 +0000 (13:39 +0100)]
NEW FEATURE: statistics page, version1
added a few statistics to an extra page, still not completely done, but already working
Arun Persaud [Fri, 2 Nov 2007 18:59:41 +0000 (19:59 +0100)]
BUGFIX: added a config.php template to the repository and updated the INSTALL files
Arun Persaud [Fri, 2 Nov 2007 10:23:45 +0000 (11:23 +0100)]
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
Arun Persaud [Wed, 31 Oct 2007 20:18:18 +0000 (21:18 +0100)]
CLEANUP: some small code cleanup
moved some css from inline to the style sheet, some linebreaks, etc.
Arun Persaud [Wed, 31 Oct 2007 20:07:59 +0000 (21:07 +0100)]
BUGFIX: player could select several vorbehalte at the same time
no the prog checks and sends the player back to the questionary, before it wasn't clear to the user which vorbehalt would be used (e.g. wedding or poverty)
Arun Persaud [Wed, 31 Oct 2007 09:45:28 +0000 (10:45 +0100)]
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.
Arun Persaud [Wed, 31 Oct 2007 09:29:54 +0000 (10:29 +0100)]
LAYOUT: moved more text during the setup into the middle
there was still a lot of text that wasn't aligned yet. Still not perfect, but much better than before ;)
Arun Persaud [Mon, 29 Oct 2007 19:29:42 +0000 (20:29 +0100)]
BUGFIX: when playing with both schweinchen
they second fox always became the highest trump, even if the two
foxes where not on the same hand.
Also: every fox led to a comment:"schweinchen".
Both fixed now.
Arun Persaud [Sun, 21 Oct 2007 01:28:56 +0000 (03:28 +0200)]
LAYOUT: improved the layout of the cards a bit
centered now in x, but not in y, therefore scaling doesn't work nicely yet
Arun [Tue, 9 Oct 2007 16:44:19 +0000 (18:44 +0200)]
CLEANUP: make html output a bit nicer
added some newlines and spaces
Arun [Tue, 9 Oct 2007 10:50:22 +0000 (12:50 +0200)]
LAYOUT: 1st round of changes to get rid of overlapping areas
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.
Arun [Mon, 8 Oct 2007 14:01:26 +0000 (16:01 +0200)]
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
Arun Persaud [Sun, 5 Aug 2007 17:44:12 +0000 (10:44 -0700)]
BUGFIX: output call only after game started; move after game comments to right menu
the re/contra, etc. box showed up after a user finished the setup, changed it so that
it now only shows up after the game has started.
The input form for comments after a game has finished was still in the card area, moved
it to the right game menu.
Arun Persaud [Sat, 4 Aug 2007 18:38:17 +0000 (11:38 -0700)]
LAYOUT: new user page
mixed finished games, started games and games in progress into one table
Arun Persaud [Sat, 4 Aug 2007 16:52:56 +0000 (09:52 -0700)]
LAYOUT: fixed some overlaying of boxes (but not all), made userpage a bit nicer
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 ;)
Arun Persaud [Mon, 30 Jul 2007 02:17:51 +0000 (19:17 -0700)]
BUGFIX: order games by session
games are now ordered by sessions, also fixed a typo
Arun Persaud [Mon, 30 Jul 2007 02:12:11 +0000 (19:12 -0700)]
BUGIFX+LAYOUT: gameids where still in the player menu; show table for new game setup
fixed last commit.
for new games, the table is now shown and one can select the place people are sitting
better.
Arun Persaud [Mon, 30 Jul 2007 01:54:14 +0000 (18:54 -0700)]
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.
Arun Persaud [Sun, 29 Jul 2007 17:39:34 +0000 (10:39 -0700)]
LAYOUT: final score is displayed on the table; played card is displayed in trick
added another trick as trick13 that displays the final score. Also moved the
played card to show up as a normal card and not in the middle of the table anymore.
Arun Persaud [Sat, 28 Jul 2007 19:23:20 +0000 (12:23 -0700)]
LAYOUT: started work on new layout
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
Arun Persaud [Sat, 28 Jul 2007 17:16:43 +0000 (10:16 -0700)]
BUGFIX: use email reply address for sending
the ini_set method didn't seem to work for some reason.
Setting the From in the header does work though
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.
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
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
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.
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
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.
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
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 ;)
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
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
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
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.
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
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.
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
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
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
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
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;
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.
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.
Arun Persaud [Sun, 24 Jun 2007 09:30:20 +0000 (11:30 +0200)]
CLEANUP: get card names from the database
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.
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
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
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
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.
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.
Arun Persaud [Sun, 17 Jun 2007 16:57:21 +0000 (18:57 +0200)]
Merge branch 'dealing-reuse'
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 ;)
Arun Persaud [Sat, 16 Jun 2007 19:11:28 +0000 (21:11 +0200)]
code cleanup
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
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
arun [Thu, 7 Jun 2007 18:34:38 +0000 (18:34 +0000)]
bugfix: typo in last commit
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
arun [Mon, 4 Jun 2007 13:07:55 +0000 (13:07 +0000)]
bugfix: the gamenumber wasn't shown in all email subjects
arun [Mon, 4 Jun 2007 12:51:02 +0000 (12:51 +0000)]
small fixes, typo, etc
arun [Sat, 2 Jun 2007 16:25:28 +0000 (16:25 +0000)]
added output of average time for a game on the homepage
arun [Sat, 2 Jun 2007 15:50:35 +0000 (15:50 +0000)]
BUGFIX: guess I should test again before commiting :)
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
arun [Fri, 1 Jun 2007 13:40:44 +0000 (13:40 +0000)]
bugfix: last revision had some typos, fixed now
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
arun [Tue, 22 May 2007 09:52:17 +0000 (09:52 +0000)]
fix: missed a ;
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
arun [Mon, 21 May 2007 12:04:05 +0000 (12:04 +0000)]
fixed bug in shuffle function
arun [Fri, 18 May 2007 20:47:48 +0000 (20:47 +0000)]
more emails during poverty, game number is displayed in email
arun [Thu, 17 May 2007 12:51:21 +0000 (12:51 +0000)]
problem with sql syntax: used a reserverd word
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
arun [Wed, 16 May 2007 12:34:17 +0000 (12:34 +0000)]
found a bug in the shuffling routine