Changes in 1.5.0b
- Optimised search. Improved the performance of the search function by placing more of the work on the database and by applying indexes to some of the tables. Sub-folder searches are also dramatically improved due to the incorporation of a folderList field in the tblDocuments table.
- Optimised display. New compact theme significantly reduces the page load times. This is the default theme. The original is still available as a selection.
- Changed file download headers such that downloading works with IE over SSL.
- Changed all instances of $HTTP_COOKIES_VARS, which has been deprecated, to $_COOKIE.
- Replaced all short open tags (< ?) with
- Removed the dependency upon register_globals.
- Database: removed the id column from tblDocumentContent. Changed the primary key to be (document, version) with the auto_increment on the version field. This enables the database to automatically assign the next appropriate version number to any new row inserted into the table without having to explicitly look up the existing version value, increment the result and store that as part of the insert statement. It guarantees that there will be no conflicts or duplication of version numbers by simultaneous inserts. The id field was not required as it was not used anywhere except as a convenient identifier. It was easily replaced by (document id, version).
- Database: Moved the lock field into a separate table for managing locks. Fixes a problem where it was possible, although unlikely, for two people to simultaneously request a lock on a document.
- The settings file, inc/inc.Settings.php, is renamed in the distribution to inc/inc.Settings-sample.php. This is to avoid any existing settings being deleted during an upgrade. To use MyDMS for the first time, users must now copy (or move) this file to inc/inc.Settings.php and edit before using MyDMS.