pool/web/yaamp/modules/site/index.php
2015-07-23 05:56:50 +02:00

158 lines
4.7 KiB
PHP

<?php
$algo = user()->getState('yaamp-algo');
JavascriptFile("/extensions/jqplot/jquery.jqplot.js");
JavascriptFile("/extensions/jqplot/plugins/jqplot.dateAxisRenderer.js");
JavascriptFile("/extensions/jqplot/plugins/jqplot.barRenderer.js");
JavascriptFile("/extensions/jqplot/plugins/jqplot.highlighter.js");
JavascriptFile("/extensions/jqplot/plugins/jqplot.cursor.js");
JavascriptFile('/yaamp/ui/js/auto_refresh.js');
$height = '240px';
?>
<div id='resume_update_button' style='color: #444; background-color: #ffd; border: 1px solid #eea;
padding: 10px; margin-left: 20px; margin-right: 20px; margin-top: 15px; cursor: pointer; display: none;'
onclick='auto_page_resume();' align=center>
<b>Auto refresh is paused - Click to resume</b></div>
<table cellspacing=20 width=100%>
<tr><td valign=top width=50%>
<!-- -->
<div class="main-left-box">
<div class="main-left-title">YII MINING POOL</div>
<div class="main-left-inner">
<ul>
<li>YIIMP is a pool management solution based on the Yii Framework.</li>
<li>This fork based on the Yaamp published source code will be soon another open source project.</li>
<li>No registration is required, we do payouts in the currency you mine. Use your wallet address as the username.</li>
<li>&nbsp;</li>
<li>Payouts are made automatically every 2H for all balances above <b>0.001</b>, or <b>0.0001</b> on Sunday.</li>
<li>For some coins, there is an initial delay before the first payout, please wait at least 6 hours before asking for support.</li>
<li>Blocks are distributed proportionally among valid submitted shares.</li>
<br/>
</ul>
</div></div>
<br/>
<!-- -->
<div class="main-left-box">
<div class="main-left-title">STRATUM SERVERS</div>
<div class="main-left-inner">
<ul>
<li>
<p class="main-left-box" style='padding: 3px; font-size: .8em; background-color: #ffffee; font-family: monospace;'>
-o stratum+tcp://<?= YAAMP_SITE_URL ?>:PORT -u WALLET_ADDRESS -p xx</p>
</li>
<?php if (YAAMP_ALLOW_EXCHANGE): ?>
<li>WALLET_ADDRESS can be of any currency we mine or a BTC address.</li>
<?php else: ?>
<li>WALLET_ADDRESS should be the currency you mine. DO NOT USE any BTC address here, <b>the auto exchange is disabled</b>!</li>
<?php endif; ?>
<li>Use -p "c=SYMBOL" if yiimp does not recognize the currency correctly.</li>
<li>See the "Pool Status" area on the right for PORT numbers. Algorithms without associated coins are disabled.</li>
<br>
</ul>
</div></div><br>
<!-- -->
<div class="main-left-box">
<div class="main-left-title">LINKS</div>
<div class="main-left-inner">
<ul>
<li><b>BitcoinTalk</b> - <a href='https://bitcointalk.org/index.php?topic=508786.0' target=_blank >https://bitcointalk.org/index.php?topic=508786.0</a></li>
<li><b>IRC</b> - <a href='http://webchat.freenode.net/?channels=#yiimp' target=_blank >http://webchat.freenode.net/?channels=#yiimp</a></li>
<li><b>API</b> - <a href='/site/api'>http://<?= YAAMP_SITE_URL ?>/site/api</a></li>
<li><b>Difficulty</b> - <a href='/site/diff'>http://<?= YAAMP_SITE_URL ?>/site/diff</a></li>
<?php if (YAAMP_ALLOW_EXCHANGE): ?>
<li><b>Algo Switching</b> - <a href='/site/multialgo'>http://<?= YAAMP_SITE_URL ?>/site/multialgo</a></li>
<?php endif; ?>
<br>
</ul>
</div></div><br>
<!-- -->
<a class="twitter-timeline" href="https://twitter.com/hashtag/YAAMP" data-widget-id="617405893039292417" data-chrome="transparent" height="450px" data-tweet-limit="3" data-aria-polite="polite">Tweets about #YAAMP</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</td><td valign=top>
<!-- -->
<div id='pool_current_results'>
<br><br><br><br><br><br><br><br><br><br>
</div>
<div id='pool_history_results'>
<br><br><br><br><br><br><br><br><br><br>
</div>
</td></tr></table>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<script>
function page_refresh()
{
pool_current_refresh();
pool_history_refresh();
}
function select_algo(algo)
{
window.location.href = '/site/algo?algo='+algo;
}
////////////////////////////////////////////////////
function pool_current_ready(data)
{
$('#pool_current_results').html(data);
}
function pool_current_refresh()
{
var url = "/site/current_results";
$.get(url, '', pool_current_ready);
}
////////////////////////////////////////////////////
function pool_history_ready(data)
{
$('#pool_history_results').html(data);
}
function pool_history_refresh()
{
var url = "/site/history_results";
$.get(url, '', pool_history_ready);
}
</script>