|
|
@ -44,11 +44,15 @@ function doblocks($data, $user) |
|
|
|
|
|
|
|
|
|
|
|
$pg = '<h1>Blocks</h1>'; |
|
|
|
$pg = '<h1>Blocks</h1>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($user === null) |
|
|
|
|
|
|
|
$ans = getBlocks('Anon'); |
|
|
|
|
|
|
|
else |
|
|
|
$ans = getBlocks($user); |
|
|
|
$ans = getBlocks($user); |
|
|
|
|
|
|
|
|
|
|
|
$pg .= "<table callpadding=0 cellspacing=0 border=0>\n"; |
|
|
|
$pg .= "<table callpadding=0 cellspacing=0 border=0>\n"; |
|
|
|
$pg .= "<tr class=title>"; |
|
|
|
$pg .= "<tr class=title>"; |
|
|
|
$pg .= "<td class=dl>Height</td>"; |
|
|
|
$pg .= "<td class=dl>Height</td>"; |
|
|
|
|
|
|
|
if ($user !== null) |
|
|
|
$pg .= "<td class=dl>Who</td>"; |
|
|
|
$pg .= "<td class=dl>Who</td>"; |
|
|
|
$pg .= "<td class=dr>Reward</td>"; |
|
|
|
$pg .= "<td class=dr>Reward</td>"; |
|
|
|
$pg .= "<td class=dc>When</td>"; |
|
|
|
$pg .= "<td class=dc>When</td>"; |
|
|
@ -119,6 +123,7 @@ function doblocks($data, $user) |
|
|
|
|
|
|
|
|
|
|
|
$pg .= "<tr class=$row>"; |
|
|
|
$pg .= "<tr class=$row>"; |
|
|
|
$pg .= "<td class=dl$ex>$hifld</td>"; |
|
|
|
$pg .= "<td class=dl$ex>$hifld</td>"; |
|
|
|
|
|
|
|
if ($user !== null) |
|
|
|
$pg .= "<td class=dl$ex>".htmlspecialchars($ans['workername:'.$i]).'</td>'; |
|
|
|
$pg .= "<td class=dl$ex>".htmlspecialchars($ans['workername:'.$i]).'</td>'; |
|
|
|
$pg .= "<td class=dr$ex>".btcfmt($ans['reward:'.$i]).'</td>'; |
|
|
|
$pg .= "<td class=dr$ex>".btcfmt($ans['reward:'.$i]).'</td>'; |
|
|
|
$pg .= "<td class=dl$ex>".gmdate('Y-m-d H:i:s+00', $ans['firstcreatedate:'.$i]).'</td>'; |
|
|
|
$pg .= "<td class=dl$ex>".gmdate('Y-m-d H:i:s+00', $ans['firstcreatedate:'.$i]).'</td>'; |
|
|
@ -141,6 +146,9 @@ function doblocks($data, $user) |
|
|
|
$bg = " bgcolor=$bg"; |
|
|
|
$bg = " bgcolor=$bg"; |
|
|
|
|
|
|
|
|
|
|
|
$pg .= "<tr class=$row>"; |
|
|
|
$pg .= "<tr class=$row>"; |
|
|
|
|
|
|
|
if ($user === null) |
|
|
|
|
|
|
|
$pg .= "<td class=dl colspan=5></td>"; |
|
|
|
|
|
|
|
else |
|
|
|
$pg .= "<td class=dl colspan=6></td>"; |
|
|
|
$pg .= "<td class=dl colspan=6></td>"; |
|
|
|
$pg .= "<td class=dr$bg>".$bpct.'</td>'; |
|
|
|
$pg .= "<td class=dr$bg>".$bpct.'</td>'; |
|
|
|
$pg .= "</tr>\n"; |
|
|
|
$pg .= "</tr>\n"; |
|
|
|