ok... here goes...
I have three users ok, a divisional user, with mininum access rights, a divisional dba, with medium rights, and a system dba, who has max rights.
This is a large and complex database and program structure, with various user pages and programs.
Presently, it is set up so that each program checks the user type and indivisiually grants or denies that user access to the page or program they are attempting to access.
Hope everyone's with me so far. 🙂
I'm rather new, to php, this far...
My job, is to set up one program, that I can include in every file/program, to check the user type and allow access rights.
I thought it would be simple, but it's not turning out that way, already i'm having difficulties.
I set it up correctly, for the different menu views, but now can not do anything else, including the footer.
Because of the fact that every page checks the user type, in the same way, but some grant half permission, some all, ect ect.
I am basically looking for some ideas, and to be pointed in the correct direction to go from here.
I was thinking, if the user_type.inc file i'm using for the main program, could check and see where the user is trying to access, or what page they are currently on, or both, maybe that would be a start?? but i'm lost.
hopefully someone has more experience then my blonde brain. 🙂
thanks!