I can give you the whole code .. already written and tested if you like .. it's a bit long-winded to go into over the forum, but I've zipped it up and put it here (zip removed because of heavy traffic) if you want it ... I know you can code pretty well, so I'm sure you'll have no problem picking through it, tidying it up, and changing the variables to match your own setup.
The login routines are pretty piss-poor. I never got around to writing the user authentication part so the uid and passwd are in text in the code, but for one user it's OK, and I know you'll fix it if you feel the need anyway. If you want to extend it for multi-user access you'll need to sort out a mySQL dB with username/password/"home" directory details in it. Either that, or give each of them their own copy of the programs ... and put their data directory elsewhere (pretty scruffy solition!!)
It only permits access to a tree BELOW a named "root" directory, and permits upload, delete, rename and view file ops and chdir directory ops. I never got around to mkdirs but it ought to be pretty easy. There's no traversal upwards from the base dir.
Clicking on a filename will cause the browser to attempt to open it in a new window, the rest is done with checkboxes or text boxes.
I put up a demo directory on my system so you can try it out, but the password is different on mine compared with the one in the zipper, so e-mail me for the details. It's the one I was going to use as a second tutorial for the Gurus so let me know what you think of it.
(PS - Somewhere in my dev stack I have a better version which sorts out directories before files and makes the layout a lot tidier .. I'll look for it if I find the time)
Bug-free software only exisits in two places
A programmer's mind and a salesman's lips
[This message has been edited by trib (edited 07-24-2003).]
[This message has been edited by trib (edited 07-24-2003).]