Re: [PHP] User Management

2005-04-13 Thread aznFETISH
I use something like this the numbers 1,2,3,4 are an array of member group ID's so it checks the users session to see if they are a member to one of those groups $_product_id = array(1,2,3,4); require_once("/home/blah/public_html/members/plugins/protect/php_include/check.inc.php"); <[EMAIL PROT

Re: [PHP] User Management

2005-04-13 Thread Dasmeet Singh
tive for me. Cheers, ~Stephen March, CIS, BSc -Original Message- From: Dasmeet Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 4:15 AM To: php-general@lists.php.net; [EMAIL PROTECTED] Subject: Re: [PHP] User Management Thanks.. And how to manage user and their permission

Re: [PHP] User Management

2005-04-13 Thread Satyam
One of the most flexible ways to do this is to have one table with each user information, then a table of groups and group members. Users, per se, don't have permissions, they acquire them from the groups they belong to, it is easier that way than to assign permissions to each individual user,

RE: [PHP] User Management

2005-04-13 Thread Stephen March
r to role. I haven't found an "easy" solution per-se, but this is effective for me. Cheers, ~Stephen March, CIS, BSc -Original Message- From: Dasmeet Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 4:15 AM To: php-general@lists.php.net; [EMAIL PROTECTE

Re: [PHP] User Management

2005-04-13 Thread Dasmeet Singh
Thanks.. And how to manage user and their permissions.. should I store each page name in a table and then store permissions of each and every user to individual pages in another table? Is there any other way to do this? [EMAIL PROTECTED] wrote: use an include file at the top of each page. in thi

Re: [PHP] User Management

2005-04-13 Thread angelo
use an include file at the top of each page. in this include file you will check to see whether that user has access to see that page, if they dont then just redirect to the main menu page or an error page. hope this helps Angelo Zanetti Z Logic www.zlogic.co.za