[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-general
Subject: Re: [PEAR] Question about Auth.php
From: Norbert Mocsnik <pear-general () mocsnik ! hu>
Date: 2004-03-29 20:56:45
Message-ID: 40688D8D.2080102 () mocsnik ! hu
[Download RAW message or body]
Hello David,
See Example 16-2. Using optional authentication at \
http://pear.php.net/manual/en/package.authentication.auth.intro.php
Change the code so that you pass an empty loginFunction() to the script. In this case \
it won't output anything if someone's not logged in.
Provide a link on your site where the login form appears. Simply cut and paste the \
code from the existing loginFunction() and put it into login.html, for example. \
Create a menu item / link / whatever on your site that links to this file so the \
users can log in by clicking this link.
I think this should work.
Regards,
Norbert
David wrote:
> Hello
>
>
>
> I’m a swiss student and I discover PEAR a week ago.
>
>
>
> I’m using class Auth.php but I don’t want to see the login form when I’m not
> logged.
>
> I don’t know how change this, anybody can help me ?
>
>
>
> Thanks
>
>
>
> David
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic