Fixed some potential undefined index NOTICE errors.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1048 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed a problem with company name not appearing.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1049 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Added the ability for a PHP file (called 'post.inc') to be executed if present after a database upgrade.    This allows, for example, new columns to be populated with appropriate values.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1050 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Made the timeslot settings (resolution, default_duration, morningstarts, morningstarts_minutes, eveningends and eveningends_minutes) per-area settings with the values being held in the area table of the database.   Default values are taken from the config file.   The area values can be edited from the edit_area_room.php page.   At this stage period settings have not been moved to a per-area basis, but could be in the future, as could other config variables such as timezone.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1051 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fix to avoid an undefined variable notice.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1052 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Made representation of 12 midnight with a 12 hour clock consistent with the rest of MRBS - ie written as 12:00AM not 0:00AM.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1053 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Added ability to create private bookings.  If enabled, entries can be hidden from other non-admin users.  See config file to enable this feature and for options.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1054 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed a problem with the display of multiple bookings when the first booking in the slot starts at morningstarts.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1055 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed problem that stopped editing of area details working when using periods.

git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1056 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Improved checking of number of slots in the config file and also when editing areas.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1057 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Used a slightly more obvious conversion of JavaScript variables from strings to integers.   No change to functionality - just a bit more maintainable.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1058 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Restored the highlighting of single rows (achieved through clicking on a time) that got lost when support for the display of multiple bookings in a timeslot was added.

git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1059 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed bug which caused the wrong area settings ($resolution etc) to be used by edit_entry_handler when there was more than one area.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1060 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Improved handling of conflicts in edit_entry to allow for easy addition of more booking policies (at present there is only one, a limit on the number of bookings).


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1061 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed bug that meant that the right area settings ($resolution, etc.) were not being picked up if you were editing an existing booking and the system had more than one area.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1062 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Added some ids to divs to assist in styling the header.

git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1063 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed bug which prevented ordinary users editing their own details when using 'db' authentication.

git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1064 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed bug causing undefined variable notice.

git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1065 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Corrected DB upgrade for private bookings to use configured DB prefix instead of default mrbs_ prefix.


git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1066 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7
Fixed Undefined Variable warning related to private bookings when accessing Help page.

git-svn-id: svn://svn.code.sf.net/p/mrbs/code/mrbs/trunk@1067 25f7e783-145e-4f2d-a9f8-dd7182bfe9c7