Re: [phplib] Accessing User variables as different user From: Padraic Renaghan (list <email protected>)
Date: 07/24/00

* Nels Lindquist <nlindq <email protected>> [07/24/00 11:02am]
> The problem I'm having is that I want to be able to set User
> variables at the time the user is created. Currently I have an
> enormous kludge whereby I have to (as administrator) create the user,
> log out, log back in as the user, go to a special form where I set
> the variables in question and then log out.

You should probably add a new table to contain these fields, or add the
fields to the end of the auth_user table. Then in auth_validatelogin() you
can retrieve those fields and add them to the auth->auth[""] array. After
you add them to the auth array, they are available on any page that
includes auth. You can write an admin page that updates these
fields/tables.

-- 
Padraic Renaghan /pad-rik ren-a-han/
padraic <email protected>
ICQ# 9437815 AOL IM: PadraicRenaghan
http://renaghan.com/pcr/

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>