assign new round shares to smary global, added reward as smarty global
This commit is contained in:
parent
dfc1af4965
commit
9f81141517
@ -7,10 +7,10 @@ if (!defined('SECURITY'))
|
|||||||
// Globally available variables
|
// Globally available variables
|
||||||
$debug->append('Global smarty variables', 3);
|
$debug->append('Global smarty variables', 3);
|
||||||
|
|
||||||
if (!$iRoundShares = $memcache->get('iRoundShares')) {
|
if (!$aRoundShares = $memcache->get('aRoundShares')) {
|
||||||
$debug->append('Fetching iRoundShares from database');
|
$debug->append('Fetching aRoundShares from database');
|
||||||
$iRoundShares = $share->getRoundShares();
|
$aRoundShares = $share->getRoundShares();
|
||||||
$memcache->set('iRoundShares', $iRoundShares, 60);
|
$memcache->set('aRoundShares', $aRoundShares, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$iCurrentActiveWorkers = $memcache->get('iCurrentActiveWorkers')) {
|
if (!$iCurrentActiveWorkers = $memcache->get('iCurrentActiveWorkers')) {
|
||||||
@ -32,11 +32,13 @@ $aGlobal = array(
|
|||||||
'ltc_usd' => $settings->getValue('btcesell'),
|
'ltc_usd' => $settings->getValue('btcesell'),
|
||||||
'hashrate' => $iCurrentPoolHashrate,
|
'hashrate' => $iCurrentPoolHashrate,
|
||||||
'workers' => $iCurrentActiveWorkers,
|
'workers' => $iCurrentActiveWorkers,
|
||||||
'currentroundshares' => $iRoundShares,
|
'roundshares' => $aRoundShares,
|
||||||
'statstime' => $settings->getValue('statstime'),
|
'statstime' => $settings->getValue('statstime'),
|
||||||
'motd' => $settings->getValue('motd'),
|
'motd' => $settings->getValue('motd'),
|
||||||
'confirmations' => $config['confirmations']
|
'confirmations' => $config['confirmations'],
|
||||||
|
'reward' => $config['reward']
|
||||||
);
|
);
|
||||||
|
|
||||||
// Append additional user information not from user table
|
// Append additional user information not from user table
|
||||||
$aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
$aGlobal['userdata']['balance'] = $transaction->getBalance($_SESSION['USERDATA']['id']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user