diff --git a/pool/page_addrmgt.php b/pool/page_addrmgt.php index fe886b44..7e4c639b 100644 --- a/pool/page_addrmgt.php +++ b/pool/page_addrmgt.php @@ -10,6 +10,7 @@ function addrmgtuser($data, $user, $err) $pg .= makeForm('addrmgt'); $pg .= "
# | '; $pg .= 'Address | '; $pg .= 'ID | '; $pg .= 'Ratio | '; @@ -18,6 +19,7 @@ function addrmgtuser($data, $user, $err) # new row template for '+' $pg .= '|||||
'; $pg .= ' | '; $pg .= ""; $pg .= ' | '; @@ -38,7 +40,12 @@ function addrmgtuser($data, $user, $err) $count = 0; if ($ans['STATUS'] == 'ok') { + if (isset($ans['limit'])) + $limit = $ans['limit']; + else + $limit = 1; $count = $ans['rows']; + # this will output any DB rows > limit but DB update will ignore extras for ($i = 0; $i < $count; $i++) { if ((($offset) % 2) == 0) @@ -48,6 +55,7 @@ function addrmgtuser($data, $user, $err) $pg .= "|||||||
'.($i+1).' | '; $pg .= ''; $pg .= ""; $pg .= ' | '; @@ -66,20 +74,22 @@ function addrmgtuser($data, $user, $err) $offset++; } - if ((($offset++) % 2) == 0) - $row = 'even'; - else - $row = 'odd'; - $pg .= "|||||||
'; - $pg .= ""; - $pg .= ' | ||||||||
"; + $pg .= ""; + $pg .= " | limit $limit | |||||||
'; $pg .= ' | Password: | '; $pg .= ''; $pg .= ' | ||||||
'; $pg .= ' | *2nd Authentication: | '; $pg .= ''; $pg .= ' | '; $pg .= '||||||
";
+ $pg .= '';
$pg .= "*Leave blank if you haven't enabled it | "; $pg .= 'You must enter your password to save changes '; - $pg .= 'A ratio of 0, will remove the address from the payouts |