$errorCode = '0';
$ext = '';
- // Add last_login if available
- $lastOnline = '';
- if (getExtensionVersion('sql_patches') >= '0.2.8') {
- $lastOnline = ', `last_login`';
- } // END - if
-
// Init array
$content = array(
'password' => '',
fetchUserData($userid);
}
- // Load entry
+ // Get user data array and set userid (e.g. important if we login with nickname)
$content = getUserDataArray();
if (!empty($content['userid'])) $userid = bigintval($content['userid']);
// Is a success URL set?
if (empty($successUrl)) {
// Procedure to checking for login data
- if (($GLOBALS['bonus_payed']) && (isExtensionActive('bonus'))) {
+ if (($GLOBALS['bonus_payed'] === true) && (isExtensionActive('bonus'))) {
// Bonus added (just displaying!)
$URL = 'modules.php?module=chk_login&mode=bonus';
} else {
if ($totalLocked == '0') $totalLocked = '0.00000';
// Remember several values in constants
-$content['sum'] = translateComma($totalPoints - getUserData('used_points'));
+$content['sum'] = translateComma($totalPoints - getUserData('used_points'), false);
$content['tref'] = translateComma($totalReferals);
$content['tlock'] = translateComma($totalLocked);
} // END - if
// Total bonus points
- $content['ttotal'] = translateComma($content['turbo'] + $content['login'] + $content['ref'] + $content['order'] + $content['stats']);
+ $content['ttotal'] = translateComma($content['turbo'] + $content['login'] + $content['ref'] + $content['order'] + $content['stats'], false);
// Translate more data
$content['turbo'] = translateComma($content['turbo']);
<tr>
<td class="member_data bottom"><strong>{--POINTS_SUM--}</strong></td>
<td class="member_data bottom">
- <strong>$content[sum] {?POINTS?}</strong>
+ <strong>$content[sum] {?POINTS?}</strong>
</td>
<td class="member_data bottom" align="center"><strong>$content[tref]</strong></td>
</tr>