Hi!
I am developing an applicaton in PHP where different users would have
different permissions and access to different functions/pages of
website. Now whats the best way to do tht?
One way I can think of is keep all permissions in a table and divide
everyting on site into functions..and when
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
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
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 PROTECTED]
Subject: Re: [PHP] User Management
Thanks
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,
-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 permissions.. should I store each page
name in a table
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
hey
doing some basic research... has anyone found a seriously good user
management script (preferably free) that can be incorporated within a web
application.
i'm looking for something that allows for the following functions:
- user registration/login
- admin function
- group/team
I wrote a job-tracking/workflow management application called Willow Job
Tracker. You can download a copy of the free GPL version from here:
http://dawnstar.com/index.php?display=ProductDetailsid=780
And there's a demo here:
http://dawnstar.com/wjtf/
Login to the demo using admin/admin.
9 matches
Mail list logo