===============================================================================
== TODO                                                                      ==
===============================================================================

  - registration: add tooltips to all (or nearly all) form elements
  - check if calling php script is inside k_db folder structure
  - admin: check for admins with identical ip-addresses.

  - Set permissions of admins separately for different tables 
    (reg_data, reg_program, reg_files, reg_check)
  - Import data (csv)
  - Paint closed events in gray (all deadlines past) or red (person limits 
    reached)

Known Issues:
=============
  - the person who uploaded the file cannot see what was uploaded
    => disabled for security reasons
  - Admin can't select subevents that are past deadline or booked out when 
    changing user data

  - Einstellungen von alten events bernehmen => Neues Formular


===============================================================================
== Version History                                                           ==
===============================================================================

Version 2.5.0
=============

Additions:
- Changed event list for admin pages
- Set event inactive
- Changed layout of statistics page
- More filters for views
- Moved some layout elements from html to css

Bugs:
- When filtering by grand_total, discount was not considered
- When sorting a filtered view, the filter was reset

Version 2.4.6
=============

Bugs:
- Several minor bug fixes.

Version 2.4.5
=============

Additions:
- view_show.inc.php: number of entries is shown.

Version 2.4.4
=============

Additions:
- No-login page shows current and coming events.
- New option: Organisation name (used for "forgot my password" emails).
- Better "forgot password" email.

Bugs:
- Some text in forms_preview.inc.php was not displayed. Fixed.

Version 2.4.3
=============

Additions:
- Columns in views_show.inc.php can now be sorted by clicking on the table 
  header.
- Changed session management.

Bugs:
- admin/registration_edit.php showed always "Authorization Required". Fixed.


Version 2.4.1+2.4.2
===================

Bugs:
- Checking fields in views_show.inc.php could not be saved. Fixed.
- When selecting "View deleted" a part of the menu was not visible anymore.
  Fixed.


Version 2.4.0
=============

Addition:
- Added 'allow_email' option so users can select to receive promotional emails.
- Better UI fr editing fees.
- New options for "views": 'selectable only with chosen event', 'edit entries'.
- Error messages are now displayed at the top of the page.

Bugs:
- Menu points for editing were accessible even if editing was not allowed.
  Fixed.
- Short title of events is checked for dublicate entries. Short title, Title of 
  the event and Conference email have to be filled out to add event.
- Now checking if ROOT_EMAIL or Conference/Webmaster email is set before 
  sending email.
- More minor bug fixes
  

Version 2.3.5
=============

Bugs:
- Fixed bug in setup script.
- Custom form elements were not correctly displayed in forms_edit.inc.php. 
  Fixed.


Version 2.3.4
=============

Additions:
- Option to send email when admins adds participants.
- Some minor tweaks in views_show.inc.php.

Bugs:
- No password was generated when admins adds participants. Fixed.
- kdb_update.inc.php: Empty queries displayed error. Fixed.
- Some translations have been missing. Fixed.


Version 2.3.3
=============

Additions:
- Login is now possible with email or registration number.
- New registrations can be checked if email already exists.
- An external style sheet can be specified for the registration pages.

Bugs:
- Several small bugs have been fixed.


Version 2.3.0
=============

Additions:
- Added groups for admin users and events.
- A discount can now be given.
- If an event is still bookable is now shown on the statistics page.
- Enforce password change on next login for admin users.
- Send login data per email when creating admin users.
- Added option to use a global registration form.
- Users can view event list and change event.
- Custom css-files may be used to customize layout, colour, etc.
- Users may change their password.
- Passwords of users are now MD5 encoded.
- All event lists are now sorted by event_name or event_title.
- Sorting by date of booking (not registration) is now possible.
- Copy settings from other events.
- Admins can now add participants.
- Changed class for creating zip files.
- Disclaimer displayed as well when logged in and booking event.
- Data deleted by admins is moved to "trashcan" instead (to make mistakes 
  undoable).
- If using global registration form, two emails get sent to users: one for 
  registration and one when booking an event.
- Now sending confirmation email as well when booking an event with existing 
  account.
- User-page for booked event now shows if booking has been marked as "paid".
- Better system for payment options.
- Added preview for registration form.

Bugs:
- Deleting custom form element when no custom form element was set created
  empty file and prevented further changes. Fixed.
- history.back() when declining disclaimer did not work. Fixed.
- Registration possible was not evaluated correctly. Fixed.
- Deleting registration for one event deleted registration for all events. 
  Fixed.
- Better handling for custom form elements.
- Admin users could expand their permissions if "user edit" was allowed. Fixed.


Version 2.2.2
=============

Bugs:
- Registering for more than one event was not possible anymore. Fixed.


Version 2.2.1
=============

Bugs:
- Now checking if "kdb_check_cfe" and "kdb_write_cfe" exist.
- Check if registration start date or registration end date is set improved.


Version 2.2.0
=============

Additions:
- Added fields for date on which registration starts and date on which 
  registration ends.
