diff --git a/pool/page_blocks.php b/pool/page_blocks.php index b77d426e..09dc866d 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -44,12 +44,16 @@ function doblocks($data, $user) $pg = '

Blocks

'; - $ans = getBlocks($user); + if ($user === null) + $ans = getBlocks('Anon'); + else + $ans = getBlocks($user); $pg .= "\n"; $pg .= ""; $pg .= ""; - $pg .= ""; + if ($user !== null) + $pg .= ""; $pg .= ""; $pg .= ""; $pg .= ""; @@ -119,7 +123,8 @@ function doblocks($data, $user) $pg .= ""; $pg .= ""; - $pg .= "'; + if ($user !== null) + $pg .= "'; $pg .= "'; $pg .= "'; $pg .= "'; @@ -141,7 +146,10 @@ function doblocks($data, $user) $bg = " bgcolor=$bg"; $pg .= ""; - $pg .= ""; + if ($user === null) + $pg .= ""; + else + $pg .= ""; $pg .= "'; $pg .= "\n"; } diff --git a/pool/page_pblocks.php b/pool/page_pblocks.php new file mode 100644 index 00000000..86e9aea7 --- /dev/null +++ b/pool/page_pblocks.php @@ -0,0 +1,15 @@ + diff --git a/pool/prime.php b/pool/prime.php index 4252a447..b4bd1dee 100644 --- a/pool/prime.php +++ b/pool/prime.php @@ -34,6 +34,9 @@ function process($p, $user, $menu) function def_menu() { $dmenu = array('Home' => array('Home' => ''), + 'Pool' => array( + 'Blocks' => 'pblocks' + ), 'gap' => array( # options not shown 'API' => 'api'), 'Help' => array('Help' => 'help',
HeightWhoWhoRewardWhenStatus
$hifld".htmlspecialchars($ans['workername:'.$i]).'".htmlspecialchars($ans['workername:'.$i]).'".btcfmt($ans['reward:'.$i]).'".gmdate('Y-m-d H:i:s+00', $ans['firstcreatedate:'.$i]).'".$stat.'
".$bpct.'