예제 #1
0
function dopercent($data, $user)
{
    $pg = '<h1>Address Percents</h1>';
    $pg .= "<table cellpadding=0 cellspacing=0 border=0>\n";
    $totshare = 0;
    $totdiff = 0;
    $totinvalid = 0;
    $totrate = 0;
    $offset = 0;
    $blockacc = 0;
    $blockreward = 0;
    $pg .= pertitle($data, $user);
    $pg .= peruser($data, $user, $offset, $totshare, $totdiff, $totinvalid, $totrate, $blockacc, $blockreward, true);
    $pg .= pertotal($offset, $totshare, $totdiff, $totinvalid, $totrate, $blockacc, $blockreward);
    $pg .= "</table>\n";
    return $pg;
}
예제 #2
0
function dopercent($data, $user)
{
    $pg = '<h1>Address Percents</h1>';
    $pg .= "<table callpadding=0 cellspacing=0 border=0>\n";
    $totshare = 0;
    $totdiff = 0;
    $totinvalid = 0;
    $totrate = 0;
    $offset = 0;
    $blockacc = 0;
    $blockreward = 0;
    $pg .= pertitle($data, $user);
    $pg .= peruser($data, $user, $offset, $totshare, $totdiff, $totinvalid, $totrate, $blockacc, $blockreward, true);
    $pg .= pertotal($offset, $totshare, $totdiff, $totinvalid, $totrate, $blockacc, $blockreward);
    if ($blockacc > 0 && $blockreward > 0) {
        $btc = btcfmt($totdiff / $blockacc * $blockreward);
        $pg .= '<tr><td colspan=9 class=dc>';
        $pg .= "<br>Payout est if block found at 100%: ~{$btc} BTC";
        $pg .= '</td></tr>';
    }
    $pg .= "</table>\n";
    return $pg;
}