Date: 08/31/00
- Next message: Maurice Jumelet: "Re: [phplib] Default authentication"
- Previous message: Michael D. Eschner: "Re: [phplib] login based redirects and groups"
- In reply to: Mitchell Hagerty: "[phplib] login based redirects and groups"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You can give different users different permissions (see the user table)
redirection can be done on several ways, if you use this method make sure
you don't print any data before printing the header otherwise you get an
error.
An example that might help:
if ($perm->have_perm("admin") {
/* direct to administrator files */
header("Location: admin.php3");
}
if ($perm->have_perm("editor") {
/* direct to editor files */
header("Location: editor.php3");
}
Hope this helpes.
Maurice
NOXX.com
----- Original Message -----
From: Mitchell Hagerty <mitchell_hagerty <email protected>>
To: <phplib <email protected>>
Sent: Thursday, August 31, 2000 9:52 PM
Subject: [phplib] login based redirects and groups
> Hello,
> Hope this hasn't been asked before. The search feature on the phplib
> mailing list archive appears to be inoperative. I'm new to PHP and
> programming in general. I using Apache 1.3.12 with mod_php3.0.12 and
> phplib 7.2c.
> The goal is to set up a login system that automagically redirects users
> to their correct section and allows group privileges to certain area's.
> For example: if I login I want to be sent directly to the Admin page, if
> John logs in he gets sent to his personal page, if a developer logs in
> he get sent to the developers page. At the group level as the admin I
> also want access to the developer page. But the developer and john
> should not have access to the admin page.
> I've set up a basic login using phplib and mysql that logs me in but I
> am not sure how to set up the redirects or group permissions for other
> people. Are there examples available or can anyone enlighten me?
>
> Content cannot be stored in the database.
>
> Thanks
> Mitch
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Maurice Jumelet: "Re: [phplib] Default authentication"
- Previous message: Michael D. Eschner: "Re: [phplib] login based redirects and groups"
- In reply to: Mitchell Hagerty: "[phplib] login based redirects and groups"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

