RE: [PHP-PEAR] HTTP authentication class for PEAR?

From: Date: Tue, 02 Jan 2001 17:54:25 +0000
Subject: RE: [PHP-PEAR] HTTP authentication class for PEAR?
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-756@lists.php.net to get a copy of this message
On Tue, 2 Jan 2001 12:25:54 -0500, Colin Viebrock wrote: >> >I've got a class sitting around that does exactly this. Does >> someone feel >> >like PEAR-ifying it for me? >> >> If you post it to the list or send it directly to me >> I'll try to do it in the next days and commit it then. > >Okay Martin, here you go. :) Apologies for the attachment. Hmm, in my initial posting to the list I mentioned a class for performing __http authentication__ like <?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); echo "Text to send if user hits Cancel button\n"; exit; } else { echo "Hello $PHP_AUTH_USER.<P>"; echo "You entered $PHP_AUTH_PW as your password.<P>"; } ?> like it is described in the manual on http://www.php.net/manual/features.http-auth.php (In a of course more 'enhanced' version than shown above). Your script handles authentication via a login form, as it is done with auth object of PHPLIB. So first I'll make my script handling http authentication ready for PEAR and commit it. After that I'll do the same for your login script, ok? -Martin -- · Martin Jansen · mailto:mj@php.net · · Monschau, Germany · http://martin-jansen.de ·

« previous php.pear (#756) next »