<?php ///////////////////////////////////////////////////////////////////////////////////////////////// $symbol = getparam('symbol'); $coin = null; if ($symbol == 'all') { $users = getdbolist('db_accounts', "balance>.001 order by balance desc"); } else { $coin = getdbosql('db_coins', "symbol=:symbol", array(':symbol' => $symbol)); if (!$coin) { return; } $users = getdbolist('db_accounts', "balance>.001 and coinid={$coin->id} order by balance desc"); } //echo "<br><table class='dataGrid'>"; showTableSorter('maintable'); echo "<thead>"; echo "<tr>"; echo "<th>ID</th>"; echo "<th>Wallet</th>"; echo "<th>Last</th>"; echo "<th align=right>Miners</th>"; echo "<th align=right>Hashrate</th>"; echo "<th align=right>Bad</th>"; echo "<th></th>"; echo "<th align=right>Blocks</th>"; echo "<th align=right>Diff/Paid</th>"; echo "<th align=right>Balance</th>"; echo "<th align=right>Total Paid</th>"; echo "<th></th>"; echo "</tr>";
<?php echo "<br>"; echo "<div class='main-left-box'>"; echo "<div class='main-left-title'>Block Explorer</div>"; echo "<div class='main-left-inner'>"; showTableSorter('maintable', '{headers: {0: {sorter: false}, 9: {sorter: false}}}'); echo "<thead>"; echo "<tr>"; echo "<th width=30></th>"; echo "<th>Name</th>"; echo "<th>Symbol</th>"; echo "<th>Algo</th>"; echo "<th>Version</th>"; echo "<th>Height</th>"; echo "<th>Difficulty</th>"; echo "<th>Connections</th>"; echo "<th>Network Hash</th>"; echo "<th></th>"; echo "</tr>"; echo "</thead><tbody>"; $list = getdbolist('db_coins', "enable and visible order by name"); foreach ($list as $coin) { if ($coin->symbol == 'BTC') { continue; } if (!empty($coin->symbol2)) { continue; } $coin->version = substr($coin->version, 0, 20); $difficulty = Itoa2($coin->difficulty, 3);