Date: 07/23/00
- Next message: LARIUNGU <email protected>: "[phplib] Errors while attempting to display test pages"
- Previous message: Ed Lazor: "Re: [phplib] active_session question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I've been re-visiting phplib recently and to get the hang of default
authentication, I am trying to setup a page as follows:
1. There is a certain amount of default content that is visible always (i.e.
both authenticated users and guests
2. if no user has authenticated, a "login" button should be shown
3. if a user has authenticated, a "logout" button should be shown
4. if the authenticated user has admon privileges then show additional
content
Something like (warning: dodgy pseudo-code follows!)
<html>
etc..
// default content goes here
<?
if is_authenticated then
show "logout" button
else
show "login" button
if is_authenticated and
has_permissions("admin") then
show admin stuff
?>
</html>
I have got as far as realising that default authentication is the way to go,
but I can't quite seem to get my head round the finer details of getting
this working.
Can anyone offer any advice?
Thanks for any suggestions,
R.
-- "Oh, love is real enough; you will find it someday, but it has one archenemy -- and that is life."--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: LARIUNGU <email protected>: "[phplib] Errors while attempting to display test pages"
- Previous message: Ed Lazor: "Re: [phplib] active_session question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

