Date: 08/14/00
- Next message: Eric Naujock : "[phplib] Porblem getting mysql to work with phplib."
- Previous message: François Deppierraz: "[phplib] Registration mode"
- In reply to: François Deppierraz: "[phplib] Registration mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> A search on google gave me the following url
> http://www.phpbuilder.com/mail/phplib-list/200004/0324.php which is a
> post explaining how to have a registration system workin using auth
> module reg feature.
>
> I tried to get it working didn't achieved...
>
> The problem is the following line in the class definition:
>
> var $mode = $HTTP_GET_VARS["mode"]; // Set the mode variable
>
> Can someone help me or give me another method of using user
> registration ?
The above line seriously breaks PHP4. You can achieve the same effect in by
slightly rewriting the constructor function:
function Example_Auth() {
global $mode;
if ($mode=='reg') {
$this->mode='reg';
} else {
$this->mode='log';
}
}
Michael
-- Michael Darrin Chaney mdchaney <email protected> http://www.michaelchaney.com--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Eric Naujock : "[phplib] Porblem getting mysql to work with phplib."
- Previous message: François Deppierraz: "[phplib] Registration mode"
- In reply to: François Deppierraz: "[phplib] Registration mode"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

