From b5ee57a620de5d36becf3cf04bbbabcf94a14751 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 2 Mar 2015 09:11:32 +1100 Subject: [PATCH] php - add new (missing) mining payouts php --- pool/page_mpayouts.php | 57 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pool/page_mpayouts.php 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); +} +# +?>