Re: [Phplib-users] Giancarlo Pinerolo (pingus) auth patch
Brought to you by:
nhruby,
richardarcher
|
From: Giancarlo P. <gia...@na...> - 2002-06-07 01:18:59
|
Giancarlo Pinerolo wrote:
>
> Joe Stewart wrote:
> >
> > Another method that works without patching phplib is like this:
> >
> > if(isset($HTTP_POST_VARS['username'])) { // this would be present if a login is in progress
> > $auth->auth["uid"]= "form"; // this is what auth seems to want
> > $auth->start();
> > }
> >
> > $auth->login_if(!$perm->have_perm('user'));
> > Here is a simple example:
> >
> > http://www.phpslash.org/index.php3?section_id=11
> >
> > have fun,
Ya. I too have adopted, this patch you show, for years, transmitted over
from generation to generation of phplib ;-)
That's why I decided to cut short the whole stuff.
Nevertheless, you can much more easily and cleanly
place it back in my page.inc (the one in the patch 'simplifying auth'),
as a prior/post trigger to the form exibit .
Gian
|