Hi I have secured my folders on my web site with CPanel. CPanel has its own folder protection built into the admin console. I also have a separate login system that uses php. I.e. user registers email and password which is hashed and then saved in MySqlDB. With this they have access to all files at root level / or folders not secured by cpanel. Folders off the root that I require elevated rights to access are locked by cpanel.
I would like to know how to bypass the cpanel security if my user is approved without adding their access manually into cpanel for cpanel secured folder. I.e. if approved this user would have been elevated by webmaster and can now have access to secured folder / locked by cpanel. By elevation I mean there is a tick entered manually into database that elevates user. I.e. 1 means elevated and 0 not. Elevated users will therefore have access to all cpanel secured folders even thought they are not created in cpanel / given rights in cpanel.
Note that access via php with registration system is automatic and managed by the user while cpanel access must be manually entered for each folder via a pop up Name and Password box. Obviously automatic registration by user and manual rights added to a folder will never be the same. From the answers I have received it appears: 1. I must build all access into php and use a database. 2. Only use CPanel folder security for php classes etc. that I want secured as php bypasses the cpanel httaccess security.
Does anyone know how I can use php to restrict access to my stuff in a sub folder at folder level to all except users who I have manually elevated to the rights needed to access the folder. I will do this directly on the database by changing a flag against their name. I.e. how do I use php to mirror the cpanel folder security.