php-mpos/public/include/pages/statistics/blocks.inc.php
Sebastian Grewe acc4880dd6 Adding block luck graph
* Added expected vs actual share graph to block stats
* Added new small table template for overall stats in pool stats

Fixes #91
2013-06-13 16:25:52 +02:00

18 lines
483 B
PHP

<?php
// Make sure we are called from index.php
if (!defined('SECURITY')) die('Hacking attempt');
if (!$user->isAuthenticated()) header("Location: index.php?page=home");
// Grab the last blocks found
$iLimit = 30;
$aBlocksFoundData = $statistics->getBlocksFound($iLimit);
$aBlockData = $aBlocksFoundData[0];
// Propagate content our template
$smarty->assign("BLOCKSFOUND", $aBlocksFoundData);
$smarty->assign("BLOCKLIMIT", $iLimit);
$smarty->assign("CONTENT", "default.tpl");
?>