Page 1 of 1

Need Direction in Script

Posted: Fri Dec 05, 2008 9:47 am
by CoolAsCarlito
I'd like to know the best way to go about doing this. I have two types of users for this script. Admins and non admins. Difficult yes I know. Anyway once a user logs in it checks my DB with the username the user logged in with to check what type of user they are and regardless of the type still sends them to the control panel however the difference is what options are available to them to see and use inside the control panel. I also want to know how what is the best way to make these functions so that it just brings up the right thing on the right side of the window.

Image

Now if you were to click on bio it would open us its function and put this in the right side.


Image

Re: Need Direction in Script

Posted: Fri Dec 05, 2008 11:29 am
by watson516
Not sure if its the proper way of doing things but I usually just create a nav table in my db and give the links a level. A user is level 1, an admin is level 5. User can access links that are level 1, admins can access links that are level 1 or 5. Then you just have to verify on each admin page that the user that is logged in is indeed an admin.