diff --git a/pool/page_mpayouts.php b/pool/page_mpayouts.php new file mode 100644 index 00000000..16dfcc54 --- /dev/null +++ b/pool/page_mpayouts.php @@ -0,0 +1,57 @@ +Mining Payouts'; + + $ans = getMPayouts($user); + + $pg .= "\n"; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= ""; + $pg .= "\n"; + if ($ans['STATUS'] == 'ok') + { + $count = $ans['rows']; + for ($i = 0; $i < $count; $i++) + { + if (($i % 2) == 0) + $row = 'even'; + else + $row = 'odd'; + + $pg .= ""; + $pg .= ''; + $pg .= ''; + $diffused = $ans['diffused:'.$i]; + $pg .= ''; + $elapsed = $ans['elapsed:'.$i]; + $pg .= ''; + $diffacc = $ans['diffacc:'.$i]; + $ypct = $diffacc * 100 / $diffused; + $pg .= ''; + $pg .= ''; + $hr = $diffacc * pow(2,32) / $elapsed; + $pg .= ''; + $pg .= ''; + $pg .= "\n"; + } + } + $pg .= "
BlockMiner RewardPayout DiffElapsedYour %Your DiffYour Avg HsYour BTC
'.$ans['height:'.$i].''.btcfmt($ans['minerreward:'.$i]).''.difffmt($diffused).''.howmanyhrs($elapsed).''.number_format($ypct, 2).'%'.difffmt($diffacc).''.dsprate($hr).''.btcfmt($ans['amount:'.$i]).'
\n"; + + return $pg; +} +# +function show_mpayouts($info, $page, $menu, $name, $user) +{ + gopage($info, NULL, 'dompayouts', $page, $menu, $name, $user); +} +# +?>