This allows us to access the array key as the time. This way the template can properly render the time axis according to current time.
16 lines
367 B
PHP
16 lines
367 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);
|
|
|
|
if ($_SESSION['AUTHENTICATED']) {
|
|
$smarty->assign("CONTENT", "default.tpl");
|
|
}
|
|
?>
|