diff --git a/pool/page_mpayouts.php b/pool/page_mpayouts.php index 37acff4f..96333835 100644 --- a/pool/page_mpayouts.php +++ b/pool/page_mpayouts.php @@ -2,7 +2,7 @@ # function dompayouts($data, $user) { - $pg = '

Mining Payouts

'; + $pg = '

Mining Rewards

'; $ans = getMPayouts($user); @@ -20,6 +20,7 @@ function dompayouts($data, $user) $pg .= "\n"; if ($ans['STATUS'] == 'ok') { + $totamt = 0; $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { @@ -43,7 +44,22 @@ function dompayouts($data, $user) $pg .= ''.difffmt($diffacc).''; $hr = $diffacc * pow(2,32) / $elapsed; $pg .= ''.dsprate($hr).''; - $pg .= ''.btcfmt($ans['amount:'.$i]).''; + $amount = $ans['amount:'.$i]; + $totamt += $amount; + $pg .= ''.btcfmt($amount).''; + $pg .= "\n"; + } + if ($count > 1) + { + if (($i % 2) == 0) + $row = 'even'; + else + $row = 'odd'; + + $pg .= ""; + $pg .= 'Total:'; + $pg .= ''; + $pg .= ''.btcfmt($totamt).''; $pg .= "\n"; } } diff --git a/pool/prime.php b/pool/prime.php index ced6f53d..539ef33b 100644 --- a/pool/prime.php +++ b/pool/prime.php @@ -67,7 +67,7 @@ function check() 'Home' => '' ), 'Account' => array( - 'MPayouts' => 'mpayouts', + 'Rewards' => 'mpayouts', 'Payments' => 'payments', 'Settings' => 'settings', 'User Settings' => 'userset'