PHP file manager and MySQL
Posted on 2013-01-29
i want to put in a file manager onto a website for an admin to upload, download, edit....files and folder directly onto the website page containing the file manager. as my site will also have other users that do not have admin access i would like them to see the changes reflected to their files if the admin had deleted or renamed a folder.
essentially what i have done is created a database that tracks the creation and destruction of folders, users, files and other information. this database also aids in the premissions and user logons.
within this database there are two types of users an admin and a standard user. a standard user can only upload delete and download their own information. their view is limited and their options are limited as well.
the other user is the admin which can see all the files within the designated folders(uploads). the uploads folder is the main folder containing all external data. the admin would not have root access to the main pages - just to eliminate confusion. the admin would be able to add create and adjust anything within this uploads directory. i would like this functionality to look similar to windows explorer as that was the admin would be user to seeing and using -more for asthetics-
if the admin made changes the changes would be reflected on the users account if the changes applied to that user or users.
i have a linux hosting account and am using php to do all the coding with.
i have looked into open source codes such as extplorer and others but they seem to handle the logon process and maintain their own "database" for lack of a better name. i want the same functionalities these programs offer but have it simplified so i can place it into my existing framework.