Need Direction in Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CoolAsCarlito
Forum Contributor
Posts: 192
Joined: Sat May 31, 2008 3:27 pm
Contact:

Need Direction in Script

Post 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
watson516
Forum Contributor
Posts: 198
Joined: Mon Mar 20, 2006 9:19 pm
Location: Hamilton, Ontario

Re: Need Direction in Script

Post 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.
Post Reply