* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
$add = '';
$CONFIRMED = getUserData('mails_confirmed');
- if (getExtensionVersion('user') >= '0.1.4') {
+ if (isExtensionInstalledAndNewer('user', '0.1.4')) {
$SENT = getUserData('emails_sent');
$RECEIVED = getUserData('emails_received');
} // END - if
if ($totalLocked == '0') $totalLocked = '0.00000';
// Remember several values in constants
-$content['sum'] = translateComma($totalPoints - getUserData('used_points'));
-$content['tref'] = $totalReferals;
+$content['sum'] = translateComma($totalPoints - getUserData('used_points'), false);
+$content['tref'] = translateComma($totalReferals);
$content['tlock'] = translateComma($totalLocked);
// Fixes a bug when there is no bonus extension installed
-if (isExtensionInstalledAndOlder('bonus', '0.4.4')) setConfigEntry('bonus_active', "X");
+if (isExtensionInstalledAndOlder('bonus', '0.4.4')) setConfigEntry('bonus_active', 'X');
// Members shall see no special rows here
$content['special_rows'] = '';
$content['stats'] = '0.00000';
// Get more data if ext-bonus is newer
- if (getExtensionVersion('bonus') >= '0.4.4') {
+ if (isExtensionInstalledAndNewer('bonus', '0.4.4')) {
$content['ref'] = getUserData('bonus_ref');
$content['order'] = getUserData('bonus_order');
$content['stats'] = getUserData('bonus_stats');
} // 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']);
$content['login'] = translateComma($content['login']);
- if (getExtensionVersion('bonus') >= '0.4.4') {
+ if (isExtensionInstalledAndNewer('bonus', '0.4.4')) {
// Add referal, stats and order bonys
$content['ref'] = translateComma($content['ref']);
$content['order'] = translateComma($content['order']);
}
// Remeber values for the final template
-$content['receive'] = $RECEIVED;
-$content['confirmed'] = $CONFIRMED;
-$content['sent'] = $SENT;
+$content['receive'] = translateComma($RECEIVED);
+$content['confirmed'] = translateComma($CONFIRMED);
+$content['sent'] = translateComma($SENT);
// Load final template
if (isExtensionActive('user')) {