- Added possibility to send confirmation email bcc to e.g. the conference 
  office.

Bugs:
- Some minor bugs fixed.
- Substring search in views_show.inc.php was broken. Fixed.


Version 2.1.0
=============

Additions:
- Added possibility to set URL to jump to after registration.
- New file upload: curriculum vitae.
- Added possibility to change names of form elements.
- Table header and control elements in views_show.inc.php are now fixed when
  scrolling page.
- Added more tooltips.
- Ported admin interface to IE.
- Added statistics on finances to statistics.inc.php.
- Download all submitted files as zip archive.
- Moved data handling controls from views_show.inc.php to the main menu (menu
  point "Edit").
- Added more controls when using "Select all", "Select none", etc.
- Setup is more userfriendly now.
- Emails send via views_show.inc.php can now be send cc to
  webmaster/conference email/etc.

Bugs:
- Registration form: events, where user login is not allowed, were not
  displayed. Fixed.
- Password no longer printed in FORM_DATA when user login not allowd.
- Improved tooltip display.
- Several bugs in the setup script fixed.
- When sending emails to multiple (views_show.inc.php) variables were replaced
  only in the first email sent. Fixed.
- Email and date of birth were not validated. Fixed.
- Person limit not checked properly (per fee instead of per subevent). Fixed.
- Call to registration_edit.php was possible without "edit"-rights. Fixed.
- Linefeeds in user data replaced when viewing (views_show.inc.php)


Version 2.0.7
=============

Additions:
- Added database update capabilities to kdb_update.inc.php.


Version 2.0.6
=============

Additions:
- K_Db is now checking if file upload was successfull.
- Menu point "Submit abstract" is now disabled if max. no. of abstracts is 0.

Bugs:
- If max. number of abstracts was submitted, first abstract was not selected.
  Fixed.
- When changing one abstract, all others where changed as well. Fixed.
- When max. no. of abstracts is one, the submitted abstract was not
  automatically selected when editing abstracts. Fixed.
- Editing file uploads as admin was not possible. Fixed.
- Some fields regarding file upload where not translated in english. Fixed.
- More minor translation errors fixed.
- Fixed some minor bugs causing incompatibilities with PHP < 4.3.


Version 2.0.5
=============

Additions:
- Viewing registered users is now possible when no event is selected. All
  users shown.
- When deleting users (from reg_data) users registered for multiple events are
  highlighted (red).

Bugs:
- Fixed some minor bugs in views_show.inc.php.


Version 2.0.4
=============

Additions:
- "New event" button in administration menu.
- After adding a new event, this event is automatically chosen.
- Revised user login procedure.

Bugs:
- Submitting abstracts was not possible without uploading a file. Fixed.
- When booking the program for a second conference the program from the first
  conference was deleted. Fixed.


Version 2.0.3
=============

Bugs:
- Link from login page to registration page ("Not registered yet...") did not
  work with multiple events. Fixed.
- A lot of warning messages were displayed in the admin area (error reporting
  was not set to 17). Fixed.
- Fixed handling of deadlines and person limits.
- Deleting fees was not possible. Fixed.
- Adding a fee of 0 was not possible. Fixed.
- Added event selection dialog to registration.php.
- Fixed some minor bugs.


Version 2.0.2
=============

Bugs:
- config/main.inc.php was written, even if database setting were wrong (no db
  connection possible). Fixed.
- Fixed some minor bugs.


Version 2.0.1
=============

Additions:
- Update script

Bugs:
- views_show.inc.php: CSV export did not work when booked program was not
  selected. Fixed.


Version 2.0.0
=============

Bugs:
- Entries from reg_payment were not deleted with corresponding entries from
  reg_data/events. Fixed.
- Table prefix did not work with reg_payment. Fixed.
- During setup table reg_payment was not created. Fixed.
- When viewing registration data, expiration date of creditcard was shown
  even if payment was not by creditcard. Fixed.
- K_Db logo was not desplayed when using k_db_2/registration.php or
  k_db_2/index.php. Fixed.


Version 2.0rc3
==============

Additions:
- Added button to send a test email to the conference email address to the
  "send email" form (views_show.inc.php).
- views_show.inc.php: Ordering by file data implemented.
- Different payment options for differend events possible.
- Added checking for admins with identical names when creating new admin
  account.
- Added error reporting to admin forms.
- views_show.inc.php: Moved payment options from reg_data to program_data.
- K_Kb is now checking if login and/or ip-address is non-ambigous.

Bugs:
- Changed filename in show_upload.php to something more useful
  (like "regid2_10.pdf").
- Updating registration and file data didn't work. Fixed.
- views_show.inc.php: When deleting/emailing not only the selected rows were
  shown. Fixed.
- Only booked fees were shown in statistics window. Now all fees are shown, with
  a 0 if not booked.


Version 2.0rc2
==============

