Re: Re: PEAR Forum
| From: | Morgan Christiansson | Date: | Tue, 25 Sep 2001 13:15:17 +0000 |
| Subject: | Re: Re: PEAR Forum | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2024@lists.php.net to get a copy of this message | ||
Luc Saint-Elie wrote:
En réponse à "Tomas V.V.Cox" <cox@idecnet.com>:Yeah, something like PEAR/User.php. Of course the user stuff shouldn't be PHP specific. At least not the database scheme. And not DB specific either. And a class for authenticating, inserting, fetching, removing users. And different levels of data collected about the user, or just setting unused fields to NULL. User registration too would be nice, it's a pain to set up user registration scripts. I have a registration script that might fit, it uses HTML/Form to generate a form and takes an array as argument, a little messy but nothing compared to what my other user registration is like. it looks something like this, it's in swedish and that will of course need to be changed. $fields = array(Do you provide a system to integrate the forum users into existing users tables?Hello, Its a very good example of what I wanted to say with "library" vs "package" What (as a user) I'd love to see in PEAR would be a basic user management scheme. On the top of this user management scheme I could place forums or other applications, but in the same way I have a unified BD access methodology I'd love to have a unified user data access methodology So before including a forum (and Morgan script is a way cool candidate) perhaps it would be a good thing ^(TM) to standardize this user management scheme Luc [1] basic because of course each web site does different things with user data, but the is a set o basic elements , login, password, name, ID and so on that are pretty much standard whatever application is in use
"fornamn" => array("Förnamn",
"req" => TRUE,
"pronom" => "ditt"),
"efternamn" => array("Efternamn",
"req" => TRUE,
"pronom" => "ditt"),
"foretagsnamn" => array("Företagsnamn",
"req" => TRUE,
"pronom" => "ditt"),
"adress" => array("Adress",
"req" => &$codep,
"pronom" => "din"),
"postnummer" => array("Postnummer",
"req" => &$codep,
"pronom" => "ditt"),
"postadress" => array("Postadress",
"req" => &$codep,
"pronom" => "din"),
"privatadress" => array("Privat Adress",
"req" => &$privatdep,
"pronom" => "din"),
"privatpostnummer" => array("Privat Postnummer",
"req" => &$privatdep,
"pronom" => "ditt"),
"privatpostadress" => array("Privat Postadress",
"req" => &$privatdep,
"pronom" => "din"),
"jobbtfn" => array("Jobbnummer",
"pronom" => "ditt"),
"vaxeltfn" => array("Växelnummer"),
"mobiltfn" => array("Mobilnummer"),
"fax" => array("Faxnummer"),
"hemtfn" => array("Hemnummer"),
"sex" => array("Kön", "type" => "SELECT", "entries" => array("man" => "Man","kvinna" => "Kvinna"),
"pronom" => "ditt"),
"email" => array("Email", "req" => "valid_email()",
"pronom" => "din"),
"mailinglist" => array("e-mail lista",
"type" => "SELECT",
"entries" => &$grupper,
"size" => sizeof($grupper),
),
);