|
|
|
@ -127,8 +127,9 @@ function dosettings($data, $user)
|
|
|
|
|
{ |
|
|
|
|
case 'EMail': |
|
|
|
|
$email = getparam('email', false); |
|
|
|
|
if (stripos($email, 'hotmail') !== false) |
|
|
|
|
$err = 'hotmail not allowed'; |
|
|
|
|
$res = bademail($email); |
|
|
|
|
if ($res != null) |
|
|
|
|
$err = $res; |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
$pass = getparam('pass', false); |
|
|
|
@ -140,6 +141,11 @@ function dosettings($data, $user)
|
|
|
|
|
break; |
|
|
|
|
case 'Address': |
|
|
|
|
if (!isset($data['info']['u_multiaddr'])) |
|
|
|
|
{ |
|
|
|
|
$res = emailcheck($user); |
|
|
|
|
if ($res != null) |
|
|
|
|
$err = $res; |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
$addr = getparam('baddr', false); |
|
|
|
|
$addrarr = array(array('addr' => $addr)); |
|
|
|
@ -149,8 +155,14 @@ function dosettings($data, $user)
|
|
|
|
|
$err = 'Payout address changed'; |
|
|
|
|
$check = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
case 'Password': |
|
|
|
|
$res = emailcheck($user); |
|
|
|
|
if ($res != null) |
|
|
|
|
$err = $res; |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
$oldpass = getparam('oldpass', false); |
|
|
|
|
$pass1 = getparam('pass1', false); |
|
|
|
|
$pass2 = getparam('pass2', false); |
|
|
|
@ -165,6 +177,7 @@ function dosettings($data, $user)
|
|
|
|
|
$err = 'Password changed'; |
|
|
|
|
$check = true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
$doemail = false; |
|
|
|
|