Mining Rewards'; $ans = getMPayouts($user); $pg .= "The rewards you've earned for each block the pool has found.
"; $pg .= 'See the '; $pg .= makeLink('payments'); $pg .= "Payments page for the payments you've been sent.

"; $pg .= "\n"; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; $pg .= "\n"; if ($ans['STATUS'] == 'ok') { $totamt = 0; $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $pg .= ""; $pg .= ''; $pg .= ''; $pg .= ''; $diffused = $ans['diffused:'.$i]; $pg .= ''; $elapsed = $ans['elapsed:'.$i]; $pg .= ''; $phr = $diffused * pow(2,32) / $elapsed; $pg .= ''; $diffacc = $ans['diffacc:'.$i]; $ypct = $diffacc * 100 / $diffused; $pg .= ''; $pg .= ''; $hr = $diffacc * pow(2,32) / $elapsed; $pg .= ''; $amount = $ans['amount:'.$i]; $totamt += $amount; $pg .= ''; $pg .= "\n"; } if ($count > 1) { if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $pg .= ""; $pg .= ''; $pg .= ''; $pg .= ''; $pg .= "\n"; } } $pg .= "
BlockBlock UTCMiner RewardN DiffN RangePool N AvgYour %Your N DiffYour N AvgYour BTC
'.$ans['height:'.$i].''.gmdate('j/M H:i',$ans['blockcreatedate:'.$i]).''.btcfmt($ans['minerreward:'.$i]).''.difffmt($diffused).''.howmanyhrs($elapsed).''.siprefmt($phr).'Hs'.number_format($ypct, 2).'%'.difffmt($diffacc).''.dsprate($hr).''.btcfmt($amount).'
Total:'.btcfmt($totamt).'
\n"; return $pg; } # function show_mpayouts($info, $page, $menu, $name, $user) { gopage($info, NULL, 'dompayouts', $page, $menu, $name, $user); } # ?>