Browse Source

php - set payout address to a different name

master
kanoi 10 years ago
parent
commit
16c766b10d
  1. 6
      pool/page_settings.php

6
pool/page_settings.php

@ -39,9 +39,9 @@ function settings($data, $user, $email, $addr, $err)
$pg .= 'To change your payout address, enter a new address and your password'; $pg .= 'To change your payout address, enter a new address and your password';
$pg .= '</td></tr>'; $pg .= '</td></tr>';
$pg .= '<tr class=dc><td class=dr>'; $pg .= '<tr class=dc><td class=dr>';
$pg .= 'Address:'; $pg .= 'BTC Address:';
$pg .= '</td><td class=dl>'; $pg .= '</td><td class=dl>';
$pg .= "<input type=text name=addr value='$addr' size=42>"; $pg .= "<input type=text name=baddr value='$addr' size=42>";
$pg .= '</td></tr>'; $pg .= '</td></tr>';
$pg .= '<tr class=dc><td class=dr>'; $pg .= '<tr class=dc><td class=dr>';
$pg .= 'Password:'; $pg .= 'Password:';
@ -101,7 +101,7 @@ function dosettings($data, $user)
$check = true; $check = true;
break; break;
case 'Address': case 'Address':
$addr = getparam('addr', false); $addr = getparam('baddr', false);
$pass = getparam('pass', false); $pass = getparam('pass', false);
$ans = userSettings($user, null, $addr, $pass); $ans = userSettings($user, null, $addr, $pass);
$check = true; $check = true;

Loading…
Cancel
Save