Example #1
0
<?php

define('DROOT', dirname(dirname(__FILE__)) . '/');
define('APP_PATH', DROOT . '__scripts/');
require APP_PATH . 'configs/app.php';
require APP_PATH . 'configs/config.php';
require APP_PATH . 'helpers/helper.php';
require APP_PATH . 'helpers/rss.php';
//fetch rss
foreach ($config['links'] as $site_name => $site) {
    $tpl = new Template();
    $arr_sites = process_site($site);
    foreach ($arr_sites as $type => $elem) {
        foreach ($elem as $repo) {
            $tpl->load($type, 'rss_template', $repo);
        }
    }
    $arr_stats = site_stats($site_name);
    if ($arr_stats) {
        $tpl->load('stats', 'stats', $arr_stats);
    }
    $config['current_url'] = $lang['url'][$site_name];
    $config['current_name'] = $lang[$site_name];
    $fmsg = $tpl->render(true);
    echo $fmsg;
    //    echo '</br>';
    //    send_mail($config['mail_to'], $subject, $fmsg, $config['mail_from'], 'manovalstybe.lt');
}
    ?>
</span></center>
	</div>    
    </form>

	<div class="menu_item">
		<br>
        <p class="menu_desc"><center>Find out more about Peercoin (PPC):</center></p>
		<center><a href="http://peercoin.net" target="_blank">Visit Peercoin.net Official Peercoin Website</a></center>
		<center><a href="http://www.peercointalk.org" target="_blank">Official Peercoin Forum</a></center>
	</div>
</div>


<?php 
    site_stats();
    // Total Coins
    $totalcoins = intval($network_info["moneysupply"]);
    $totalcoins = number_format($totalcoins, 0, '.', ',');
    //Minted Reward last 1h/24h
    $hours = 1;
    list($POS1, $POW1, $POScoins1, $POWcoins1, $avgPOScoins1, $avgPOWcoins1) = get_num_pos($hours);
    list($POS24, $POW24, $POScoins24, $POWcoins24, $avgPOScoins24, $avgPOWcoins24) = get_num_pos($hours * 24);
    // Total Blocks
    $totalblocks = intval($network_info["blocks"]);
    // POS:POW Ratio
    $ratio1 = ratio($POS1, $POW1);
    $ratio24 = ratio($POS24, $POW24);
    ?>