} echo "<td width=18><img width=16 src='{$coin->image}'></td>"; echo "<td><b><a href='/site/coin?id={$coin->id}'>{$name}</a></b></td>"; echo "<td align=right style='font-size: .8em;'><b>{$reward} {$coin->symbol}</a></td>"; echo "<td align=right style='font-size: .8em;'>{$difficulty}</td>"; if (!empty($coin->errors)) { echo "<td align=right style='font-size: .8em; color: red;' title='{$coin->errors}'>{$height}</td>"; } else { echo "<td align=right style='font-size: .8em;'>{$height}</td>"; } echo "<td align=right style='font-size: .8em;'>{$pool_ttf}</td>"; echo "<td align=right style='font-size: .8em;'>{$pool_hash}</td>"; echo "<td align=right style='font-size: .8em;'><b>{$btcmhd}</b></td>"; echo "</tr>"; } show_orders($allorders, $services); show_services($services); echo "</table><br>"; ///////////////////////////////////////////////////////////////////////////////////////////// $target = yaamp_hashrate_constant($algo); $interval = yaamp_hashrate_step(); $delay = time() - $interval; $version = 'NiceHash/1.0.0'; $hashrate = dboscalar("select sum(difficulty) * {$target} / {$interval} / 1000 from shares where valid and time>{$delay} and\n\tworkerid in (select id from workers where algo=:algo and version='{$version}')", array(':algo' => $algo)); $invalid = dboscalar("select sum(difficulty) * {$target} / {$interval} / 1000 from shares where not valid and time>{$delay} and\n\tworkerid in (select id from workers where algo=:algo and version='{$version}')", array(':algo' => $algo)); $count = getdbocount('db_workers', "algo=:algo and version='{$version}'", array(':algo' => $algo)); $percent = $total_nicehash && $hashrate ? round($hashrate * 100 / $total_nicehash / 1000000000, 2) . '%' : ''; $hashrate = $hashrate ? Itoa2($hashrate) . 'h/s' : ''; $version = substr($version, 0, 30); $total_nicehash = round($total_nicehash, 3); echo "Total Nicehash: <b>{$total_nicehash} Gh/s</b> *** yaamp: ";
return has_tradestation($uid); } //----------------------------------------------------------- if (!check_tradestation()) { show_message("You must build a tradestation if you want to trade"); } else { switch ($act) { case "remove_order": show_stockmarket_stats(); func_remove_order($_GET["res"], $_GET["type"], $_GET["time"]); show_add_orders(); show_stock_ticker(); show_orders(); break; case "add_order": show_stockmarket_stats(); func_add_order($_POST["res"], $_POST["type"], $_POST["amount"], $_POST["price"]); show_add_orders(); show_stock_ticker(); show_orders(); break; default: show_stockmarket_stats(); show_add_orders(); show_stock_ticker(); show_orders(); break; } } // ENDE include "../spaceregentsinc/footer.inc.php";