Browse Source

php - fix/unfix input fields as required also

master
kanoi 10 years ago
parent
commit
c34b2397db
  1. 4
      pool/page_settings.php
  2. 4
      pool/page_workmgt.php

4
pool/page_settings.php

@ -18,7 +18,7 @@ function settings($data, $user, $email, $addr, $err)
$pg .= '<tr class=dc><td class=dr>'; $pg .= '<tr class=dc><td class=dr>';
$pg .= 'EMail:'; $pg .= 'EMail:';
$pg .= '</td><td class=dl>'; $pg .= '</td><td class=dl>';
$pg .= "<input type=text name=email value='".sq($email)."' size=20>"; $pg .= "<input type=text name=email value='$email' size=20>";
$pg .= '</td></tr>'; $pg .= '</td></tr>';
$pg .= '<tr class=dc><td class=dr>'; $pg .= '<tr class=dc><td class=dr>';
$pg .= 'Password:'; $pg .= 'Password:';
@ -41,7 +41,7 @@ function settings($data, $user, $email, $addr, $err)
$pg .= '<tr class=dc><td class=dr>'; $pg .= '<tr class=dc><td class=dr>';
$pg .= 'BTC Address:'; $pg .= 'BTC Address:';
$pg .= '</td><td class=dl>'; $pg .= '</td><td class=dl>';
$pg .= "<input type=text name=baddr value='".sq($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:';

4
pool/page_workmgt.php

@ -30,7 +30,7 @@ function workmgtuser($data, $user, $err)
$pg .= "<tr class=$row>"; $pg .= "<tr class=$row>";
$wn = htmlspecialchars($ans['workername:'.$i]); $wn = htmlspecialchars($ans['workername:'.$i]);
$wnv = sq($ans['workername:'.$i]); $wnv = urlencode($ans['workername:'.$i]);
$pg .= '<td class=dl>'; $pg .= '<td class=dl>';
$pg .= "<input type=hidden name='workername:$i' value='$wnv'>"; $pg .= "<input type=hidden name='workername:$i' value='$wnv'>";
$pg .= $wn.'</td>'; $pg .= $wn.'</td>';
@ -67,7 +67,7 @@ function doworkmgt($data, $user)
$settings = array(); $settings = array();
for ($i = 0; $i < $count; $i++) for ($i = 0; $i < $count; $i++)
{ {
$wn = getparam('workername:'.$i, false); $wn = urldecode(getparam('workername:'.$i, false));
$md = getparam('difficultydefault:'.$i, false); $md = getparam('difficultydefault:'.$i, false);
if (!nuem($wn) && !nuem($md)) if (!nuem($wn) && !nuem($md))
{ {

Loading…
Cancel
Save