Add a coin"; echo '
'; showTableSorter('maintable', '{headers: {0: {sorter: false}}}'); echo ""; echo ""; echo ""; echo "Name"; echo "Symbol"; echo "Algo"; echo "Status"; echo "Version"; echo "Created"; //echo "Difficulty"; echo "Height"; echo "Message"; echo "Links"; echo ""; echo ""; $total_active = 0; $total_installed = 0; $coins = getdbolist('db_coins', "1 order by id desc"); foreach($coins as $coin) { // if($coin->symbol == 'BTC') continue; if($coin->enable) $total_active++; if($coin->installed) $total_installed++; $coin->errors = substr($coin->errors, 0, 30); $coin->version = substr($coin->version, 0, 20); $difficulty = Itoa2($coin->difficulty, 3); $d = datetoa2($coin->created); echo ""; echo ""; echo "$coin->name"; if($this->admin) echo "$coin->symbol"; else echo "$coin->symbol"; echo "$coin->algo"; if($coin->enable) echo "running"; else if($coin->installed) echo "installed"; else echo ""; echo "$coin->version"; echo "$d ago"; // echo "$difficulty"; echo "$coin->block_height"; echo "$coin->errors"; echo ""; if(!empty($coin->link_bitcointalk)) echo "forum "; if(!empty($coin->link_github)) echo "git "; // if(!empty($coin->link_explorer)) // echo "expl "; echo "google "; // if(!empty($coin->link_exchange)) // echo "exch "; $list2 = getdbolist('db_markets', "coinid=$coin->id"); foreach($list2 as $market) { $url = ''; $lowsymbol = strtolower($coin->symbol); if($market->name == 'cryptsy') $url = "https://www.cryptsy.com/markets/view/{$coin->symbol}_BTC"; else if($market->name == 'bittrex') $url = "https://bittrex.com/Market/Index?MarketName=BTC-$coin->symbol"; else if($market->name == 'poloniex') $url = "https://poloniex.com/exchange/btc_$coin->symbol"; else if($market->name == 'c-cex') $url = "https://c-cex.com/?p=$lowsymbol-btc"; else if($market->name == 'bleutrade') $url = "https://bleutrade.com/exchange/$coin->symbol/BTC"; else if($market->name == 'yobit') $url = "https://yobit.net/en/trade/$coin->symbol/BTC"; else if($market->name == 'cryptopia') $url = "https://www.cryptopia.co.nz/Exchange?market=${coin->symbol}_BTC"; else if($market->name == 'alcurex') $url = "https://alcurex.org/index.php/crypto/market?pair=${lowsymbol}_btc"; echo "$market->name "; } echo ""; echo ""; } echo ""; $total = count($coins); echo ""; echo ""; echo "$total coins, $total_installed installed, $total_active running"; echo ""; echo ""; echo "




"; echo "




";