';
$pg .= '';
$pg .= makeForm('settings');
$pg .= '';
$pg .= ' |
';
$pg .= '';
$pg .= makeForm('settings');
$pg .= '';
$pg .= ' |
';
$pg .= '';
$pg .= makeForm('settings');
$pg .= '';
$pg .= ' |
';
$pg .= '
';
return $pg;
}
#
function dosettings($data, $user)
{
$err = '';
$chg = getparam('Change', false);
$check = false;
switch ($chg)
{
case 'EMail':
$email = getparam('email', false);
$pass = getparam('pass', false);
$ans = userSettings($user, $email, null, $pass);
$check = true;
break;
case 'Address':
$addr = getparam('baddr', false);
$addrarr = array(array('addr' => $addr));
$pass = getparam('pass', false);
$ans = userSettings($user, null, $addrarr, $pass);
$check = true;
break;
case 'Password':
$oldpass = getparam('oldpass', false);
$pass1 = getparam('pass1', false);
$pass2 = getparam('pass2', false);
if (!safepass($pass1))
{
$err = "Password is unsafe - requires 6 or more characters, including