Re: [Phplib-users] again auth.inc and perm.inc !
Brought to you by:
nhruby,
richardarcher
|
From: Guillaume D. <gde...@pr...> - 2002-06-10 10:33:05
|
I've not really follow this discussion closely but i cannot disagree that the code of auth.inc is pretty much hard to maintain... and that it is very hard to code a phpnuke login style with it... and the default_auth is not very helping... so the code of the auth.class is probably not exactly what we need now... So, the suggestion of Giancarlo make sens for me, but it is an evidence that we need to examine closely the "secondary effect" of these kind of modification in the structure of the auth class ... Using session to store the pre_login_state of auth class seems to be a good idea to avoid the "vicious circle" of an auth class not ready authenticated... and avoid to use auth[uid] as a flag seems to be a really good idea too... Moreover... the perm.inc should be probably redesigned... the use of a bitmask is a great idea in a vision of phplib used to build a simple application... but phplib is now involved in "large" project : a web site with many "little" application... each application needed is own perm sheme... so we need to have a real user/group/perm sheme. I've built a perm.inc like that using an email from Kristian... and I've submited my code to Richard for examination, but Richard seems to be very hard working, so he has no time to see it. If anybody want to see it, I'll be happy to share that code... and I'll be happier to see this code included in the next version of version phplib... Guillaume PS: sorry for my bad english... |