summaryrefslogtreecommitdiffstats
path: root/index.php
AgeCommit message (Collapse)AuthorFilesLines
2014-01-05updated copyright to 2014Arun Persaud1-1/+1
2013-01-12updated copyright for 2013Arun Persaud1-1/+1
2012-12-31improved language detection using browser information; set the language ↵Arun Persaud1-24/+19
directly in more places previously one had to reload to get the language correct, now it should be correct right away. We also read out the browser request for a language now.
2012-10-06starting to bootstrap the layout: navbar and tricksArun Persaud1-1/+1
- changing the tricks-selector to a paginator and fixing the js for highlighting - adding a navbar using bootstrap, probably should use .wrap more instead of adding divs to the code
2012-09-19replaces some more " with 'Arun Persaud1-1/+1
2012-05-08BUGFIX: removed side effect from getting the user's preferences: the ↵Arun Persaud1-6/+5
language used could be overwritten by another user's choise the DB_get_Prefs($myid) functions used to set the _SESSION variable for the language, but was also called with ids that belonged to other players overwriting the language settings with that from another user
2012-02-10updated copyright notice for 2012Arun Persaud1-1/+1
2010-04-26Added about pageArun Persaud1-0/+3
2010-03-14NEW FEATURE: added localization supportArun Persaud1-3/+30
using gettext to add support for localization
2010-03-13added check in DB_open for correct DB-versionArun Persaud1-3/+9
2010-02-06added copyright notice and GPL referenceArun Persaud1-0/+19
2010-02-02highlight the call if this is the last round where you can make this callArun Persaud1-3/+3
also added some more comments
2008-06-16NEW FEATURE: login buttonArun Persaud1-3/+6
added a login button to the top right, in case you were not logged in. output_status can now be called in only one place, ie index.php and all pages will get the menu... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-10NEW FEATURE: new settings page, user can now change timezoneArun Persaud1-0/+3
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-01CLEANUP: moved the statistics page into the include directoryArun Persaud1-7/+15
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: moved register.php to the include directoryArun Persaud1-0/+3
new users are now also automatically logged in. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-26CLEANUP: cleaned up index.php a bit more by introducing an 'action' variableArun Persaud1-38/+28
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-2322/+12
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>
2008-04-18BUGFIX: couldn't unclick no90 callArun Persaud1-7/+7
radio buttons for calling "no 120", "no 90", etc. had all different names and therefore clicking a second one, didn't unclick the first one. Signed-off-by: Arun Persaud <apersaud@lbl.gov>
2008-04-07CLEANUP: started some database cleanup and added some more commentsArun Persaud1-60/+66
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>
2008-03-29BUGFIX: a comment for schweinchen was issued even in solo games without ↵Arun Persaud1-2/+6
schweinchen fixed the comment issue and also added trump solo to games where schweinchen will count Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-29BUGFIX: Karlchen and fox weren't accounted for in solosArun Persaud1-2/+28
this made sense in some solos, e.g. trumpless, but not in some other solos, e.g. normal trump solo. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-19BUGFIX: Typo in one of the emailsArun Persaud1-1/+1
fixed a small typo Signed-off-by: Arun Persaud <apersaud@lbl.gov>
2008-03-15CLEANUP: more comments for index.phpArun Persaud1-16/+52
managed to comment the code a bit more ;) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-11NEW FEATURE: Ability to add personal notes for each gameArun Persaud1-1/+25
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>
2008-03-02BUGFIX: Score table in email displayed some htmlArun Persaud1-2/+2
had two str_replace functions in the wrong order, should be fixed now. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-01FEATURE: display names of new players and last logged in playersArun Persaud1-4/+12
instead of showing all registered players, just display the above. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-03-01FEATURE: add score table to email at the end of the gameArun Persaud1-0/+32
the last 4 lines of the score table are now added to the email that is being send out at the end of a game. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-06BUGFIX: show that is is your turn after a new game has been createdArun Persaud1-14/+11
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>
2008-01-06NEW FEATURE: show the time a game took at the end of the gameArun Persaud1-0/+5
display time in hours together with total points. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-01-06BUGFIX: people can't start new games unless they are part of itArun Persaud1-118/+137
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>
2008-01-05CLEANUP: started rewrite of pre-game phase, fixed 'start' sectionArun Persaud1-23/+56
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>
2008-01-05BUGFIX: didn't set next player correctly during startupArun Persaud1-2/+4
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>
2008-01-05NEW FEATURE: show Vorbehalte in each gameArun Persaud1-0/+25
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>
2008-01-03BUGIFX: output was displayed twiceArun Persaud1-2/+0
the login information was displayed twice, also formatted the output a bit nicer in html
2008-01-03BUGFIX: fixed some typosArun Persaud1-16/+16
just typos nothing more...
2007-12-17BUGFIX: use of local web links now possibleArun Persaud1-30/+31
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-16LAYOUT: last login and logout text where displayed incorrectly sometimesArun Persaud1-5/+15
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.
2007-12-16BUGFIX: time display used wrong timezones. also optimized things a bitArun Persaud1-17/+0
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-07NEW FEATURE: list game points in last emailArun Persaud1-0/+24
add a few lines to show the total amount of game points for this game in the email that gets send out
2007-12-07LAYOUT: fixed some typos, changed CSS a bitArun Persaud1-8/+12
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: detailed few of the score of one gameArun Persaud1-0/+18
display each of the points re and contra made during the game. At the moment only the names from the database are used.
2007-12-02BUGFIX: finished scoring algorithmArun Persaud1-65/+111
now all games are scored. Rules can be looked up in the wiki.
2007-11-08NEW FEATURE: addicted people can turn of a lot of the email spam and just ↵Arun Persaud1-3/+17
check online all emails saying: it's your turn can be turned off now by a user preference
2007-11-08NEW FEATURE: statistics page, version1Arun Persaud1-4/+4
added a few statistics to an extra page, still not completely done, but already working
2007-11-02NEW FEATURE: count game points, partly done ;)Arun Persaud1-185/+354
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-31CLEANUP: some small code cleanupArun Persaud1-6/+10
moved some css from inline to the style sheet, some linebreaks, etc.
2007-10-31BUGFIX: player could select several vorbehalte at the same timeArun Persaud1-69/+85
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)
2007-10-31BUGFIX: no check for a followup game if someone else already started oneArun Persaud1-0/+17
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.
2007-10-31LAYOUT: moved more text during the setup into the middleArun Persaud1-15/+16
there was still a lot of text that wasn't aligned yet. Still not perfect, but much better than before ;)