Ok, all fixed now. Plus, added viewing/clearing the log, some bug fixes, and a LOT of error checking! On checking in, if the filename you’re checking in isn’t the same as the filename you said you want to checkin, it’s an "alert" error. This will still work even when versioning is set up; the checkin processor will generate a new random name for storage, and create a new version name out of the checkin file name and enter that in the database as if it were a new file, only increasing the old version’s version number by one. Also added "delete file from server on checkout" (but keeping the database entry; my client doesn’t have all that much space to be keeping all these files), and "notify owner by email on checkin/checkout" options to the add new file form.
This is fun!
Will have version 2 final by this evening; just getting all the display strings moved out into the $lang file. Not to worry if you don’t have langs enabled; it will use your system[site_start] document ID as a lang ID; part of installation requires renaming the default lang file to the ID of your site_start document. Will be easy enough to automate once I get it live on the client site and spend a bit of time on a proper install script.
Ok, version 2 is ready for action. It’s up on
http://www.sottwell.com, filemanager-filemanager as before.