Ejemplo n.º 1
0
<div class="tip">
Cryptocurrencies that do <em>not</em> have a suitable explorer API yet at the time of writing:
<ul>
	<li><span class="currency_name_smc">Smartcoin</span></li>
</ul>
</div>

<p>
	Currently <?php 
echo htmlspecialchars(get_site_config('site_name'));
?>
 supports the <?php 
$result = array();
foreach (get_all_cryptocurrencies() as $c) {
    $result[] = "<span class=\"currency_name_" . htmlspecialchars($c) . "\">" . htmlspecialchars(get_currency_name($c)) . "</span>" . (in_array($c, get_new_supported_currencies()) ? " <span class=\"new\">" . ht("new") . "</span>" : "");
}
echo implode_english($result);
?>
 cryptocurrencies.
</p>

<p>
	In the future, <?php 
echo htmlspecialchars(get_site_config('site_name'));
?>
 will host cryptocurrency
	explorer instances locally, removing these requirements and making it possible to add almost any
	cryptocurrency; please donate or purchase a <a href="<?php 
echo htmlspecialchars(url_for('premium'));
?>
Ejemplo n.º 2
0
    if ($category == 'Hidden' || $category == 'Individual Securities' || $category == 'Finance') {
        continue;
    }
    echo "<dt>" . ht($category) . "</dt>\n";
    if ($category == "Offsets") {
        // Offsets have no subcategories; issue #344
        continue;
    }
    $result = array();
    foreach ($datas as $exchange => $data) {
        if (isset($data['disabled']) && $data['disabled']) {
            // don't display disabled accounts
            continue;
        }
        if ($category == 'Addresses') {
            $result[] = $data['title'] . (in_array($data['currency'], get_new_supported_currencies()) ? " <span class=\"new\">" . ht("new") . "</span>" : "");
        } else {
            $new = in_array($exchange, get_new_security_exchanges()) || in_array($exchange, get_new_supported_wallets()) || in_array($exchange, get_new_exchanges());
            $result[] = get_exchange_name($exchange) . ($new ? " <span class=\"new\">" . ht("new") . "</span>" : "");
        }
    }
    $result = array_unique($result);
    // remove duplicate titles such as Mining Foreman
    natcasesort($result);
    echo "<dd>" . implode(", ", $result) . "</dd>\n";
}
?>
  </dl>
</p>

<p>