|
|
|
@ -29,6 +29,14 @@ function settings($data, $user, $email, $addr, $err)
|
|
|
|
|
$pg .= '</td><td class=dl>'; |
|
|
|
|
$pg .= '<input type=password name=pass size=20>'; |
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
|
$pg .= '<tr class=dc><td class=dr nowrap>'; |
|
|
|
|
$pg .= '<span class=st1>*</span>2nd Authentication:'; |
|
|
|
|
$pg .= '</td><td class=dl>'; |
|
|
|
|
$pg .= '<input type=password name=2fa size=20>'; |
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
|
$pg .= '<tr class=dc><td colspan=2 class=dc><font size=-1>'; |
|
|
|
|
$pg .= "<span class=st1>*</span>Leave blank if you haven't enabled it</font>"; |
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
|
$pg .= '<tr class=dc><td class=dr colspan=2>'; |
|
|
|
|
$pg .= 'Change: <input type=submit name=Change value=EMail>'; |
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
@ -90,7 +98,7 @@ function settings($data, $user, $email, $addr, $err)
|
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
|
$pg .= '<tr class=dc><td colspan=2 class=dc><font size=-1>'; |
|
|
|
|
$pg .= "<span class=st1>*</span>Leave blank if you haven't enabled it</font>"; |
|
|
|
|
$pg .= '</td></tr>' |
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
|
$pg .= '<tr class=dc><td class=dr colspan=2>'; |
|
|
|
|
$pg .= 'Change: <input type=submit name=Change value=Password>'; |
|
|
|
|
$pg .= '</td></tr>'; |
|
|
|
@ -112,7 +120,8 @@ function dosettings($data, $user)
|
|
|
|
|
case 'EMail': |
|
|
|
|
$email = getparam('email', false); |
|
|
|
|
$pass = getparam('pass', false); |
|
|
|
|
$ans = userSettings($user, $email, null, $pass); |
|
|
|
|
$twofa = getparam('2fa', false); |
|
|
|
|
$ans = userSettings($user, $email, null, $pass, $twofa); |
|
|
|
|
$err = 'EMail changed'; |
|
|
|
|
$check = true; |
|
|
|
|
break; |
|
|
|
@ -122,7 +131,8 @@ function dosettings($data, $user)
|
|
|
|
|
$addr = getparam('baddr', false); |
|
|
|
|
$addrarr = array(array('addr' => $addr)); |
|
|
|
|
$pass = getparam('pass', false); |
|
|
|
|
$ans = userSettings($user, null, $addrarr, $pass); |
|
|
|
|
$twofa = getparam('2fa', false); |
|
|
|
|
$ans = userSettings($user, null, $addrarr, $pass, $twofa); |
|
|
|
|
$err = 'Payout address changed'; |
|
|
|
|
$check = true; |
|
|
|
|
} |
|
|
|
|