|
|
@ -58,6 +58,7 @@ function doblocks($data, $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=dr>#</td>"; |
|
|
|
$pg .= "<td class=dl>Height</td>"; |
|
|
|
$pg .= "<td class=dl>Height</td>"; |
|
|
|
if ($user !== null) |
|
|
|
if ($user !== null) |
|
|
|
$pg .= "<td class=dl>Who</td>"; |
|
|
|
$pg .= "<td class=dl>Who</td>"; |
|
|
@ -65,7 +66,7 @@ function doblocks($data, $user) |
|
|
|
$pg .= "<td class=dc>When</td>"; |
|
|
|
$pg .= "<td class=dc>When</td>"; |
|
|
|
$pg .= "<td class=dr>Status</td>"; |
|
|
|
$pg .= "<td class=dr>Status</td>"; |
|
|
|
$pg .= "<td class=dr>Diff</td>"; |
|
|
|
$pg .= "<td class=dr>Diff</td>"; |
|
|
|
$pg .= "<td class=dr>%</td>"; |
|
|
|
$pg .= "<td class=dr>Diff%</td>"; |
|
|
|
$pg .= "<td class=dr>CDF</td>"; |
|
|
|
$pg .= "<td class=dr>CDF</td>"; |
|
|
|
$pg .= "</tr>\n"; |
|
|
|
$pg .= "</tr>\n"; |
|
|
|
} |
|
|
|
} |
|
|
@ -73,12 +74,13 @@ function doblocks($data, $user) |
|
|
|
$nettot = 0; |
|
|
|
$nettot = 0; |
|
|
|
$i = 0; |
|
|
|
$i = 0; |
|
|
|
$orph = false; |
|
|
|
$orph = false; |
|
|
|
$csv = "Height,Status,Timestamp,DiffAcc,NetDiff\n"; |
|
|
|
$csv = "Sequence,Height,Status,Timestamp,DiffAcc,NetDiff,Hash\n"; |
|
|
|
if ($ans['STATUS'] == 'ok') |
|
|
|
if ($ans['STATUS'] == 'ok') |
|
|
|
{ |
|
|
|
{ |
|
|
|
$count = $ans['rows']; |
|
|
|
$count = $ans['rows']; |
|
|
|
for ($i = 0; $i < $count; $i++) |
|
|
|
for ($i = 0; $i < $count; $i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
$seq = $count - $i; |
|
|
|
if (($i % 2) == 0) |
|
|
|
if (($i % 2) == 0) |
|
|
|
$row = 'even'; |
|
|
|
$row = 'even'; |
|
|
|
else |
|
|
|
else |
|
|
@ -142,6 +144,7 @@ function doblocks($data, $user) |
|
|
|
if ($wantcsv === false) |
|
|
|
if ($wantcsv === false) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$pg .= "<tr class=$row>"; |
|
|
|
$pg .= "<tr class=$row>"; |
|
|
|
|
|
|
|
$pg .= "<td class=dr$ex>$seq</td>"; |
|
|
|
$pg .= "<td class=dl$ex>$hifld</td>"; |
|
|
|
$pg .= "<td class=dl$ex>$hifld</td>"; |
|
|
|
if ($user !== null) |
|
|
|
if ($user !== null) |
|
|
|
$pg .= "<td class=dl$ex>".htmlspecialchars($ans['workername:'.$i]).'</td>'; |
|
|
|
$pg .= "<td class=dl$ex>".htmlspecialchars($ans['workername:'.$i]).'</td>'; |
|
|
@ -155,11 +158,13 @@ function doblocks($data, $user) |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
$csv .= "$seq,"; |
|
|
|
$csv .= "$hi,"; |
|
|
|
$csv .= "$hi,"; |
|
|
|
$csv .= "\"$stat\","; |
|
|
|
$csv .= "\"$stat\","; |
|
|
|
$csv .= $ans['firstcreatedate:'.$i].','; |
|
|
|
$csv .= $ans['firstcreatedate:'.$i].','; |
|
|
|
$csv .= "$diffacc,"; |
|
|
|
$csv .= "$diffacc,"; |
|
|
|
$csv .= "$netdiff\n"; |
|
|
|
$csv .= "$netdiff,"; |
|
|
|
|
|
|
|
$csv .= $ans['blockhash:'.$i]."\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|