SuprBay: The PirateBay Forum

Full Version: Structuring the PHP site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello there, I want to know "How can i structure groups within a website? (groups like i mean-- admin ,moderators, helpers,users, etc-etc) ? " in context of PHP ... this site has the groups like this as i said, please someone provide me some concepts and ideas how i can implement this ?  Shy
I think it might be like role based access control.

A boss can usually enter the worker's room without "permission"
A worker must have "permission" to enter the boss's room

A school safety officer's job is to keep the school
A student's job is learn
A teacher's job is to teach

Something like that
CMIIW Big Grin
Pretty much. Each member account has a field that stores assigned roles. It has nothing to do with PHP.

Regardless of language used, you simply check whether or not the member has the necessary role assigned to perform the requested action.
Thanks for the responses ... please let them coming, they will help me alot !!!
Simply put, you can see this in a multi level login example, I think.
Look at this:
drupal.org/docs/user_guide/en/user-concept.html