I need some help developing a php script that allows users to add a session logged in check to specified php pages on their server.
If it is necessary to use ftp access, it would be useful if settings were configurable in an external file.
It needs to provide:
A directory listing of the files in a server, the directory level of the virtual root file should be user-specifiable, again in a separate file if possible.
Script to allow the opening and editing of the file(s) specified. This would need to search for the '<?php' and '?>' and insert the required data after and before them respectively, not unlike EasyMod (for phpB😎.
The removal of the session ID scripts from pages. If possible, it would be preferable if the names of the files which had the session 'logged in' check enabled to be stored on a mySql table so that those files could be displayed in a drop down menu on the 'Remove Security' page.
I plan on using mySql to create a table with users (which can be added by admins), and then logging valid users in and assigning session IDs.
Obviously, I'm not asking for a fully made script (though one would be nice-hehe! 😃 ), but simply a few ideas on how to accomplice the tasks set out above.
Feel free to clarify any of the objectives!
Thank You!