Hi.
I can't even begin!!!
Ok. Let's say i have User.inc
This include file is included in the programs/files menu.php, users.php and adduser.php
The user types are already set up, and i am not haveing a problem with that.
User A is allowed to do all the functions for the three pages.
User B can't access adduser
User C and access them all, but can only add users from their own country.
(these are just examples, the actual program is much more complicated)
Right now, these are set up for each page to do the check, assign the rights, ect ect ect.
My boss, (not me!!!!) wants this new file/program usertype.inc to handle all of these functions, or at least the access rights to most, so that in the future it is easier to grant new user types and such and such to a program ect.
So basically...
is there a way, that when the inc file is called on, and the inc program starts to run, to check where the user has come from??
like say they were coming from the menu, it would check that, and then begin to assign the rights.
here's to hopeing there is!!!🙂😃