Adding warning if user exceeds balance thresholds
* Warn user if they exceeded the configured AP max thresholds for their account balance This will address #220. There does not seem a perfect solution for this but this should help.
This commit is contained in:
parent
00b84264c0
commit
7bcc29c6a8
@ -72,6 +72,10 @@ if (@$_SESSION['USERDATA']['id']) {
|
||||
$aGlobal['userdata']['est_payout'] = round($aGlobal['userdata']['est_block'] - $aGlobal['userdata']['est_donation'] - $aGlobal['userdata']['est_fee'], 3);
|
||||
break;
|
||||
}
|
||||
|
||||
// Site-wide notifications, based on user events
|
||||
if ($aGlobal['userdata']['balance']['confirmed'] >= $config['ap_threshold']['max'])
|
||||
$_SESSION['POPUP'][] = array('CONTENT' => 'You have exceeded your accounts balance. Please transfer some ' . $config['currency'] . "!", 'TYPE' => 'errormsg');
|
||||
}
|
||||
|
||||
// Make it available in Smarty
|
||||
|
||||
Loading…
Reference in New Issue
Block a user