Re: [Phplib-users] snapshots available on sf.net
Brought to you by:
nhruby,
richardarcher
|
From: Giancarlo <gia...@na...> - 2002-10-08 09:21:54
|
Il 10:49, marted=EC 8 ottobre 2002, Marko Kaening ha scritto:
> [Tue Oct 8 09:53:42 2002] [error] PHP Notice: Undefined index:
> username in /usr/local/lib/phplib-0.74.20021007.patches/php/local.inc =
on
> line 175
>
> I use the Challenge_Crypt_Auth class, which nobody seems to have looked=
at
> with latest changes.
> Here username is used in the sql-select in auth_validatelogin() eventho=
ugh
> it's undefined, instead the select should be circumvented if the userna=
me
> wasn't defined yet.
Yes, we've only looked at to make the Example_auth work. Extendingg that =
to=20
other 'validatelogins' has to be done.
Validatelogin should be the ultimate class where to test the presence of,=
=20
sanitize ecc, the input fields, try validate them. It should return the=20
valid id, or false. If expired is checked also. Anyone not 'someone' has =
his=20
uid set to 'nobody'
> I wonder whether the formids functionality could be transferred also to
> this class?
>
Yes, it will have to, if it proves OK.
>
> [Tue Oct 8 09:53:42 2002] [error] PHP Notice: Undefined variable: s=
ess
> in /usr/local/lib/phplib-0.74.20021007.patches/php/auth.inc on line 10=
9
>
> $sess should be global in start_actions()!
>
Picked up! Thanks. The auth_doregister is the other, optional, start_acti=
on=20
that has to do practically the same as validatelogin: sanitize&check prov=
ided=20
input, then register&return a valid uid or false
>
> [Tue Oct 8 10:32:25 2002] [error] PHP Notice: Undefined property:
> newid in /usr/local/lib/phplib-0.74.20021007.patches/php/auth.inc on
> line 110
>
> Var newid is obviously not created and cannot be used in the same
> function. I use PHP4 sessions in files mode.
>
I have yet to find a way to block alien_sids with php4. I cannot know whe=
n=20
the session I start, is being created as new or is a resumpted one. I can=
not=20
find a way to restart a session, in case... =20
That if ($sess->newid) {
can be taken off, with its closing bracket
>
> [Tue Oct 8 09:53:42 2002] [error] PHP Notice: Undefined index: mode
> in /usr/local/lib/phplib-0.74.20021007.patches/php/page.inc on line 95
>
> It should read I guess:
>
> $mode=3D(isset($HTTP_GET_VARS['mode']) ? .....
>
>
>
> Otherwise everything seems to work as expected. No further problems up =
to
> now.
>
>
> Good luck,
> Marko
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Phplib-users mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phplib-users
|