updated copyright to 2014
updated copyright for 2013
improved language detection using browser information; set the language 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.
starting to bootstrap the layout: navbar and tricks - 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
replaces some more " with '
BUGFIX: removed side effect from getting the user's preferences: the 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
updated copyright notice for 2012
Added about page
NEW FEATURE: added localization support using gettext to add support for localization
added check in DB_open for correct DB-version
added copyright notice and GPL reference
highlight the call if this is the last round where you can make this call also added some more comments
NEW FEATURE: login button 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>
NEW FEATURE: new settings page, user can now change timezone 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>
CLEANUP: moved the statistics page into the include directory 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>
CLEANUP: moved register.php to the include directory new users are now also automatically logged in. Signed-off-by: Arun Persaud <arun@nubati.net>
CLEANUP: cleaned up index.php a bit more by introducing an 'action' variable no more if, but one nice switch statement in index.php Signed-off-by: Arun Persaud <arun@nubati.net>
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>
BUGFIX: couldn't unclick no90 call 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>
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>