예제 #1
0
function doallwork($data, $user)
{
    $pg = '<h1>All Workers</h1>';
    $pg .= worktable();
    $totshare = 0;
    $totdiff = 0;
    $totshrate = 0;
    $totinvalid = 0;
    $totrate = 0;
    $offset = 0;
    $blockacc = 0;
    $blockreward = 0;
    $instances = 0;
    $pg .= worktitle($data, $user);
    $pg .= '<tbody>';
    $ans = getAllUsers($user);
    if ($ans['STATUS'] == 'ok') {
        $count = $ans['rows'];
        $title = NULL;
        for ($i = 0; $i < $count; $i++) {
            $pg .= workuser($data, $ans['username:'******'</tbody>';
    $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, $instances);
    $pg .= "</table>\n";
    return $pg;
}
예제 #2
0
function doworker($data, $user)
{
    $title = '';
    $pg = worktable();
    $totshare = 0;
    $totdiff = 0;
    $totshrate = 0;
    $totinvalid = 0;
    $totrate = 0;
    $offset = 0;
    $blockacc = 0;
    $blockreward = 0;
    $instances = 0;
    $pg .= worktitle($data, $user);
    $pg .= workuser($data, $user, $offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, false, true, true, $title, $instances);
    $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, $instances);
    if (false && $blockacc > 0 && $blockreward > 0) {
        $btc = btcfmt($totdiff / $blockacc * $blockreward);
        $pg .= '<tr><td colspan=8 class=dc>';
        $pg .= "<br>Payout est if block found at 100%: ~{$btc} BTC";
        $pg .= '</td></tr>';
    }
    $pg .= "</table>\n";
    $pg .= "<script type='text/javascript'>\n";
    $pg .= "sotc('worksrt','srtrate');</script>\n";
    return "<h1>Workers{$title}</h1>" . $pg;
}
예제 #3
0
function doworker($data, $user)
{
    $title = '';
    $pg = worktable();
    $totshare = 0;
    $totdiff = 0;
    $totshrate = 0;
    $totinvalid = 0;
    $totrate = 0;
    $offset = 0;
    $blockacc = 0;
    $blockreward = 0;
    $instances = 0;
    $pg .= worktitle($data, $user);
    $pg .= '<tbody>';
    $pg .= workuser($data, $user, $offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, false, true, true, $title, $instances);
    $pg .= '</tbody>';
    $pg .= worktotal($offset, $totshare, $totdiff, $totshrate, $totinvalid, $totrate, $blockacc, $blockreward, $instances);
    $pg .= "</table>\n";
    $pg .= "<script type='text/javascript'>\n";
    $pg .= "sotc('worksrt','srtrate');</script>\n";
    return "<h1>Workers{$title}</h1>" . $pg;
}