Re: Question about Auth.php
| From: | Norbert Mocsnik | Date: | Mon, 29 Mar 2004 20:56:45 +0000 |
| Subject: | Re: Question about Auth.php | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11520@lists.php.net to get a copy of this message | ||
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