Flight::set('moneysupplyproc', Flight::controller()->get_percentage(Flight::get('getinfo')['moneysupply'], Flight::get('getinfo')['balance'], FORMATTING)); Flight::set('interestproc', Flight::controller()->get_percentage(Flight::get('getinfo')['balance'], Flight::get('interest'), FORMATTING)); Flight::set('balancecalc', number_format(Flight::get('getinfo')['balance'] * $_SESSION['reddex'][Flight::get('currency')], 8) . ' ' . Flight::get('currencySym')); Flight::set('interestcalc', Flight::get('interest') * $_SESSION['reddex'][Flight::get('currency')] . ' ' . Flight::get('currencySym')); Flight::set('chart', NULL); Flight::set('txCount', count(Flight::get('transactions'))); if (file_exists(Flight::get('dbPath') . '/stats.dat') && SHOWCHART && Flight::get('getstaking')['staking']) { $array = unserialize(file_get_contents(Flight::get('dbPath') . '/stats.dat')); if (!empty($array)) { flight::set('chart', $array); } } if (isset(Flight::request()->data->chart)) { flight::set('chartSelect', Flight::request()->data->chart); } else { flight::set('chartSelect', CHART); } include "tpl/header.phtml"; include "tpl/overview.phtml"; include "tpl/footer.phtml"; }); Flight::route('/myaccounts', function () { include "tpl/header.phtml"; include "tpl/myaccounts.phtml"; include "tpl/footer.phtml"; }); Flight::route('/myaddresses/@account(/@address)', function ($account, $address) { if ($account == 'Default') { $account = ''; } Flight::set('addresses', Flight::reddcoin()->getaddressesbyaccount($account));