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