Re: [Phplib-users] again auth.inc and perm.inc !
Brought to you by:
nhruby,
richardarcher
|
From: Michael C. <mdc...@mi...> - 2002-06-11 01:47:44
|
On Mon, Jun 10, 2002 at 05:22:39PM +0200, Giancarlo Pinerolo wrote: > You mean we should integrate it into phplib? Or that we should migrate > to phpauth? Whatever you want to do. It's all GPL'd. > I've seen phpauth, but phplib has a wealth of features that phpauth > doesn't have. I thinkk actual users of phplib would miss them. Name one. There are no features missing that I use (and plenty of features that I've added that are needed in phplib), but some people may want templates. It should be possible to bring the code over with no changes. > If you are proposing to integrate, let's have a look. > My auth.inc works 100% within the phplib framework. Any site using > phplib will not notice the substitution. > In fact the new method start is really barebone, and the > login_in_process state flag can be added in a breeze. > To integrate phpauth into the eisting phplib frame I think would require > more work than that. Given that phplib's auth is broken, I don't care to make a drop-in replacement. Some of the problems are fundamental to its design, such as the following mess: if ($auth && $auth->is_authenticated() && $auth->is_authenticated()!='form') ... I would rather *not* emulate that. I also want to get away from including tons of files, I'd rather just call functions since you don't have the confusing scoping issues that file inclusion may bring. I could go on, but you get the point. I cover most of this in my docs, anyway, read them to understand most of the issues behind the divergence from phplib's auth class. Michael -- Michael Darrin Chaney mdc...@mi... http://www.michaelchaney.com/ |