* Properly calculate hashrate * Remove number formatting, it breaks the graph * Not properly in order based on time but displays correct values Addresses #90
17 lines
412 B
PHP
17 lines
412 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY'))
|
|
die('Hacking attempt');
|
|
|
|
$aHourlyHashRates = $statistics->getHourlyHashrateByAccount($_SESSION['USERDATA']['id']);
|
|
|
|
// Propagate content our template
|
|
$smarty->assign("YOURHASHRATES", $aHourlyHashRates);
|
|
$smarty->assign("DIFFICULTY", $dDifficulty);
|
|
|
|
if ($_SESSION['AUTHENTICATED']) {
|
|
$smarty->assign("CONTENT", "default.tpl");
|
|
}
|
|
?>
|