Additions:
- If only 1 payment option exists, it is automatically selected.
- admin: tooltips added in several forms.
- registration: error output added.
- Added "To Registration" to user login form.
- Added buttons "Email selected", "Select all" and "Inverse selection" to
  view_show.inc.php.
- Ask for confirmation when deleting from views_show.inc.php.
- views_show.inc.php: "Delete Selected" now only shown when "Delete Entries" is
  selected.
- Added email form to views_show.inc.php.

Bugs:
- Program form didn't work, when user was registered but no program was
  selected. Fixed.
- German text in registration form replaced with variables.
- More errors in the country names fixed.
- Now showing only views, to which the admin has authorization.


Version 2.0rc1
==============

Additions:
- Setting of event_id when calling registration.php is not necessary anymore,
  if only 1 event exists.
- Included checking, if changing registration data is allowed, disabling form
  elements if not.
- admin: Access restriction by domain possible
- registration: "Forgot password" form.

Bugs:
- Calling registration/index.php and registration/registration.php from
  /index.php and registration.php respectively didn't work. Fixed.
- Missing elements when uploading files were not handled correctly. Fixed.
- When editing registration/program/files data, changes were reversed on
  submitting if required form elements were not filled out. Fixed.
- Admin passwords where not md5 encrypted in the setup script, so login was
  not possible after the setup completed. Fixed.
- The country names available during registration contain many errors. Fixed.
- Admin: payment options were not displayed in forms_edit.inc.php. Fixed.
- After registering, you get a screen with your information, but some of this is
  in German, some items (like "Character") are mentioned although they were
  not an option during registration and some items are not displayed at all.
  Fixed.
- When loging in after registering, the booked program information has some
  lines about creditcards, which shouldn't be there in all cases. Fixed.
- Admin: When deleting booked program, submitted files were not deleted as well.
  Fixed.
- Admin: show_upload.php did not load file (require main.inc.php was missing).
  Fixed.


Version 2.0b2
=============

Additions:
- views_show.inc.php: order by booked program implemented
- views_show.inc.php: added "Entries per page" option
- views_show.inc.php: added "CSV export"

Bugs:
- Some form fields where not accessible in Opera (CSS error). Fixed.
- When changing event to "none", even forms that need to have an event selected
  where still displayed. Fixed.
- Editing program was not possible (admin tool). Fixed.
- Topics were not shown in file upload form. Fixed.
- Password was erased when editing reg_data. Fixed.
- Several bugs with file uploads have been fixed.


Version 2.0b
============

Additions:
- Added form "login"
- Implemented viewing of registration data (registration area)
- Implemented editing of more than one submitted abstract
- Added "authors" for file submission
- Added form "payment"
- Admin passwords are now encrypted
- Added tooltips to form elements in setup script

Bugs:
- When loggin in, statistics.inc.php was not shown. Fixed.
- In views_show.inc.php only numbers (id) were shown for salutation,
  country and topic. Fixed.
- statistics.inc.php showed statistics from ALL events (not just the selected).
  Fixed.
- When logged in as user, one was also logged in as admin (although with nearly
  no rights). Fixed.
- Several bugs in the setup script where fixed.
- "file_id" was not set when uploading new file. Fixed.
- Usage of "salutation"/"country" and "salutation_id"/"country_id" was not
  consistent. Fixed.
- Password field in database was only 8 characters long while generated password
  has up to 10 characters. Fixed.


Version 2.0a5
=============

Additions:
- Added possibility to mark lines in 'views_show.inc.php'
- Added sanity checks to statistics.inc.php

Bugs:
- Fixed a bug in index.php (login with ip address only didn't work)
- Submitting strings containing ' or " didn't work. Fixed.


Version 2.0a4
=============

Additions:
- Checking user rights when viewing views
- Added icons/checkboxes for editing entries in views_show.inc.php
- Implemented editing of entries other than reg_check
- When deleting entries in reg_files, file in "upload/" gets deleted as well


Bugs:
- Fixed several bugs in login.inc.php
- Some minor bugfixes


Version 2.0a3
=============

Additions:
- Checking user rights when requiring .inc-files
- Form to add/edit "salutations" added
- Form to add/edit "topics" added
- Added "Delete" button to (nearly) all forms

Bugs:
- $table_prefix was not used in SQL queries. Fixed.


Version 2.0a2
=============

Additions:
- table "views" added to database
- created form to create views (views_create.in.php / views_write.inc.php)
- created form to view views (views_show.inc.php)
- created update script

Bugs:
- fixed bug in "users_write.inc.php"
- fixed bug with "publish on website" (different naming in event_forms and
  reg_data)
- fixed bug in "forms_write.inc.php" and "forms_edit.inc.php"
  (_PHP['form_event_id'] was not set -> update not possible)
- fixed bug in "program_write.inc.php" (non-exclusive subevent types were
  not handled correctly)
- minor bug in "fees_write.inc.php" fixed (if new subevent => fee is treated as
  new as well)
- fixed several bugs in "kdb_options_edit.inc.php" and
  "kdb_options_write.inc.php"
