PDA

View Full Version : $options array


Xia
03-23-2005, 07:14 PM
Hi,

I'm looking at register.php and noticed the $options array which contains all sorts of user options (enable PM, invisible mode, etc..)

Is adminemail also saved in this array? (and then in the database)

The onlyl thing I could find about adminemail is:

if ($errorlist)
{
$checkedoff['adminemail'] = iif($options['adminemail'], HTML_CHECKED);
$checkedoff['showemail'] = iif($options['showemail'], HTML_CHECKED);
}
else
{
$checkedoff['adminemail'] = iif(bitwise(REGOPTION_ADMINEMAIL, $vboptions['defaultregoptions']), HTML_CHECKED);
$checkedoff['showemail'] = iif(bitwise(REGOPTION_RECEIVEEMAIL, $vboptions['defaultregoptions']), HTML_CHECKED);
}

in request['do'] = 'register'.

How does adminemail get in the $options array? since the user has to select it when registereing why isn't $_POST['adminemail'] used in $request['do'] = 'addmember'? Is $options global?

Thanks

Also, can anyone tell me where $vboptions['defaultregoptions'] is defined? Thanks